Skip to content
Official Python interface to Cloudrun API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cloudrun
examples
.gitignore
.travis.yml
LICENSE
README.md
setup.py

README.md

cloudrun-python

Build Status GitHub issues

Official Python interface to Cloudrun API.

Installation

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

Example usage

Creating and starting a WRF run

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.

Documentation

Full API documentation is available here.

Questions?

Need help integrating Cloudrun with your app or workflow? Let us know!

You can’t perform that action at this time.