Python SDK
The Code Ocean Python SDK makes it even easier to leverage the full functionality of the extensive Code Ocean Public API in your Python scripts and applications.
Last updated
Was this helpful?
The Code Ocean Python SDK makes it even easier to leverage the full functionality of the extensive Code Ocean Public API in your Python scripts and applications.
Last updated
Was this helpful?
The SDK can be installed via pip as shown below:
For development, install from source with:
When creating a CodeOcean
client as shown below, you will use your Code Ocean API token. The Python library will then automatically send this key in each request. You can learn more about creating a Code Ocean API Token in our guide .
The , , and sections of the Code Ocean API Guide all contain examples using the Python SDK.
Each release of this Code Ocean Python SDK is tested and verified against a specific minimum version of the Code Ocean platform API. Generally, this minimum version is the latest Code Ocean version at the time of the SDK’s release. We recommend ensuring your SDK dependency is pinned to a version compatible with your Code Ocean deployment. For details on when the minimum Code Ocean platform version changes, see the .