Canopy Python Client
The official Python client for the Canopy Simulations API.
This package enables Canopy customers to interact with the Canopy platform from Python, for example using Jupyter Notebooks, to run simulations, load results, and manage configurations programmatically.
Installation
pip install canopy
Requirements
- Python 3.10 or higher.
Quick Start
Create a session and load output channels from a study:
import canopy
async with canopy.Session(client_id="<your_client_id>", username="<your_username>") as session:
study_data = await canopy.load_study(session, "<study_id>", "DynamicLap", ["sRun", "vCar"])
You will be prompted for your client secret and password on first use. Alternatively, pass them into the Session constructor directly (after retrieving them from a secure location).
Synchronous Usage
If you cannot use async/await, use the synchronous wrapper:
import canopy
with canopy.Session(client_id="<your_client_id>", username="<your_username>") as session:
study_data = canopy.run(canopy.load_study(session, "<study_id>", "DynamicLap", ["sRun", "vCar"]))
Features
- Study & Job Loading — Load study results, job data, scalar results, and vector channel data.
- Parquet Support — Channel data is loaded from Parquet files where available for improved performance, with automatic fallback to legacy binary formats.
- Configuration Management — Create, find, load, update, and delete simulation configurations.
- Study Management — Create, find, load, and delete studies. Wait for studies to complete.
- Unit Conversion — Convert results into your preferred units for display.
- Async & Sync — All helper functions support
asynciofor efficient parallel downloads. A synchronous wrapper (canopy.run) is provided for environments without async support. - Proxy Support — Configure proxy servers via the
Sessionobject.
Examples
See the Canopy Python Examples repository for detailed usage examples.
Documentation
License
This project is licensed under the MIT License.
Metadata
Release files for canopy 9.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| canopy-9.10.tar.gz | 217.9 kB | Without provenance | Details for canopy-9.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canopy-9.10-py3-none-any.whl | Python 3 | none | any | Details for canopy-9.10-py3-none-any.whl |
Total release size: 850.4 kB
Release files / canopy-9.10.tar.gz
| Download URL | canopy-9.10.tar.gz |
|---|---|
| Size | 217.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d90a1099f8cbd70d69fc6e17b7151ee456a273cbde421ce5fd0b6e6244dc3fd
|
|
BLAKE2b-256 checksum How to use checksums |
a624a0a059e1eddc0e4594a01d12cea59952377fe873932d35adcd5c5931848e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / canopy-9.10-py3-none-any.whl
| Download URL | canopy-9.10-py3-none-any.whl |
|---|---|
| Size | 632.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
101bf9aa50574c3ed3f3fdf7d7ea4f53453eb8c06b00049dce2e76aeaf5ba3ca
|
|
BLAKE2b-256 checksum How to use checksums |
68a359daeffa3362b57dcb53da59f94e760a7fb922e1adf6b428034753300b5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for canopy 9.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.