{ "info": { "author": "Jaime Loeuf", "author_email": "jaimeloeuf@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.7", "Topic :: Communications", "Topic :: Utilities" ], "description": "### Package name: JQTT\n- Author: Jaime Loeuf\n- License: MIT\n- Package Desciption:\n\t- This package is a simplified MQTT library based on the paho MQTT library.\n\t- Currently this package contains the\n\t\t1. 'Publisher' Class\n\t\t2. 'Subscription' Class\n\t\t3. 'Pub' function\n\t\t4. 'Sub' function\n\t- Currently lacking more documentation. For now please view test scripts for the different modules to see how to use this Package.\n\n\n##### To Publish data to broker:\n```python\nfrom JQTT import pub\npub('Chicken Nuggets!')\n```\n\nTo Subscribe to data:\n```python\nfrom JQTT import sub\ndef onMsg(client, userdata, message):\n\tprint(message) # Callback function to print out the message\nsub(onMsg) # Pass the function into the sub function to use it as a callback function\n```\n\n* For the above lib usage. The broker and topics are not set, thus the default broker and topics will be used.\n\nTo Change broker and topic before publishing data or subscribing to messages:\n```python\nfrom JQTT import sub, pub set_broker, set_topic\nset_broker('m2m.org', 'p') # Set the broker to publish to\nset_topic('MQTT_test', 'p') # Set the topic to publish to\npub('Hello, test 123') # Publish the message to the abv broker's topic\nset_broker('m2m.org', 's') # Set the broker to subscribe to\nset_topic('MQTT_test', 's') # Set the topic to subscribe to\ndef onMsg(client, userdata, message):\n\tprint(message) # Callback function to print out the message\nsub(onMsg) # Subscribe to the messages from the abv broker's topic using the abv callback function.\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Jaimeloeuf/JQTT", "keywords": "MQTT pub publisher sub subscriber subscription broker client", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "JQTT", "package_url": "https://pypi.org/project/JQTT/", "platform": "", "project_url": "https://pypi.org/project/JQTT/", "project_urls": { "Homepage": "https://github.com/Jaimeloeuf/JQTT" }, "release_url": "https://pypi.org/project/JQTT/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Simple to use MQTT library based on the paho-mqtt package", "version": "1.1.0" }, "last_serial": 4831817, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "9b5f9cb32a4879e07d2d43405f5c045e", "sha256": "7792dbc2392e2da274cb850f30fddb06a5e1f130df0de0fc21eed8dc6141dced" }, "downloads": -1, "filename": "JQTT-1.1.0.tar.gz", "has_sig": false, "md5_digest": "9b5f9cb32a4879e07d2d43405f5c045e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8137, "upload_time": "2019-02-17T16:17:39", "url": "https://files.pythonhosted.org/packages/22/10/2fe9d322cff25faebacf1f3043d3f5524dd65ee74b73a3899a8401a111dc/JQTT-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9b5f9cb32a4879e07d2d43405f5c045e", "sha256": "7792dbc2392e2da274cb850f30fddb06a5e1f130df0de0fc21eed8dc6141dced" }, "downloads": -1, "filename": "JQTT-1.1.0.tar.gz", "has_sig": false, "md5_digest": "9b5f9cb32a4879e07d2d43405f5c045e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8137, "upload_time": "2019-02-17T16:17:39", "url": "https://files.pythonhosted.org/packages/22/10/2fe9d322cff25faebacf1f3043d3f5524dd65ee74b73a3899a8401a111dc/JQTT-1.1.0.tar.gz" } ] }