{ "info": { "author": "Andrew Khoury", "author_email": "drew@wot.io", "bugtrack_url": null, "classifiers": [], "description": "wotwrapper\n========\n\nA python library to wrap python objects onto Wotio\n\nAbout\n-----\n\nMost APIs are wrapped in python as classes, of which you'd instantiate an object and call it's methods. This library wraps those functions onto the Wotio environment, allowing you to publish data to it, and access the API via s-expressions in JSON.\n\nExample:\n\n```python\nclass MyClass(object):\n\tdef getdata(self):\n\t\treturn \"Some Data\"\n\tdef somefunc(self, param):\n\t\treturn \"Function called with parameter: {0}\".format(param)\n```\n\nThose functions then become available on the bus using the JSON arrays:\n\n```javascript\n[\"getdata\"]\n[\"somefunc\",\"param\"]\n```\n\nIn addition, a function can be used to publish data onto the bus consistently. The wrapper contains a loop that will call a specific function and publish its data periodically. More info below.\n\nGetting Started\n---------------\n\nTo install, run:\n\n```shell\npip install wotwrapper\n```\n\nTo use it, include it in your project and wrap an object:\n\n```python\nimport wotwrapper\nfrom phue import Bridge\n\nb = Bridge('192.168.24.10')\nwotwrapper.connect('http://wot.io/account/path', b, b.get_api, 10)\n\n```\n\nParameters\n----------\n\n```python\nwotwrapper.connect(path, objectToWrap, sendDataFunction, delay)\n```\n\n- **path:** This is the path for either the HTTP or Websocket endpoint that will be connected to. The path is in the format: `(http|ws)://host/account/in_exchange/in_key/in_queue/out_exchange/out_key/token`\n\n- **objectToWrap:** This is the obejct to be wrapped.\n\n- **sendDataFunction:** This is the function that provides the data to be published. Note that it does not have to be part of the same object.\n\n- **delay:** This specifies the delay, in seconds, between each iteration of the data publishing loop.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/wotio/wotwrapper", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "wotwrapper", "package_url": "https://pypi.org/project/wotwrapper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wotwrapper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/wotio/wotwrapper" }, "release_url": "https://pypi.org/project/wotwrapper/0.0.7/", "requires_dist": null, "requires_python": null, "summary": "A library to wrap a python object onto the Wotio Operating Enviroment", "version": "0.0.7" }, "last_serial": 1588393, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "022db9dfb8f01145e39d7500e5561793", "sha256": "1fb9def8702a79e4db42032f82a64691698d355e47714fa635ff8c7ea11a3c1d" }, "downloads": -1, "filename": "wotwrapper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "022db9dfb8f01145e39d7500e5561793", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2759, "upload_time": "2015-01-16T01:20:54", "url": "https://files.pythonhosted.org/packages/ef/2f/6645e9933562cd41a0f0f6852b7500eba0214f0ad9d8dd4c959e2d3c54fa/wotwrapper-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "25aefca820913b8071607f2f2575d460", "sha256": "b777be40fd63bd884530420f6c9a119ed11bd8e5f00958a3954a45207042e416" }, "downloads": -1, "filename": "wotwrapper-0.0.2.tar.gz", "has_sig": false, "md5_digest": "25aefca820913b8071607f2f2575d460", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2756, "upload_time": "2015-01-16T01:22:53", "url": "https://files.pythonhosted.org/packages/47/31/69309b586198fbd65cb6d57fb6dcb1b7164ba1b44f13131da8ca73700de4/wotwrapper-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "875fa87f7e3d4ad11a173fdee4d4db63", "sha256": "3169bffa4d8ad6b8b94f6bad7be42bdc798d6906fa637241fc2eab79de793b82" }, "downloads": -1, "filename": "wotwrapper-0.0.3.tar.gz", "has_sig": false, "md5_digest": "875fa87f7e3d4ad11a173fdee4d4db63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2745, "upload_time": "2015-03-17T21:41:26", "url": "https://files.pythonhosted.org/packages/79/ab/e225ac708d0661e7bf6b1212431513050bc535bcd7c430fbc5641605ac64/wotwrapper-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "45a9c049e56b91dd439357d84bb80982", "sha256": "96412f212cd4f82a6d0626155d6130d9c6f575752eb11d9427d28a6fb0a8b5da" }, "downloads": -1, "filename": "wotwrapper-0.0.4.tar.gz", "has_sig": false, "md5_digest": "45a9c049e56b91dd439357d84bb80982", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2741, "upload_time": "2015-03-25T18:17:16", "url": "https://files.pythonhosted.org/packages/16/6a/db1bc3de64ef563fc682333da9a2dbc3228f235c1b18561bd86be1be79c5/wotwrapper-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "4f816262dad6a37370fd0f434bfde13c", "sha256": "b29653cf15ce1b474abee4f83cdf6888968a17a953542dfe7853240fc4034e6c" }, "downloads": -1, "filename": "wotwrapper-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4f816262dad6a37370fd0f434bfde13c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2802, "upload_time": "2015-03-25T18:43:02", "url": "https://files.pythonhosted.org/packages/cb/5a/102af6e7e480e54ebe6d6441f17dcc1093ed9cf3bfa100d29a4eab30b75c/wotwrapper-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "7d3c584ec445b2d812065e684bf73b74", "sha256": "6633e9c86648df7e46f10f859957374eda197b2e224a9d67036db7408dc95c5e" }, "downloads": -1, "filename": "wotwrapper-0.0.6.tar.gz", "has_sig": false, "md5_digest": "7d3c584ec445b2d812065e684bf73b74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2843, "upload_time": "2015-03-25T19:27:19", "url": "https://files.pythonhosted.org/packages/c8/14/4bc1f4adae0469fdee22931923202e4bf3cfdd7ac343a965055c1554b129/wotwrapper-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "fc36886b0dcb2bf326c23d4b75169d8e", "sha256": "10fd422ef0e17235341a9233cc7caecba790f5caf04952f4b2b6bf59f2175b23" }, "downloads": -1, "filename": "wotwrapper-0.0.7.tar.gz", "has_sig": false, "md5_digest": "fc36886b0dcb2bf326c23d4b75169d8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2892, "upload_time": "2015-06-11T18:48:40", "url": "https://files.pythonhosted.org/packages/60/47/9652c1af89be28a26d3805c81bc82acb6688e77ac23840a929b1828ee0b8/wotwrapper-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fc36886b0dcb2bf326c23d4b75169d8e", "sha256": "10fd422ef0e17235341a9233cc7caecba790f5caf04952f4b2b6bf59f2175b23" }, "downloads": -1, "filename": "wotwrapper-0.0.7.tar.gz", "has_sig": false, "md5_digest": "fc36886b0dcb2bf326c23d4b75169d8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2892, "upload_time": "2015-06-11T18:48:40", "url": "https://files.pythonhosted.org/packages/60/47/9652c1af89be28a26d3805c81bc82acb6688e77ac23840a929b1828ee0b8/wotwrapper-0.0.7.tar.gz" } ] }