This release is a pre-release and may not be stable for production use.
cumulocity-python-sdk
This project is a Python client for the Cumulocity REST API to make it easier to develop programs, scripts, device agents or microservices in Python.
See also the documentation on Read the Docs.
🚨 Important The
pyc8ypackage is the successor of thec8y_apipackage - re-envisioned and reimplemented for asyncio. It is currently in alpha state. Please use c8y_api for production code.
Installation
Prerequisites
Before installing the module (or any module for that matter) consider creating a virtual environment for your project. This is generally preferred over installing modules and dependencies globally:
cd <project-root>
python3 -m venv venv
source venv/bin/activate
Alternatively, using uv:
uv venv
Installation from PyPI
The recommended way is to install the lastest distribution package directly from the Python Package Index (PyPI). You can either add pyc8y as a dependency to your project using pyproject.toml, requirements.txt or just install it manually:
pip install pyc8y # when using venv/pip
uv add pyc8y # when using uv
Manual installation
Alternatively, you can clone the repository. The module sources can be used directly within your Python 3 project. Simply copy the src/pyc8y folder to your sources root and install the requirements by running the following command:
pip3 install src/pyc8y
If the src folder is in your sources root folder all imports should work right away. Alternatively you can add pyc8y to your PYHTONPATH:
export PYTHONPATH=<project-root>/src/pyc8y; $PYTHONPATH
Licensing
This project is licensed under the Apache 2.0 license - see https://www.apache.org/licenses/LICENSE-2.0
These tools are provided as-is and without warranty or support. They do not constitute part of the Cumulocity product suite. Users are free to use, fork and modify them, subject to the license agreement. While Cumulocity GmbH welcomes contributions, we cannot guarantee to include every contribution in the master project.
You can find additional information in the Cumulocity Developer Community.
Release files for pyc8y 4.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyc8y-4.0.0rc1.tar.gz | 397.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyc8y-4.0.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 523.4 kB
Release files / pyc8y-4.0.0rc1.tar.gz
| Download URL | pyc8y-4.0.0rc1.tar.gz |
|---|---|
| Size | 397.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec6dbc2024997064975d5dff6f7a743824e1c8c90ff5bd7b6614114b302e21a5
|
|
BLAKE2b-256 checksum How to use checksums |
81f91b0ae929bf2e435c368c8435e85e3a4d2b5f39f42f26c8f258d8a62f5f0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pyc8y-4.0.0rc1-py3-none-any.whl
| Download URL | pyc8y-4.0.0rc1-py3-none-any.whl |
|---|---|
| Size | 125.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
382b72b5faa6143cdb6c4046b094ae2c3c507e6c60e883e3446e1573f0d77a36
|
|
BLAKE2b-256 checksum How to use checksums |
da15d59b89220f13fd9ff7af1a242204353bce846eacb972a689221ff4095702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|