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-08-01"
date_end = "2024-08-02"
device_params = {
    "devicetype": "iaq"
}
output_file_path = "output.csv"

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

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

go to https://github.com/kajimadev-KaTRIS/GearAPI/deployments/github-pages and click on the latest weblink for more information

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.15.6.tar.gz (14.4 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.15.6-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gearapi-0.15.6.tar.gz
Algorithm Hash digest
SHA256 9d43e18c4cf8094a9218e1e39e8138b3f00191037a622b5c9e6fe393892fd79e
MD5 770fde3ae030fb7802c46639fdd01181
BLAKE2b-256 977cb593d0df1ce90bc4c2c1e0501513a2a9a58bcec72c9684dba4fba7695c61

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for GearAPI-0.15.6-py3-none-any.whl
Algorithm Hash digest
SHA256 58136a47198a97a74a230052422c29f70b854aae3d9c7fc47cd92b0a4c92c961
MD5 69a3dac79004255ae5cf526bf8d04802
BLAKE2b-256 dcc5cd2ab5c8e63370c2e2b24bcd1c6bf3f78f3dcaa9d2242d47905e279a5b7f

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