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-api

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.

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

Installation from PyPI

The recommended way is to install the lastest distribution package directly from the Python Package Index (PyPI). You can either add c8y_api as a dependency to your project using setup.cfg, or install it manually:

pip install c8y_api

Installation using pip

Releases are also archived within the GitHub releases page. The module is released as standard Python wheel (.whl file). It can be downloaded and installed using pip using the following command:

pip install <release wheel file>

Like installing from PyPI, this will install all necessary dependencies automatically. For your reference, the module's dependencies are also listed in file requirements.txt.

Manual installation

Alternatively, you can clone the repository. The module sources can be used directly within your Python 3 project. Simply copy the c8y_api folder to your sources root and install the requirements by running the following command:

pip3 install -r requirements.txt

The requirements.txt file is part of the sources.

If the c8y_api folder is in your sources root folder all imports should work right away. Alternatively you can add c8y_api to your PYHTONPATH:

export PYTHONPATH=<project-root>/c8y_api; $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 Tech Community. There is also an introductory article (Getting started with the Cumulocity Python API) available.

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.0a1.tar.gz (451.9 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.0a1-py3-none-any.whl (111.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyc8y-4.0.0a1.tar.gz
  • Upload date:
  • Size: 451.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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.0a1.tar.gz
Algorithm Hash digest
SHA256 3ba029cfddc6dbd48d41c4c626afb88294b7566b357e447725ae245d584c8666
MD5 ea88d69b5e0d696c2819ec0e4e75d28e
BLAKE2b-256 fc42b6622cda37b88272d320fb4ad34a0106ffe75218143c281c2bd8742eddb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyc8y-4.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 111.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 af01b241beb8a3924060556d9e55c25d0f31c439c23d0e3395058768b39ed90a
MD5 956602c8fe2acb8f11967ea51d632f77
BLAKE2b-256 2dce2e5091251cba8a461d0bedadc74cc2ccf41694d38701fcb90db810ef0240

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