{ "info": { "author": "Maxime Petazzoni", "author_email": "maxime.petazzoni@bulix.org", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "Server Side Events (SSE) client for Python\n==========================================\n\nA Python client for SSE event sources that seamlessly integrates with\n``urllib3`` and ``requests``.\n\nInstallation\n------------\n\n.. code::\n\n $ pip install sseclient-py\n\nUsage\n-----\n\n.. code:: python\n\n import json\n import pprint\n import sseclient\n\n def with_urllib3(url):\n \"\"\"Get a streaming response for the given event feed using urllib3.\"\"\"\n import urllib3\n http = urllib3.PoolManager()\n return http.request('GET', url, preload_content=False)\n\n def with_requests(url):\n \"\"\"Get a streaming response for the given event feed using requests.\"\"\"\n import requests\n return requests.get(url, stream=True)\n\n url = 'http://domain.com/events'\n response = with_urllib3(url) # or with_requests(url)\n client = sseclient.SSEClient(response)\n for event in client.events():\n pprint.pprint(json.loads(event.data))\n\nResources\n=========\n\n- http://www.w3.org/TR/2009/WD-eventsource-20091029/\n- https://pypi.python.org/pypi/sseclient-py/\n\n\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/mpetazzoni/sseclient", "keywords": "", "license": "Apache Software License v2", "maintainer": "", "maintainer_email": "", "name": "sseclient-py", "package_url": "https://pypi.org/project/sseclient-py/", "platform": "", "project_url": "https://pypi.org/project/sseclient-py/", "project_urls": { "Homepage": "https://github.com/mpetazzoni/sseclient" }, "release_url": "https://pypi.org/project/sseclient-py/1.7/", "requires_dist": null, "requires_python": "", "summary": "SSE client for Python", "version": "1.7" }, "last_serial": 3041719, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "466f84e6d0f2e5cd141d46f707223b8b", "sha256": "2f594d9d4c22d6a482387ae993bb88216f507ffcb3c3f01772a0a4ee52da0dec" }, "downloads": -1, "filename": "sseclient_py-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "466f84e6d0f2e5cd141d46f707223b8b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4253, "upload_time": "2016-03-11T22:54:01", "url": "https://files.pythonhosted.org/packages/22/12/924431a64c288bb5bd590f8bc711f2bfd84dc92ee8936933ac5fdcf9165a/sseclient_py-1.0-py2.py3-none-any.whl" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "ab2f0372b8da93694351042747d60807", "sha256": "78dbac558d0f67dd40aae722079c9945020c4364924358487c2591234c99b785" }, "downloads": -1, "filename": "sseclient_py-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ab2f0372b8da93694351042747d60807", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4313, "upload_time": "2016-03-17T02:10:58", "url": "https://files.pythonhosted.org/packages/b4/fd/55365be3a2d3ce932a6ac40fd7eefc80c18bc4db84c53fc74911cf153395/sseclient_py-1.1-py2.py3-none-any.whl" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "6b67f460c8aff70b6afdd8773eb0e4a3", "sha256": "652ed6a98281e346c2a58a63fddd55cf5c65af3412c443de9ed2848ba178b73d" }, "downloads": -1, "filename": "sseclient_py-1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b67f460c8aff70b6afdd8773eb0e4a3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4555, "upload_time": "2016-03-17T18:39:57", "url": "https://files.pythonhosted.org/packages/06/3b/516a972070743aaf8ba317ea0eb9bc9bf725955837c02122aa353824d248/sseclient_py-1.2-py2.py3-none-any.whl" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "9ae7d01c4b4a030520ae2396275475bf", "sha256": "be0ababe7ecceac802695a433146c49d6ba241a2e2175b6c7b8ad6001d4102af" }, "downloads": -1, "filename": "sseclient_py-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9ae7d01c4b4a030520ae2396275475bf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4756, "upload_time": "2016-04-14T16:01:13", "url": "https://files.pythonhosted.org/packages/7f/43/e2169c24e6e97c8e713647d5e880cee370237ef28c88e593c861ee4a2b7f/sseclient_py-1.3-py2.py3-none-any.whl" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "817d0d691ec874b2e76cd9383bc5451e", "sha256": "412c2811660a604bfcfd84f7334c7ba876586df71450306f0a4bd187246008d7" }, "downloads": -1, "filename": "sseclient_py-1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "817d0d691ec874b2e76cd9383bc5451e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4816, "upload_time": "2016-06-27T15:18:21", "url": "https://files.pythonhosted.org/packages/b9/30/5065be5da991da492e34fbc3ca1f9d6889fd5a5f9b48b4a1a1d1a897e620/sseclient_py-1.4-py2.py3-none-any.whl" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "88f476559a5a9aaea6ffda76d3ada432", "sha256": "108b44ba48a76d23c4e40c854b6f8c1eed8922def1d6a2c64e0ec59dc3b2a204" }, "downloads": -1, "filename": "sseclient_py-1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88f476559a5a9aaea6ffda76d3ada432", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5136, "upload_time": "2017-02-13T07:49:56", "url": "https://files.pythonhosted.org/packages/79/17/b5c5dbe60f755542fb23cb0ca10f67e70e00913d44bc03cf1f8d934a91ed/sseclient_py-1.5-py2.py3-none-any.whl" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "ef5cd4900b130a2f0e4ba156f2e63952", "sha256": "4b1a49d60cee5515fbd23003024d02ab01c2a32ab5ec7f24a1aed5fab4d9e705" }, "downloads": -1, "filename": "sseclient_py-1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef5cd4900b130a2f0e4ba156f2e63952", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5251, "upload_time": "2017-06-11T07:24:18", "url": "https://files.pythonhosted.org/packages/65/73/f124e349ba53767c328c40a9e42a21a2aa8f945ffccff78b5159397ab2f0/sseclient_py-1.6-py2.py3-none-any.whl" } ], "1.7": [ { "comment_text": "", "digests": { "md5": "034d3e179ba69c204e3b08daa92d8980", "sha256": "db9a95a1f8cac6e71276599a604881ef6ca6c116208a81fd19d4cfbc70b7c918" }, "downloads": -1, "filename": "sseclient_py-1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "034d3e179ba69c204e3b08daa92d8980", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5392, "upload_time": "2017-07-22T16:52:23", "url": "https://files.pythonhosted.org/packages/6a/89/200c59842a7ce06c47d6cf2ab7598110c39909f5dc30c633b9a049acc262/sseclient_py-1.7-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "034d3e179ba69c204e3b08daa92d8980", "sha256": "db9a95a1f8cac6e71276599a604881ef6ca6c116208a81fd19d4cfbc70b7c918" }, "downloads": -1, "filename": "sseclient_py-1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "034d3e179ba69c204e3b08daa92d8980", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5392, "upload_time": "2017-07-22T16:52:23", "url": "https://files.pythonhosted.org/packages/6a/89/200c59842a7ce06c47d6cf2ab7598110c39909f5dc30c633b9a049acc262/sseclient_py-1.7-py2.py3-none-any.whl" } ] }