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 gear-api
import Client

client = Client(
    USER = <IoT Platform User Name>
    PASSWORD = <IoT Platform User Password>
    BASE_URL = "https://thegear.jp.cumulocity.com"
    TENANT_ID = "t21092648"
)

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


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.12.tar.gz (10.9 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.12-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gearapi-0.13.12.tar.gz
  • Upload date:
  • Size: 10.9 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.12.tar.gz
Algorithm Hash digest
SHA256 a61fb3b07ffcc7911e70734153a11dcb5fe4945ca047367a26630ca4f10bb1b9
MD5 0c4ec676e60ec5abeaf4cd9b75ceafa9
BLAKE2b-256 8467ea2d86e22664d7ec957e18ee543f8e2dff5a1f2951cede840120c60f9cff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: GearAPI-0.13.12-py3-none-any.whl
  • Upload date:
  • Size: 14.7 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 467ae1c69d924ccb1889f2a3c0432073ec52b14883d737810616005612ec4ad3
MD5 bf8372cef86c76a8a4c44862e1f23ef2
BLAKE2b-256 0957f5b90a00f8dbeb5273156852538495c862c6084e4466e339d68ead3d0b0d

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