Skip to main content

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:

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

how to use

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

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


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.2.tar.gz (11.6 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.2-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gearapi-0.13.2.tar.gz
  • Upload date:
  • Size: 11.6 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.2.tar.gz
Algorithm Hash digest
SHA256 81ea1a2cf101a3b6a3b17668c8f8511365e77d1a4f0454f17de4afcc395f11f4
MD5 7ca5d5275cdeb5c1e74de8f66722cfc0
BLAKE2b-256 b9811b4e8b02a94d8321bd0294213da099d4cf9bce7d8e302755ecb46313585f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: GearAPI-0.13.2-py3-none-any.whl
  • Upload date:
  • Size: 26.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4241de129ac0db4ebf98d31baa7be5ff19898f0b427dcc2030921b10f79a44e
MD5 2e8ec82643dc9d72a7149250f778fea4
BLAKE2b-256 89be7eba393451b1bc4bbe9e75a2da159eb7f9c7cc8755a408e4e464a4a9127a

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