{ "info": { "author": "Eleme Lab", "author_email": "imaralla@icloud.com", "bugtrack_url": null, "classifiers": [], "description": "takumi-ext\n==========\n\n.. image:: https://travis-ci.org/elemepi/takumi-ext.svg?branch=master\n :target: https://travis-ci.org/elemepi/takumi-ext\n\nSimple extension system for extending Takumi framework.\n\nInstall\n-------\n\n.. code:: bash\n\n $ pip install takumi-ext\n\n\nExample\n-------\n\nHere is an extension for running codes before app starts and after app exists.\n\n.. code:: python\n\n app = AppRunner()\n app_runner_ext = ext['app-runner']\n\n if app_runner_ext:\n runner_ext = app_runner_ext(app)\n app.cfg.set('when_ready', lambda x: runner_ext.on_start())\n app.cfg.set('on_exit', lambda x: runner_ext.on_exit())\n app.run()\n\nTo implement this extension:\n\n.. code:: python\n\n # package name runner_ext\n class RunnerExt(ExtBase):\n name = 'app-runner'\n\n def __init__(self, app):\n self.app = app\n\n def on_start(self):\n print('app starting...')\n\n def on_exit(self):\n print('app existing...')\n\nAdd the following config to *app.yml* to use the extension:\n\n.. code:: yaml\n\n extensions:\n - runner_ext", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/elemepi/takumi-ext", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "takumi-ext", "package_url": "https://pypi.org/project/takumi-ext/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/takumi-ext/", "project_urls": { "Homepage": "https://github.com/elemepi/takumi-ext" }, "release_url": "https://pypi.org/project/takumi-ext/0.1.2/", "requires_dist": [ "takumi-config" ], "requires_python": "", "summary": "Simple extension system for extending Takumi framework", "version": "0.1.2" }, "last_serial": 2759587, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1531b3ff7fcbc649c7c6c1d5ab7b7ebb", "sha256": "73e7798e4831df3c2ee4098aa37aca93343764f2d5ee4cadc15bfde6dd2e141c" }, "downloads": -1, "filename": "takumi_ext-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1531b3ff7fcbc649c7c6c1d5ab7b7ebb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4010, "upload_time": "2017-03-28T07:07:56", "url": "https://files.pythonhosted.org/packages/dc/9f/3512c46b71043340571d085c0ca9c7dcc822eb82353bcb84e5e2713b421c/takumi_ext-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "712a221930a41454c9fa0ba56b55c99f", "sha256": "e94bc89b7d634527e8b377228f672b64409f4e9b86df129622321cf1f272366c" }, "downloads": -1, "filename": "takumi_ext-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "712a221930a41454c9fa0ba56b55c99f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4006, "upload_time": "2017-03-29T03:03:19", "url": "https://files.pythonhosted.org/packages/b7/21/be71fb2403f2e3782a3a04f0871770124c356dbd855557bc3ca95f278ea9/takumi_ext-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef2cc4dfc0690b318c470e55698ba477", "sha256": "4ea6ef082fe04f302290d0f87e72fe5e4b988c88af0df11569704cea0637066d" }, "downloads": -1, "filename": "takumi_ext-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ef2cc4dfc0690b318c470e55698ba477", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2306, "upload_time": "2017-03-29T03:03:21", "url": "https://files.pythonhosted.org/packages/b3/54/2829934cc4e4d2874db3675b14c3472c825f411a72216260b0483f8a0033/takumi_ext-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "06e5b46c5946ad4330622f54bb160552", "sha256": "8e758eb1b179571bbf5d8d9633447960c659fd0dfe938ea47398ae2f9f588064" }, "downloads": -1, "filename": "takumi_ext-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "06e5b46c5946ad4330622f54bb160552", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4165, "upload_time": "2017-04-07T08:19:59", "url": "https://files.pythonhosted.org/packages/c8/07/2dc44f86ad4f64fe8e5abec6142e70cd52d37ad8f9b8afb102272d596c0c/takumi_ext-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0cccc0d25ecfe450a91bfa7cf249a0d1", "sha256": "2975603fd3a87cf9a70d593ef9a94fe05bf93b6822720c5adcf88f4da9c0c1f9" }, "downloads": -1, "filename": "takumi_ext-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0cccc0d25ecfe450a91bfa7cf249a0d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2459, "upload_time": "2017-04-07T08:20:00", "url": "https://files.pythonhosted.org/packages/3b/3e/94fdb21d4e238e7de024173398bc21e077777cbb17ccc4a7c76132f51bd3/takumi_ext-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "06e5b46c5946ad4330622f54bb160552", "sha256": "8e758eb1b179571bbf5d8d9633447960c659fd0dfe938ea47398ae2f9f588064" }, "downloads": -1, "filename": "takumi_ext-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "06e5b46c5946ad4330622f54bb160552", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4165, "upload_time": "2017-04-07T08:19:59", "url": "https://files.pythonhosted.org/packages/c8/07/2dc44f86ad4f64fe8e5abec6142e70cd52d37ad8f9b8afb102272d596c0c/takumi_ext-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0cccc0d25ecfe450a91bfa7cf249a0d1", "sha256": "2975603fd3a87cf9a70d593ef9a94fe05bf93b6822720c5adcf88f4da9c0c1f9" }, "downloads": -1, "filename": "takumi_ext-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0cccc0d25ecfe450a91bfa7cf249a0d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2459, "upload_time": "2017-04-07T08:20:00", "url": "https://files.pythonhosted.org/packages/3b/3e/94fdb21d4e238e7de024173398bc21e077777cbb17ccc4a7c76132f51bd3/takumi_ext-0.1.2.tar.gz" } ] }