Official Python SDK for TagoIO
Project description
NOTE: This version (4.x.x) is still in development. You can access the current (3.x.x) version in tago-io/tago-sdk-python.
TagoIO - Python SDK
Official Python SDK for TagoIO
Installation
pip install tagoio-sdk
Quick Example
If you have any questions, feel free to check our Help Center
Insert Device Data
from tagoio_sdk import Device
myDevice = Device({ "token": "my_device_token" })
result = myDevice.sendData({
"variable": "temperature",
"unit": "F",
"value": 55,
"time": "2015-11-03 13:44:33",
"location": { "lat": 42.2974279, "lng": -85.628292 },
})
Edit Device Data
from tagoio_sdk import Device
myDevice = Device({"token": "my_device_token"})
result = myDevice.editData(
{
"id": "id_of_the_data_item",
"value": "123",
"time": "2022-04-01 12:34:56",
"location": {"lat": 42.2974279, "lng": -85.628292},
}
)
Development Commands
poetry install
poetry run pytest tests/
poetry run flake8 src
License
TagoIO SDK for Python is released under the Apache-2.0 License
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
tagoio_sdk-4.0.10.tar.gz
(26.6 kB
view hashes)
Built Distribution
Close
Hashes for tagoio_sdk-4.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0190e415faad42eb1ff1cd3f33582fab88201b8692d60e8738232704fe980a41 |
|
MD5 | bac11b746aff71664eb10017953e16c4 |
|
BLAKE2b-256 | f7387908a42b4fb1f9ca02be7ede303f7174d9a38d7532b6eb40188c3df8376a |