{ "info": { "author": "Matthias Urlichs", "author_email": "matthias@urlichs.de", "bugtrack_url": null, "classifiers": [], "description": "trio-serf\n=========\n\ntrio-serf is an async Python interface to Serf, the decentralised solution\nfor service discovery and orchestration.\n\nIt uses `trio ` as its underlying\nasync framework. Previous versions used the `anyio\n` wrapper, thus worked with ``asyncio``,\n``trio``, and ``curio``, but this has been discontinued because of issues\nwith error handling.\n\n.. image:: https://badge.fury.io/py/trio-serf.svg\n :alt: PyPI latest version badge\n :target: https://pypi.python.org/pypi/trio-serf\n.. image:: https://coveralls.io/repos/smurfix/trio-serf/badge.png?branch=master\n :alt: Code coverage badge\n :target: https://coveralls.io/r/smurfix/trio-serf?branch=master\n\nInstallation\n------------\n\ntrio-serf requires a running Serf agent. See `Serf's agent documentation\n`_ for instructions.\n\nTo install trio-serf, run the following command:\n\n.. code-block:: bash\n\n $ pip install trio-serf\n\nor alternatively (you really should be using pip though):\n\n.. code-block:: bash\n\n $ easy_install trio-serf\n\nor from source:\n\n.. code-block:: bash\n\n $ python setup.py install\n\nGetting Started\n---------------\n\nThese examples require a running async loop.\n`Trio ` is recommended, though\n``asyncio`` works too.\n\n.. code-block:: python\n\n from trio_serf import serf_client\n\n async with serf_client() as client:\n await client.event('foo', 'bar')\n\nStream usage:\n\n.. code-block:: python\n\n from trio_serf import serf_client\n\n async with serf_client() as client:\n async with client.stream('*') as stream:\n async for resp in stream:\n print(resp)\n\nDevelopment\n------------\n\nYou can run the tests using the following commands:\n\n.. code-block:: bash\n\n $ serf agent --tag foo=bar & # start serf agent\n $ python3 -mpytest tests\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/smurfix/trio-serf", "keywords": "Serf", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "trio_serf", "package_url": "https://pypi.org/project/trio_serf/", "platform": "", "project_url": "https://pypi.org/project/trio_serf/", "project_urls": { "Homepage": "https://github.com/smurfix/trio-serf" }, "release_url": "https://pypi.org/project/trio_serf/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "Python client for the Serf orchestration tool", "version": "0.4.0" }, "last_serial": 4963963, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "f22c9c1859b09f58170d91ed8d166611", "sha256": "5073428a554b598c549c7f29d737002a36d4a0ecd3865733f1681124a315f39d" }, "downloads": -1, "filename": "trio_serf-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f22c9c1859b09f58170d91ed8d166611", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30429, "upload_time": "2019-03-20T14:25:46", "url": "https://files.pythonhosted.org/packages/a2/8d/deafd4937e63e536289f6ebf16cea303594aa45b287fdb050b53ecebfdf0/trio_serf-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f22c9c1859b09f58170d91ed8d166611", "sha256": "5073428a554b598c549c7f29d737002a36d4a0ecd3865733f1681124a315f39d" }, "downloads": -1, "filename": "trio_serf-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f22c9c1859b09f58170d91ed8d166611", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30429, "upload_time": "2019-03-20T14:25:46", "url": "https://files.pythonhosted.org/packages/a2/8d/deafd4937e63e536289f6ebf16cea303594aa45b287fdb050b53ecebfdf0/trio_serf-0.4.0.tar.gz" } ] }