Python API

The orchard Python package provides a Python library for interacting programmatically with the Orchard remote API:

$ python
>>> import orchard
>>> client = orchard.with_token(API_TOKEN)
>>> client.hosts
[<Host: default>]
>>> docker = client.hosts["default"].docker()
>>> c = docker.create_container("ubuntu", "date")
>>> docker.start(c)
>>> docker.wait(c)
0
>>> docker.logs(c)
'Mon Oct 28 15:42:56 UTC 2013\n'
>>> docker.remove_container(c)

For more documentation on the Python library, see the README on GitHub.