Skip to main content

TagoIO - Python Lib

Official Python lib for TagoIO

Documentation

Installation

$ sudo pip3 install -U tago

Usage

Insert Data

.insert(OBJECT)

import tago

MY_DEVICE_TOKEN = 'add your device token here'
my_device = tago.Device(MY_DEVICE_TOKEN)

data_to_insert = {
  'variable': 'temperature',
  'location': {'lat': 42.2974279, 'lng': -85.628292},
  'time': '2014-01-20 03:43:59',
  'unit': 'C',
  'value': 63
}

# my_device.insert(data_to_insert)  # Without response

result = my_device.insert(data_to_insert)  # With response
if result['status']:
  print(result['result'])
else:
  print(result['message'])
Find Data

.find(OBJECT)

import tago

MY_DEVICE_TOKEN = 'add your device token here'
my_device = tago.Device(MY_DEVICE_TOKEN)

findData = my_device.find({'query': 'last_value'})
if findData['status'] is True:
  print(findData['result']) # Array with data
else:
  print(findData['message']) # Error (if status is False)

License

TagoIO SDK for Python is released under the Apache-2.0 License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tago-3.1.1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tago-3.1.1-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file tago-3.1.1.tar.gz.

File metadata

  • Download URL: tago-3.1.1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for tago-3.1.1.tar.gz
Algorithm Hash digest
SHA256 5cd92b00992d4b4a67d7a174adb06faf73a227b6bca22dece678190ee44ffd8f
MD5 c42fc3433b86c3aca01f8fb91801f060
BLAKE2b-256 03a75b73be16df2455822856cc70b013bfee41459b08b302a94ab28daab1cdb1

See more details on using hashes here.

File details

Details for the file tago-3.1.1-py3-none-any.whl.

File metadata

  • Download URL: tago-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for tago-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5568c61d8df3f1474137fa8295d90566a5b835689bedd325f0d1255c0fd48eeb
MD5 7230f5952e43a7a7595415da9cc2c09e
BLAKE2b-256 fbabf0cd571ecf13ef37421526f4b4432b75cb7a7766b647b0306191eedb679b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.1 This release

2 files

3.1.0

2 files

3.0.12

2 files

3.0.11

2 files

3.0.9

2 files

3.0.8

2 files

3.0.7

2 files

3.0.6

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.0.1

1 file

2.0.0

1 file

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page