{ "info": { "author": "Jacob Richter", "author_email": "jaycorichter@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# micropython-event-bus\n\nMicropython producer/subscriber event system with optional threading\n\n**Note that this package is early stages so could have undocumented bugs.**\n\n![The not-so-magic school bus](https://github.com/jaycosaur/micropython-event-bus/blob/master/images/event-bus.png)\n\n## Installation\n\n```bash\npip3 install micropython-event-bus\n```\n\nor\nClone this [repository](https://github.com/jaycosaur/micropython-event-bus) into your project:\n\n```bash\ngit clone https://github.com/jaycosaur/micropython-event-bus\n```\n\n## Usage\n\n```python\nfrom micropython_event_bus import Producer, subscribe\n\n# setup simple producer\nmy_producer = Producer(name=\"my first producer\")\n\n# create subscriber\n# with decorator\n@subscribe(my_producer)\ndef my_subscriber(*args, **kwargs):\n print('I got a message!')\n\n# or by calling the producer subscribe method\ndef my_second_subscriber(*args, **kwargs):\n print('I also got a message!')\n\nmy_producer.subscribe(my_second_subscriber)\n\n# emit event\n\n# from producer via __call__ method\nmy_producer(1,2,3,4)\n# or by calling emit directly\nmy_producer.emit(1,2,3,4)\n\n\n```\n\nFor more examples please refer to the [examples](https://github.com/jaycosaur/micropython-event-bus/tree/master/examples)\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\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/jaycosaur/micropython-event-bus", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "micropython-event-bus", "package_url": "https://pypi.org/project/micropython-event-bus/", "platform": "", "project_url": "https://pypi.org/project/micropython-event-bus/", "project_urls": { "Homepage": "https://github.com/jaycosaur/micropython-event-bus" }, "release_url": "https://pypi.org/project/micropython-event-bus/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Micropython compatible producer/subscriber event bus system with optional threading.", "version": "0.0.4" }, "last_serial": 5768195, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "11f3bdee2b9766cd45383bce7a310500", "sha256": "5e143788e0008241362c5f8aefded11676af1cf41d577620a73d94ac87e0844c" }, "downloads": -1, "filename": "micropython_event_bus-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "11f3bdee2b9766cd45383bce7a310500", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4244, "upload_time": "2019-08-25T10:30:07", "url": "https://files.pythonhosted.org/packages/7a/94/0942c3058a1493766b187661993f5a45209f767dc849c7f3f72fe523b77c/micropython_event_bus-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7bd92ec81ad2aaff1c189b7ecb1126f3", "sha256": "6b86dc7e3d0aafb169d1ecfa38b0917a39e201a3a71f69128c94a31c8ab9d0fc" }, "downloads": -1, "filename": "micropython_event_bus-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7bd92ec81ad2aaff1c189b7ecb1126f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2606, "upload_time": "2019-08-25T10:30:10", "url": "https://files.pythonhosted.org/packages/ae/6e/8bc95f6505d8f87e008a151df343f0081efa8c2ec59088a90583cb2b8215/micropython_event_bus-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b31e352107043cc9fe21f5c6909c2afb", "sha256": "7d691487ed526faf934f76b46f7ece5f38d9ac9a9452d00a6438fe95777e6581" }, "downloads": -1, "filename": "micropython_event_bus-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b31e352107043cc9fe21f5c6909c2afb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4292, "upload_time": "2019-08-25T10:40:17", "url": "https://files.pythonhosted.org/packages/02/db/2958c12e5a7031f45d7e8a700056a5f27d4c3e10c8116ca4e8b4eeccf531/micropython_event_bus-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d51eca5b6290520a9ad34f423a32f56c", "sha256": "57e77b54e59915c6e4b6baa004c95b5f600045c0944a2ebb8068d078a13448da" }, "downloads": -1, "filename": "micropython_event_bus-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d51eca5b6290520a9ad34f423a32f56c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2660, "upload_time": "2019-08-25T10:40:19", "url": "https://files.pythonhosted.org/packages/55/4e/8b2ceb9cbf74da7138527297bac98f7ccad5ca2c33af32e672aeb088e59e/micropython_event_bus-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "7ce177c4cbac9d9d5310ce6a8b228efd", "sha256": "e7cf6728e742191f7c41a1d45237862c64ac3186a45e8b825b8e4d8cf8719dc7" }, "downloads": -1, "filename": "micropython_event_bus-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "7ce177c4cbac9d9d5310ce6a8b228efd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4584, "upload_time": "2019-09-01T10:38:05", "url": "https://files.pythonhosted.org/packages/83/5b/96d374c287cfc0668954c873c70b6ec461f8f77531946da6d6e937910327/micropython_event_bus-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3e6f4b016fc7dd338808eea08a80246", "sha256": "b2ff7d394700060dc0c0a7fe4c2ccbe7f239e18b97e9829afccaf6e7f3a3fb25" }, "downloads": -1, "filename": "micropython_event_bus-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d3e6f4b016fc7dd338808eea08a80246", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2949, "upload_time": "2019-09-01T10:38:06", "url": "https://files.pythonhosted.org/packages/72/4d/84f084fa5b51bd082a49b13fda53ccd524be2b8d6d1d48126cf58ebaabb2/micropython_event_bus-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "01780f4c3cbbb5d71ecde8fd6e813419", "sha256": "965de77712de022d440c90cdbd39e45ccbdb31bada2dc7ad2b93da401c410174" }, "downloads": -1, "filename": "micropython_event_bus-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "01780f4c3cbbb5d71ecde8fd6e813419", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4585, "upload_time": "2019-09-01T21:42:37", "url": "https://files.pythonhosted.org/packages/73/ba/454975269b044870c763a5c74b116d4bdbdc07dd9a57e3c2ca0dacf811d6/micropython_event_bus-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06fde77710e5fe0e1026336065511953", "sha256": "4891199049ae12a152b099e91fc966cd1600b5115c6c1981f17e0148b0307079" }, "downloads": -1, "filename": "micropython_event_bus-0.0.4.tar.gz", "has_sig": false, "md5_digest": "06fde77710e5fe0e1026336065511953", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2954, "upload_time": "2019-09-01T21:42:39", "url": "https://files.pythonhosted.org/packages/fb/0f/253df818e25e83a45507dd368d572e2842fa4e4962589084aa8ce7a6603b/micropython_event_bus-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01780f4c3cbbb5d71ecde8fd6e813419", "sha256": "965de77712de022d440c90cdbd39e45ccbdb31bada2dc7ad2b93da401c410174" }, "downloads": -1, "filename": "micropython_event_bus-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "01780f4c3cbbb5d71ecde8fd6e813419", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4585, "upload_time": "2019-09-01T21:42:37", "url": "https://files.pythonhosted.org/packages/73/ba/454975269b044870c763a5c74b116d4bdbdc07dd9a57e3c2ca0dacf811d6/micropython_event_bus-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06fde77710e5fe0e1026336065511953", "sha256": "4891199049ae12a152b099e91fc966cd1600b5115c6c1981f17e0148b0307079" }, "downloads": -1, "filename": "micropython_event_bus-0.0.4.tar.gz", "has_sig": false, "md5_digest": "06fde77710e5fe0e1026336065511953", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2954, "upload_time": "2019-09-01T21:42:39", "url": "https://files.pythonhosted.org/packages/fb/0f/253df818e25e83a45507dd368d572e2842fa4e4962589084aa8ce7a6603b/micropython_event_bus-0.0.4.tar.gz" } ] }