{ "info": { "author": "Christopher Armstrong", "author_email": null, "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "txEffect\n========\n\n.. image:: https://travis-ci.org/python-effect/txeffect.svg?branch=master\n :target: https://travis-ci.org/python-effect/txeffect\n\ntxEffect is a small library for integrating Twisted and Effect, mostly\naround Deferred<->Effect interoperation. Documentation is available at\nhttps://txeffect.readthedocs.org/\n\n`Effect`_ is a library for helping you write purely functional code by\nisolating the effects (that is, IO or state manipulation) in your code.\nDocumentation is available at https://effect.readthedocs.org/.\n\n.. _`Effect`: https://github.com/python-effect/effect\n\n\nExamples\n========\n\nPerform an Effect to get a Deferred with `txeffect.perform`_.\n\n.. _`txeffect.perform`: http://txeffect.readthedocs.org/en/latest/api/txeffect.html#txeffect.perform\n\n.. code:: python\n\n from txeffect import perform\n d = perform(my_dispatcher, some_effect)\n d.addCallback(log.msg)\n\nImplement a performer for an intent that returns a Deferred with\n`txeffect.deferred_performer`_.\n\n.. _`txeffect.deferred_performer`: http://txeffect.readthedocs.org/en/latest/api/txeffect.html#txeffect.deferred_performer\n\n.. code:: python\n\n from twisted.internet.defer import succeed\n from txeffect import deferred_performer\n\n @deferred_performer\n def perform_foo(dispatcher, intent):\n return succeed('hello, world')\n\nPerform standard `Delay`_ and `parallel`_ effects using asynchronous\nimplementations with `txeffect.make_twisted_dispatcher`_.\n\n.. _`Delay`: http://effect.readthedocs.org/en/latest/api/effect.html#effect.Delay\n.. _`parallel`: http://effect.readthedocs.org/en/latest/api/effect.html#effect.parallel\n.. _`txeffect.make_twisted_dispatcher`: http://txeffect.readthedocs.org/en/latest/api/txeffect.html#txeffect.make_twisted_dispatcher\n\n.. code:: python\n\n from twisted.internet import reactor\n from txeffect import make_twisted_dispatcher\n\n dispatcher = make_twisted_dispatcher(reactor)\n p_effs = parallel([Effect(Delay(5), Effect(Delay(3), Effect(Delay(1))))])\n perform(dispatcher, p_effs).addCallback(\n lambda: print(\"5 seconds have passed!\"))\n\n\nWorking examples can be found at the `effect-examples`_ GitHub repo.\n\n.. _`effect-examples`: https://github.com/python-effect/effect-examples\n\n\nThanks\n======\n\nThanks to Rackspace for allowing me to work on this project, and having an\n*excellent* `open source employee contribution policy`_\n\n.. _`open source employee contribution policy`: https://www.rackspace.com/blog/rackspaces-policy-on-contributing-to-open-source/\n\n\nIRC\n===\n\nThere is a ``#python-effect`` IRC channel on irc.freenode.net.\n\nLicense\n=======\n\ntxEffect is licensed under the MIT license:\n\nCopyright (C) 2014 Christopher Armstrong\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/python-effect/txeffect/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "txeffect", "package_url": "https://pypi.org/project/txeffect/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/txeffect/", "project_urls": { "Homepage": "https://github.com/python-effect/txeffect/" }, "release_url": "https://pypi.org/project/txeffect/0.9/", "requires_dist": [ "effect", "twisted" ], "requires_python": null, "summary": "Effect/Twisted integration", "version": "0.9" }, "last_serial": 1582761, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "9972de85e56256a7ff2b71a33a247269", "sha256": "ecfcfe8889b503fbdb9a68fba202ceea53a39b829497be9186264d7ccfe4713a" }, "downloads": -1, "filename": "txeffect-0.1a1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9972de85e56256a7ff2b71a33a247269", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7701, "upload_time": "2015-05-09T05:17:39", "url": "https://files.pythonhosted.org/packages/45/ad/11caee1744996cabd951b0254d94428e6636c460964ea3a990d521000ddc/txeffect-0.1a1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8de0d69d4315a59baa1f90bb4c699b36", "sha256": "ce0eaceb57fa0f55f712f4a2249d85543bd1c7abade43bbea9cf111dfcc2286b" }, "downloads": -1, "filename": "txeffect-0.1a1.tar.gz", "has_sig": false, "md5_digest": "8de0d69d4315a59baa1f90bb4c699b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5198, "upload_time": "2015-05-09T05:17:42", "url": "https://files.pythonhosted.org/packages/dd/31/fcf458fac6e69f7704d2915cb18f0f57f4e4bbd9a42371c51c845a66038d/txeffect-0.1a1.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "ec651d916073a3c7401344fe250bf2b3", "sha256": "be9740fd9812a8f443ee35e4cc132e6fd01ee6c5b3936bb53a20b7c3934c465d" }, "downloads": -1, "filename": "txeffect-0.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec651d916073a3c7401344fe250bf2b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8560, "upload_time": "2015-06-08T05:54:17", "url": "https://files.pythonhosted.org/packages/56/91/3344299a4b8e0a5268d089a194eff79542daf4051abe1b763dcbc79355ed/txeffect-0.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "00fda1d7c5f477ccefd87ff19180d223", "sha256": "21c819bb23483dcc8360a50aeeb9c9078cc42e5719b423bbcedd4c80f1ed6f15" }, "downloads": -1, "filename": "txeffect-0.9.tar.gz", "has_sig": false, "md5_digest": "00fda1d7c5f477ccefd87ff19180d223", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5642, "upload_time": "2015-06-08T05:54:21", "url": "https://files.pythonhosted.org/packages/a7/55/52d3e2ada0f26d13fa6aa4341f661e297e2b89d462aacf79ef5b7e76893c/txeffect-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec651d916073a3c7401344fe250bf2b3", "sha256": "be9740fd9812a8f443ee35e4cc132e6fd01ee6c5b3936bb53a20b7c3934c465d" }, "downloads": -1, "filename": "txeffect-0.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec651d916073a3c7401344fe250bf2b3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8560, "upload_time": "2015-06-08T05:54:17", "url": "https://files.pythonhosted.org/packages/56/91/3344299a4b8e0a5268d089a194eff79542daf4051abe1b763dcbc79355ed/txeffect-0.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "00fda1d7c5f477ccefd87ff19180d223", "sha256": "21c819bb23483dcc8360a50aeeb9c9078cc42e5719b423bbcedd4c80f1ed6f15" }, "downloads": -1, "filename": "txeffect-0.9.tar.gz", "has_sig": false, "md5_digest": "00fda1d7c5f477ccefd87ff19180d223", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5642, "upload_time": "2015-06-08T05:54:21", "url": "https://files.pythonhosted.org/packages/a7/55/52d3e2ada0f26d13fa6aa4341f661e297e2b89d462aacf79ef5b7e76893c/txeffect-0.9.tar.gz" } ] }