Official Python interface to Cloudrun API.
pip install git+https://github.com/cloudruninc/cloudrun-python
To run tests:
git clone https://github.com/cloudruninc/cloudrun-python
cd cloudrun-python
pytest -v cloudrun/tests.py
from cloudrun import Run
import os
# Secret token
token = os.environ['CLOUDRUN_API_TOKEN']
url = 'https://api.cloudrun.co/v1'
run = Run(url, token)
run.create('wrf', '3.9.1')
# Upload input files
for input_file in ['namelist.input', 'wrfinput_d01', 'wrfbdy_d01']:
run.upload(input_file)
# Start the run using 4 parallel cores
run.start(cores=4)
Contact us to obtain an API token.
Full API documentation is available here.
Need help integrating Cloudrun with your app or workflow? Let us know!