Official Python SDK for TagoIO
Project description
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.1.1.tar.gz
(28.8 kB
view hashes)
Built Distribution
tagoio_sdk-4.1.1-py3-none-any.whl
(43.4 kB
view hashes)
Close
Hashes for tagoio_sdk-4.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05dd86afdd23be7abce9c46840817b8ea8b138b7cee9475b76339e1f0d60e6aa |
|
MD5 | f664584e9754c1fc64392bc03716915c |
|
BLAKE2b-256 | b8d1948bab586d43a6f5cade87f92569b4e1bf131d4fb2a1d77b90f4484678b0 |