{ "info": { "author": "The GSN Team", "author_email": "gsn@epfl.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===============================\nPython wrapper for the Global Sensor Networks API\n===============================\n\n.. contents:: **Table of Contents**\n\n-------------------------\nInstallation\n-------------------------\n\n > pip install gsn\n\n-------------------------\nUsage\n-------------------------\n\nThe wrapper uses the `sanction`_ Oauth2 library to authenticate against GSN services.\nBefore starting you must create a \"client\" on GSN services and get the client_id, client_secret and redirect_uri.\nAs we will be using client_credentials, the client must be linked to the user from which it will inherit the access rights.\nThe value of redirect uri is not used, but must nevertheless match.\n\nThen in your python code, you can use it this way::\n\n > import gsn\n > a = gsn.API(service_url=\"http://localhost:9000/ws\", client_id=\"client\", client_secret=\"secret\", redirect_uri=\"http://localhost\")\n > s = a.get_latest_values(\"push\")\n > s.values = [[1469959498000, 18]]\n > r = a.push_values(s)\n\n.. _sanction: https://github.com/demianbrecht/sanction\n\nSensor object\n===============================\n\nThis object abstract the json representation used by GSN for the stream elements. It has the following fields:\n\n* fields: list of triples representing the name, type and units\n* name: name of the sensor\n* values: list of lists. The inner lists must have the same size as the fields list and represent the data of a stream element.\n* location: (optional) a triple representing the location of the sensor as latitude, longitude, altitude.\n=======\nCHANGES\n=======\n\nv0.2.0\n-------\n\n* adding refresh token support\n* automatically tracking the expiration of access token and refreshing if necessary\n\n\nv0.1.0\n-------\n\n* initial release\n* supports querying the latest values and pushing data\n* compatible with GSN v2.0.0\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LSIR/python-gsn", "keywords": "iot sensors networks", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "gsn", "package_url": "https://pypi.org/project/gsn/", "platform": "", "project_url": "https://pypi.org/project/gsn/", "project_urls": { "Homepage": "https://github.com/LSIR/python-gsn" }, "release_url": "https://pypi.org/project/gsn/0.2.0/", "requires_dist": [ "sanction", "check-manifest; extra == 'dev'", "coverage; extra == 'test'" ], "requires_python": "", "summary": "A python wrapper for Global Sensor Networks API", "version": "0.2.0" }, "last_serial": 2379805, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f03681f513ba639b9fd3781200cb58c8", "sha256": "266e23884d9131cf2dc965ef15289f377295a67b6c643eceee1ed96e13211675" }, "downloads": -1, "filename": "gsn-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f03681f513ba639b9fd3781200cb58c8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5562, "upload_time": "2016-07-31T12:17:12", "url": "https://files.pythonhosted.org/packages/67/7f/4ebeab83cf24679bb1d56aa3115f78c703361284f39ad9bfa6889ec37849/gsn-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cc924d3e67563b54478b5a2ae7431e42", "sha256": "ed2129d31a873aa933703c4745d50e60108980ea279843268eeece35550b83d4" }, "downloads": -1, "filename": "gsn-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cc924d3e67563b54478b5a2ae7431e42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4488, "upload_time": "2016-07-31T12:17:14", "url": "https://files.pythonhosted.org/packages/6c/b2/47deb5ed5e12c70c381d8835acec795ea4603f56e88f67b238015ddde263/gsn-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "caadf83731dee5801218634d1c633f2b", "sha256": "9a790d9f11faa14c355f5417215be7f78ef9248035c1457982821ecba82899a0" }, "downloads": -1, "filename": "gsn-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "caadf83731dee5801218634d1c633f2b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5854, "upload_time": "2016-10-04T15:10:30", "url": "https://files.pythonhosted.org/packages/3d/e9/c42b997c22bd9cd14225f8e3a8f315e9f2489318869c7510d3162262996f/gsn-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ffdcde7de7878a5fff24787394b62dc8", "sha256": "50920cd918e0f69a3880eabbc1cabec55025c360ed91aa574fde01e990fa1a52" }, "downloads": -1, "filename": "gsn-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ffdcde7de7878a5fff24787394b62dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4716, "upload_time": "2016-10-04T15:10:35", "url": "https://files.pythonhosted.org/packages/56/a6/d756a03c02b87401bd441e1fb60e273413a4698e427907325f1f8c0861dd/gsn-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "caadf83731dee5801218634d1c633f2b", "sha256": "9a790d9f11faa14c355f5417215be7f78ef9248035c1457982821ecba82899a0" }, "downloads": -1, "filename": "gsn-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "caadf83731dee5801218634d1c633f2b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5854, "upload_time": "2016-10-04T15:10:30", "url": "https://files.pythonhosted.org/packages/3d/e9/c42b997c22bd9cd14225f8e3a8f315e9f2489318869c7510d3162262996f/gsn-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ffdcde7de7878a5fff24787394b62dc8", "sha256": "50920cd918e0f69a3880eabbc1cabec55025c360ed91aa574fde01e990fa1a52" }, "downloads": -1, "filename": "gsn-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ffdcde7de7878a5fff24787394b62dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4716, "upload_time": "2016-10-04T15:10:35", "url": "https://files.pythonhosted.org/packages/56/a6/d756a03c02b87401bd441e1fb60e273413a4698e427907325f1f8c0861dd/gsn-0.2.0.tar.gz" } ] }