tago


Nametago JSON
Version 3.1.1 PyPI version JSON
download
home_pagehttps://github.com/tago-io/tago-sdk-python
SummaryOfficial Python lib for TagoIO
upload_time2023-04-18 15:39:29
maintainer
docs_urlNone
authorTago LLC
requires_python>=3.6
licenseApache License
keywords tago tagoio develop iot sdk analysis device
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## TagoIO - Python Lib

Official Python lib for TagoIO

## Documentation

#### Installation

```
$ sudo pip3 install -U tago
```

#### Usage
##### Insert Data
**.insert(OBJECT)**
``` python
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)**
``` python
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](https://github.com/tago-io/tago-sdk-python/blob/master/LICENSE.md).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tago-io/tago-sdk-python",
    "name": "tago",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "tago tagoio develop iot sdk analysis device",
    "author": "Tago LLC",
    "author_email": "dev@tago.io",
    "download_url": "https://files.pythonhosted.org/packages/03/a7/5b73be16df2455822856cc70b013bfee41459b08b302a94ab28daab1cdb1/tago-3.1.1.tar.gz",
    "platform": null,
    "description": "## TagoIO - Python Lib\n\nOfficial Python lib for TagoIO\n\n## Documentation\n\n#### Installation\n\n```\n$ sudo pip3 install -U tago\n```\n\n#### Usage\n##### Insert Data\n**.insert(OBJECT)**\n``` python\nimport tago\n\nMY_DEVICE_TOKEN = 'add your device token here'\nmy_device = tago.Device(MY_DEVICE_TOKEN)\n\ndata_to_insert = {\n  'variable': 'temperature',\n  'location': {'lat': 42.2974279, 'lng': -85.628292},\n  'time': '2014-01-20 03:43:59',\n  'unit': 'C',\n  'value': 63\n}\n\n# my_device.insert(data_to_insert)  # Without response\n\nresult = my_device.insert(data_to_insert)  # With response\nif result['status']:\n  print(result['result'])\nelse:\n  print(result['message'])\n```\n\n##### Find Data\n**.find(OBJECT)**\n``` python\nimport tago\n\nMY_DEVICE_TOKEN = 'add your device token here'\nmy_device = tago.Device(MY_DEVICE_TOKEN)\n\nfindData = my_device.find({'query': 'last_value'})\nif findData['status'] is True:\n  print(findData['result']) # Array with data\nelse:\n  print(findData['message']) # Error (if status is False)\n```\n\n## License\n\nTagoIO SDK for Python is released under the [Apache-2.0 License](https://github.com/tago-io/tago-sdk-python/blob/master/LICENSE.md).\n",
    "bugtrack_url": null,
    "license": "Apache License",
    "summary": "Official Python lib for TagoIO",
    "version": "3.1.1",
    "split_keywords": [
        "tago",
        "tagoio",
        "develop",
        "iot",
        "sdk",
        "analysis",
        "device"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbabf0cd571ecf13ef37421526f4b4432b75cb7a7766b647b0306191eedb679b",
                "md5": "7230f5952e43a7a7595415da9cc2c09e",
                "sha256": "5568c61d8df3f1474137fa8295d90566a5b835689bedd325f0d1255c0fd48eeb"
            },
            "downloads": -1,
            "filename": "tago-3.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7230f5952e43a7a7595415da9cc2c09e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 34187,
            "upload_time": "2023-04-18T15:39:27",
            "upload_time_iso_8601": "2023-04-18T15:39:27.560121Z",
            "url": "https://files.pythonhosted.org/packages/fb/ab/f0cd571ecf13ef37421526f4b4432b75cb7a7766b647b0306191eedb679b/tago-3.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "03a75b73be16df2455822856cc70b013bfee41459b08b302a94ab28daab1cdb1",
                "md5": "c42fc3433b86c3aca01f8fb91801f060",
                "sha256": "5cd92b00992d4b4a67d7a174adb06faf73a227b6bca22dece678190ee44ffd8f"
            },
            "downloads": -1,
            "filename": "tago-3.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c42fc3433b86c3aca01f8fb91801f060",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 17981,
            "upload_time": "2023-04-18T15:39:29",
            "upload_time_iso_8601": "2023-04-18T15:39:29.949289Z",
            "url": "https://files.pythonhosted.org/packages/03/a7/5b73be16df2455822856cc70b013bfee41459b08b302a94ab28daab1cdb1/tago-3.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-18 15:39:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "tago-io",
    "github_project": "tago-sdk-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "tago"
}
        
Elapsed time: 0.05852s