{ "info": { "author": "Kale Kundert", "author_email": "kale@thekunderts.net", "bugtrack_url": null, "classifiers": [], "description": "KeepMePosted Documentation\n==========================\nThis module provides an object-oriented event handling framework. In this \nframework, events are registered by classes and then broadcasted by individual \nobjects. Listening for events from specific objects is made easy.\n\nInstallation\n------------\nKeepMePosted can be installed from PyPI::\n\n $ pip install kemepo\n\nYou can also download the source code directly from GitHub. The code is made \navailable under the MIT license. If you find the code useful and want to make \nimprovements, feel free to make pull requests::\n\n $ git clone https://github.com/kalekundert/KeepMePosted.git kemepo\n\nSimple Example\n--------------\nThe most important parts of this framework are the Dispatcher class and the \nevent() decorator. Dispatcher is a base class for objects that want to \nbroadcast events and the event decorator is used to register events.\n\n>>> from kemepo import Dispatcher, event\n>>> class Button (Dispatcher):\n @event\n def on_press(self):\n print('Calling internal handler')\n\nThe method decorated by event() is taken to be the \"internal handler\", distinct \nfrom any \"external observers\" that may be attached using connect() later on. \nWhen an event is triggered using handle(), the internal handler is called \nbefore the external observers. \n\n>>> button = Button()\n>>> button.connect(on_press=lambda: print('Calling external observer.'))\n>>> button.handle('on_press')\nCalling internal handler.\nCalling external observer.\n\nComplete Documentation\n----------------------\nThe complete documentation for this module is hosted by ReadTheDocs_.\n\n.. _ReadTheDocs: http://keepmeposted.readthedocs.org/en/latest/", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/kalekundert/KeepMePosted/tarball/0.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kalekundert/KeepMePosted", "keywords": "event handling", "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "KeepMePosted", "package_url": "https://pypi.org/project/KeepMePosted/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/KeepMePosted/", "project_urls": { "Download": "https://github.com/kalekundert/KeepMePosted/tarball/0.3", "Homepage": "https://github.com/kalekundert/KeepMePosted" }, "release_url": "https://pypi.org/project/KeepMePosted/0.3/", "requires_dist": null, "requires_python": null, "summary": "An object-oriented event handling framework where events are registered by \nclasses and then broadcasted by individual objects. Listening for events from \nspecific objects is made easy.", "version": "0.3" }, "last_serial": 1110769, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "070f72365499f49482b3e8115f6af065", "sha256": "56586a0ec1fae2bb2b74a91f5502502a3abd5be4f10410907dae32822ad3580b" }, "downloads": -1, "filename": "KeepMePosted-0.2.tar.gz", "has_sig": false, "md5_digest": "070f72365499f49482b3e8115f6af065", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8631, "upload_time": "2014-06-02T00:02:01", "url": "https://files.pythonhosted.org/packages/8e/4e/40a0ce17c3e9fa6d25d866cf21fcc459499aa19f3dc6ab857e79775946ba/KeepMePosted-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e8f86abe9b16d963b1610e2e4f510cf3", "sha256": "5be43a63401ac8c195bbcae3da3dd9977ea32c979e4cd942a1b0392756b5cc1d" }, "downloads": -1, "filename": "KeepMePosted-0.3.tar.gz", "has_sig": false, "md5_digest": "e8f86abe9b16d963b1610e2e4f510cf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6532, "upload_time": "2014-06-02T00:47:32", "url": "https://files.pythonhosted.org/packages/ff/af/b631204f4c8bb66db0cf17daddac68713519ec045598a1dce44f7b2fc712/KeepMePosted-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8f86abe9b16d963b1610e2e4f510cf3", "sha256": "5be43a63401ac8c195bbcae3da3dd9977ea32c979e4cd942a1b0392756b5cc1d" }, "downloads": -1, "filename": "KeepMePosted-0.3.tar.gz", "has_sig": false, "md5_digest": "e8f86abe9b16d963b1610e2e4f510cf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6532, "upload_time": "2014-06-02T00:47:32", "url": "https://files.pythonhosted.org/packages/ff/af/b631204f4c8bb66db0cf17daddac68713519ec045598a1dce44f7b2fc712/KeepMePosted-0.3.tar.gz" } ] }