Metadata-Version: 2.1
Name: tagoio-sdk
Version: 4.0.2
Summary: Official Python SDK for TagoIO
Home-page: https://tago.io/
License: Apache License
Keywords: tagoio,iot,analysis,tago,sensor,device
Author: Tago LLC
Author-email: contact@tago.io
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
Requires-Dist: python-socketio[asyncio_client] (>=5.6.0,<6.0.0)
Requires-Dist: requests (>=2.27.1,<3.0.0)
Project-URL: Documentation, https://py.sdk.tago.io/
Project-URL: Repository, https://github.com/tago-io/sdk-python/
Description-Content-Type: text/markdown

<br/>
<p align="center">
  <img src="https://assets.tago.io/tagoio/sdk.png" width="250px" alt="TagoIO"></img>
</p>

# TagoIO - Python SDK

Official Python SDK for TagoIO

## Installation

```bash
pip install tagoio-sdk
```

## Quick Example

If you have any questions, feel free to check our [Help Center](https://help.tago.io/portal/en/home)

### Insert Device Data

```python
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

```python
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

```bash
poetry install
poetry run pytest tests/
poetry run flake8 src
```

## License

TagoIO SDK for Python is released under the [Apache-2.0 License](https://github.com/tago-io/sdk-python/blob/master/LICENSE)

