An API wrapper for cumulocity API. Made for researcher. Focus on Measurements and events resources from GEAR data
Project description
ThingsCloudAPI
Description
This is a Python client for the Cumulocity Data API. The GearAPI package is a wrapper to simplify GET requests and JSON response parsing from the Measurement and Event Resources.
The purpose of create this library is to abstract away these following when getting the data:
- API endpoint handling
- pagnation handling
- API retry
- file handling
- Handling API from multiple devices
how to use
- setup a config.ini
[API]
USER = <IoT Platform User Name>
PASSWORD = <IoT Platform User Password>
BASE_URL = <IoT Platform Base URL>
TENANT_ID = <IoT Platform Tenant ID>
pip install GearAPI
import Client
client = Client()
date_start = "2024-01-01"
date_end = "2024-01-02"
device_params = {
"devicetype": "iaq"
}
client.download(date_start, date_end, device_params)
"""
output: all the iaq devices data from 2024-01-01 to 2024-01-02
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gearapi-0.13.5.tar.gz.
File metadata
- Download URL: gearapi-0.13.5.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5667cc6ea7213b561dd8aa8cf392e088c223ab5baea309e8df1df3fa233f893
|
|
| MD5 |
3b569fbda4bb1f2f734b94074d31fc07
|
|
| BLAKE2b-256 |
e21bd0b42ea915dd99577c36eceff145460e60b4e0285b86af905e9ce6485b25
|
File details
Details for the file GearAPI-0.13.5-py3-none-any.whl.
File metadata
- Download URL: GearAPI-0.13.5-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4600dc7231e7fff770f1cf81623354e09b089f879b5b51dcfe3fc73f590d88b
|
|
| MD5 |
af983b37dd51e8e92c697697653bb980
|
|
| BLAKE2b-256 |
fe017c5ea65e5c267cfbced54695537e1d96b2c8d6d03fa9c1740ab7c65940b2
|