{ "info": { "author": "xgfone", "author_email": "xgfone@126.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "pyundo\n======\n\nA task flow in Python with ``do`` and ``undo``.\n\nExample\n=======\n\n::\n\n from __future__ import print_function\n from pyundo import TaskBase, LineFlow\n\n\n class Task(TaskBase):\n def __init__(name):\n self.name = name\n\n def do(self):\n print(\"Do the task: {0}\".format(self.name))\n\n def undo(self):\n print(\"Undo the task: {0}\".format(self.name))\n\n\n def main():\n flow = LineFlow()\n flow.add(Task(\"task1\"))\n flow.add(Task(\"task2\"))\n flow.add(Task(\"task3\"))\n flow.execute()\n\n\n if __name__ == \"__main__\":\n main()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xgfone/pyundo", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyundo", "package_url": "https://pypi.org/project/pyundo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyundo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/xgfone/pyundo" }, "release_url": "https://pypi.org/project/pyundo/0.1/", "requires_dist": null, "requires_python": null, "summary": "A task flow in Python with do and undo", "version": "0.1" }, "last_serial": 2087964, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "60945b6af42cdba3a5128d95f6fb8f3d", "sha256": "72e8627bbf177aad53b069744d61a3632b0db5ecda710b3d2fb3ecc5ed69c2f6" }, "downloads": -1, "filename": "pyundo-0.1.tar.gz", "has_sig": false, "md5_digest": "60945b6af42cdba3a5128d95f6fb8f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6671, "upload_time": "2016-04-28T03:37:53", "url": "https://files.pythonhosted.org/packages/93/25/0272a2865de0f99737937d9ef74d6441a90f2f8113694394fcaa1c20b6bf/pyundo-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "60945b6af42cdba3a5128d95f6fb8f3d", "sha256": "72e8627bbf177aad53b069744d61a3632b0db5ecda710b3d2fb3ecc5ed69c2f6" }, "downloads": -1, "filename": "pyundo-0.1.tar.gz", "has_sig": false, "md5_digest": "60945b6af42cdba3a5128d95f6fb8f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6671, "upload_time": "2016-04-28T03:37:53", "url": "https://files.pythonhosted.org/packages/93/25/0272a2865de0f99737937d9ef74d6441a90f2f8113694394fcaa1c20b6bf/pyundo-0.1.tar.gz" } ] }