{ "info": { "author": "Dan McDougall ", "author_email": "daniel.mcdougall@liftoffsoftware.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries" ], "description": "onoff\n=====\n\nonoff is a Python module that provides the `OnOffMixin` class which can be used\nto add ``on()``, ``off()``, and ``trigger()`` style events to any Python class.\n\n.. note::\n\n * For the latest, complete documentation: http://liftoff.github.io/onoff/\n * For the latest code: https://github.com/liftoff/onoff\n\nExample\n--------\n.. code-block:: python\n\n >>> from onoff import OnOffMixin\n >>> class Foo(OnOffMixin):\n ... def __init__(self):\n ... self.on(\"hello\", self.hello)\n ... def hello(self, *args):\n ... print(\"Hello: %s\" % args)\n ... def test(self, *args):\n ... self.trigger(\"hello\", *args)\n ...\n >>> f = Foo()\n >>> f.test(\"Triggered events rock!\")\n Hello: Triggered events rock!\n", "description_content_type": null, "docs_url": "https://pythonhosted.org/onoff/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/liftoff/onoff", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "onoff", "package_url": "https://pypi.org/project/onoff/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/onoff/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/liftoff/onoff" }, "release_url": "https://pypi.org/project/onoff/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "A universal mixin to add on(), off(), and trigger() style event handling to any Python class.", "version": "1.0.1" }, "last_serial": 1103958, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "b0dd3ba024f3a1a2e82e1328a3f11503", "sha256": "094accfbc621d250729ba7824fb5251bf43f1b844a71f11fe523c5b313457b3f" }, "downloads": -1, "filename": "onoff-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b0dd3ba024f3a1a2e82e1328a3f11503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13527, "upload_time": "2014-05-26T00:44:47", "url": "https://files.pythonhosted.org/packages/91/44/f2849b517e475185d3131d508efc34edbfc325b07d6b35ba38cbc134271b/onoff-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b0dd3ba024f3a1a2e82e1328a3f11503", "sha256": "094accfbc621d250729ba7824fb5251bf43f1b844a71f11fe523c5b313457b3f" }, "downloads": -1, "filename": "onoff-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b0dd3ba024f3a1a2e82e1328a3f11503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13527, "upload_time": "2014-05-26T00:44:47", "url": "https://files.pythonhosted.org/packages/91/44/f2849b517e475185d3131d508efc34edbfc325b07d6b35ba38cbc134271b/onoff-1.0.1.tar.gz" } ] }