Skip to main content

An API wrapper for cumulocity API. Made for researcher. Focus on Measurements and events resources from GEAR data

Project 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.

This library abstracts:

  1. API endpoint handling
  2. pagnation handling
  3. API retry
  4. file handling
  5. Handling API from multiple devices

how to use

  1. pip install GearAPI
import Client

client = Client(
    user = <IoT Platform User Name>
    password = <IoT Platform User Password>
)

date_start = "2024-01-01"
date_end = "2024-01-02"
device_params = {
    "devicetype": "iaq"
}
output_path = "output.csv"

client.download(
    date_start, 
    date_end, 
    output_path = output_path, 
    device_params = device_params)

"""
output: all the iaq devices data from 2024-01-01 to 2024-01-02
"""

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

gearapi-0.13.19.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

GearAPI-0.13.19-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file gearapi-0.13.19.tar.gz.

File metadata

  • Download URL: gearapi-0.13.19.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for gearapi-0.13.19.tar.gz
Algorithm Hash digest
SHA256 520c0921fd4560ee5a6ff99e9e20eae914338a62771fd91ccb657d035c616b6f
MD5 c052a45fec38288abff4e921643e92ca
BLAKE2b-256 98d02fe5df6d2a8d3b478c0577599f0cee5012687e798f63f1c76e4687cdef42

See more details on using hashes here.

File details

Details for the file GearAPI-0.13.19-py3-none-any.whl.

File metadata

  • Download URL: GearAPI-0.13.19-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for GearAPI-0.13.19-py3-none-any.whl
Algorithm Hash digest
SHA256 f567cf1e3c41f6de42952e1798c9d6bac69dd5b7a29e6b33e46ba94c1ba03158
MD5 6c4f32f1cd2d0461d9ca35e79fc03362
BLAKE2b-256 5a0399dd285a375e77da07e723b787d511df5df89c9123b4ae2ca0072281485c

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