{ "info": { "author": "Ber Zoidberg", "author_email": "ber@zoidplex.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3" ], "description": "======================================\nZoidberg's Preempting Event Dispatcher\n======================================\n\n.. image:: https://img.shields.io/circleci/project/github/ZoidBB/zped/master.svg?style=for-the-badge :target: \n.. image:: https://img.shields.io/pypi/v/zped.svg?style=for-the-badge :target: \n\n--------------------------\nWhy you shouldn't use this\n--------------------------\n\nZPED let's you do some truly silly stuff with event dispatching. There's a built-in decorator that will create and execute pre/post execution events on functions, which is pretty cool! Until you realize that your event listeners can arbitrarily modify the execution of your code by raising exceptions. A pre-execution event can completely modify the data sent to the executing function, or even the data sent to other listeners (since they're executed in serial). The same event can even stop execution entirely and force return a value. A post-execution event can do similar. It's insane, it's terrible, it will make your applications /really/ hard to debug.\n\n---------------------\nWhy I even wrote this\n---------------------\n\nI'm in the process of writing a static website generator based on Flask, and I needed a good way to let plugins tie into the core system. One of the better days to do this is with event dispatching! So I started writing a simple dispatcher, because using an external library for that seemed silly. Then I thought, \"If I were insane and writing a plugin to heavily modify the generator's internals, but didn't want to fork the code or monkeypatch... what would I need?\" ZPED is the culmination of that, and entirely too much coffee.\n\n--------------------------------------------------------------\nOk, but... I don't /have/ to use the bad parts of this, right?\n--------------------------------------------------------------\n\nNo, but power corrupts.\n\n--------------------------\nJust tell me how to use it\n--------------------------\n\nLook at the tests, I'll write some docs later.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zoidbb/zped", "keywords": "event dispatcher", "license": "", "maintainer": "", "maintainer_email": "", "name": "zped", "package_url": "https://pypi.org/project/zped/", "platform": "", "project_url": "https://pypi.org/project/zped/", "project_urls": { "Homepage": "https://github.com/zoidbb/zped" }, "release_url": "https://pypi.org/project/zped/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "A poorly-architected event dispatcher that does magic and lets you do terrible things", "version": "0.1.3" }, "last_serial": 3583440, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5c986483da3698639b3024ac45626157", "sha256": "6f5ba292c70f054f0c7cff048472b88deaa04f96594d49119946e21c98bdae51" }, "downloads": -1, "filename": "zped-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5c986483da3698639b3024ac45626157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2538, "upload_time": "2018-02-15T02:40:37", "url": "https://files.pythonhosted.org/packages/1c/10/e1f1ae4eba2d7b44771857c58951ff7b0522931f27e0f8cdad39c48d80c7/zped-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e3b52d84425e0e46386692e4eabdfcc7", "sha256": "1369d5e24b88145976917442fbf6e3ebe0e4a06032826ada44b49359f081335e" }, "downloads": -1, "filename": "zped-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e3b52d84425e0e46386692e4eabdfcc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2589, "upload_time": "2018-02-15T02:59:40", "url": "https://files.pythonhosted.org/packages/3c/b8/941fab5385ba5a2bf8f32b9de215f8afdc55bb3d7ce027c0b0ea94b7b9ba/zped-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1d51175d0b0dc1e42fe83c41ff69d404", "sha256": "3258df40e81f1ff97b5d982a099c3a65a430f1375b03b5af7f57e8317bef2f21" }, "downloads": -1, "filename": "zped-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1d51175d0b0dc1e42fe83c41ff69d404", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3306, "upload_time": "2018-02-15T03:29:43", "url": "https://files.pythonhosted.org/packages/8b/5d/60819e8b2bce73bbcb02b45430afcf00c92b9a8ba82550f350d3d79ae44e/zped-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "086f09763408424af97c85c66a6de295", "sha256": "82c83886ce48063538a48fe287a65649911f7ea157406f09549399a52345848c" }, "downloads": -1, "filename": "zped-0.1.3.tar.gz", "has_sig": false, "md5_digest": "086f09763408424af97c85c66a6de295", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3535, "upload_time": "2018-02-15T06:26:16", "url": "https://files.pythonhosted.org/packages/b7/4b/f5af17388fa99d06009dd624aedfbd1b85d442b218dcfd83dbbf7f7977e6/zped-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "086f09763408424af97c85c66a6de295", "sha256": "82c83886ce48063538a48fe287a65649911f7ea157406f09549399a52345848c" }, "downloads": -1, "filename": "zped-0.1.3.tar.gz", "has_sig": false, "md5_digest": "086f09763408424af97c85c66a6de295", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3535, "upload_time": "2018-02-15T06:26:16", "url": "https://files.pythonhosted.org/packages/b7/4b/f5af17388fa99d06009dd624aedfbd1b85d442b218dcfd83dbbf7f7977e6/zped-0.1.3.tar.gz" } ] }