Skip to main content

Python microservice and application SDK for the Cumulocity REST API using asyncio.

Project description

GitHub TOML Python Version GitHub release (latest by date) GitHub Release Date ReadTheDocs

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 pyc8y package is the successor of the c8y_api package - 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyc8y-4.0.0a4.tar.gz (453.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyc8y-4.0.0a4-py3-none-any.whl (111.1 kB view details)

Uploaded Python 3

File details

Details for the file pyc8y-4.0.0a4.tar.gz.

File metadata

  • Download URL: pyc8y-4.0.0a4.tar.gz
  • Upload date:
  • Size: 453.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}

File hashes

Hashes for pyc8y-4.0.0a4.tar.gz
Algorithm Hash digest
SHA256 7f1f49a13a2d1cf5dbca4536018c46534c392b75d2812abf58801656f661bed0
MD5 86a00b747491106f2b1161253d280e20
BLAKE2b-256 473290f379b4bc0f5d3abdbfd67f8f843f0e9d321bf3e51f5cc286f5422aaeb1

See more details on using hashes here.

File details

Details for the file pyc8y-4.0.0a4-py3-none-any.whl.

File metadata

  • Download URL: pyc8y-4.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 111.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}

File hashes

Hashes for pyc8y-4.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 ae04cdad6bf01240a5c4119ae918270d3afcb7accf73463d8233630d2faad22b
MD5 8ba132a33f515ba5629da0d16d7e3f50
BLAKE2b-256 7f781f91810837db618e09ae8f8e16235d18170206d93031b114d7bff1d70d24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page