==========
SSE Client
==========
.. image:: https://img.shields.io/pypi/v/aiohttp_sse_client.svg
:target: https://pypi.python.org/pypi/aiohttp_sse_client
.. image:: https://img.shields.io/travis/com/rtfol/aiohttp-sse-client.svg
:target: https://travis-ci.com/rtfol/aiohttp-sse-client
.. image:: https://readthedocs.org/projects/aiohttp-sse-client/badge/?version=latest
:target: https://aiohttp-sse-client.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/rtfol/aiohttp-sse-client/shield.svg
:target: https://pyup.io/repos/github/rtfol/aiohttp-sse-client/
:alt: Updates
A Server-Sent Event python client base on aiohttp, provides a simple interface to process `Server-Sent Event <https://www.w3.org/TR/eventsource>`_.
* Free software: Apache Software License 2.0
* Documentation: https://aiohttp-sse-client.readthedocs.io.
Features
--------
* Full asyncio support
* Easy to integrate with other aiohttp based project
* Auto-reconnect for network issue
* Support python 3.6 and above
Usage
--------
.. code-block:: python
from aiohttp_sse_client import client as sse_client
async with sse_client.EventSource(
'https://stream.wikimedia.org/v2/stream/recentchange'
) as event_source:
try:
async for event in event_source:
print(event)
except ConnectionError:
pass
Credits
-------
This project was inspired by `aiosseclient <https://github.com/ebraminio/aiosseclient>`_,
`sseclient <https://github.com/btubbs/sseclient>`_, and `sseclient-py <https://github.com/mpetazzoni/sseclient>`_.
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.2.1 (2021-02-27)
------------------
* Allow sending request with different HTTP methods (by @paulefoe)
* Migrate to GitHub Actions
0.2.0 (2020-10-20)
------------------
**Breaking Changes**
* Drop Python 3.5 support
* Add Python 3.8 support
**Non functional changes**
* Clarify the license (Apache Software License 2.0), thanks @fabaff
* Update dependency packages
0.1.7 (2020-03-30)
------------------
* Allow passing kwargs without specifying headers
0.1.6 (2019-08-06)
------------------
* Fix Unicode NULL handling in event id field
0.1.5 (2019-08-06)
------------------
* Fix last id reconnection (by @Ronserruya)
0.1.4 (2018-10-04)
------------------
* Switch to Apache Software License 2.0
0.1.3 (2018-10-03)
------------------
* Change the error handling, better fit the live specification.
0.1.2 (2018-10-03)
------------------
* Implement auto-reconnect feature.
0.1.1 (2018-10-02)
------------------
* First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/rtfol/aiohttp-sse-client",
"name": "aiohttp-sse-client",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "aiohttp_sse_client",
"author": "Jason Hu",
"author_email": "awaregit@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/71/c3/4825c5f37909a70c8018924b3d521847dd7acf1fce7e1054574bafed2271/aiohttp-sse-client-0.2.1.tar.gz",
"platform": "",
"description": "==========\nSSE Client\n==========\n\n\n.. image:: https://img.shields.io/pypi/v/aiohttp_sse_client.svg\n :target: https://pypi.python.org/pypi/aiohttp_sse_client\n\n.. image:: https://img.shields.io/travis/com/rtfol/aiohttp-sse-client.svg\n :target: https://travis-ci.com/rtfol/aiohttp-sse-client\n\n.. image:: https://readthedocs.org/projects/aiohttp-sse-client/badge/?version=latest\n :target: https://aiohttp-sse-client.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/rtfol/aiohttp-sse-client/shield.svg\n :target: https://pyup.io/repos/github/rtfol/aiohttp-sse-client/\n :alt: Updates\n\n\nA Server-Sent Event python client base on aiohttp, provides a simple interface to process `Server-Sent Event <https://www.w3.org/TR/eventsource>`_.\n\n* Free software: Apache Software License 2.0\n* Documentation: https://aiohttp-sse-client.readthedocs.io.\n\n\nFeatures\n--------\n\n* Full asyncio support\n* Easy to integrate with other aiohttp based project\n* Auto-reconnect for network issue\n* Support python 3.6 and above\n\nUsage\n--------\n.. code-block:: python\n\n from aiohttp_sse_client import client as sse_client\n\n async with sse_client.EventSource(\n 'https://stream.wikimedia.org/v2/stream/recentchange'\n ) as event_source:\n try:\n async for event in event_source:\n print(event)\n except ConnectionError:\n pass\n\nCredits\n-------\n\nThis project was inspired by `aiosseclient <https://github.com/ebraminio/aiosseclient>`_,\n`sseclient <https://github.com/btubbs/sseclient>`_, and `sseclient-py <https://github.com/mpetazzoni/sseclient>`_.\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.2.1 (2021-02-27)\n------------------\n\n* Allow sending request with different HTTP methods (by @paulefoe)\n* Migrate to GitHub Actions\n\n0.2.0 (2020-10-20)\n------------------\n\n**Breaking Changes**\n\n* Drop Python 3.5 support\n* Add Python 3.8 support\n\n**Non functional changes**\n\n* Clarify the license (Apache Software License 2.0), thanks @fabaff\n* Update dependency packages\n\n\n0.1.7 (2020-03-30)\n------------------\n\n* Allow passing kwargs without specifying headers\n\n0.1.6 (2019-08-06)\n------------------\n\n* Fix Unicode NULL handling in event id field\n\n0.1.5 (2019-08-06)\n------------------\n\n* Fix last id reconnection (by @Ronserruya)\n\n0.1.4 (2018-10-04)\n------------------\n\n* Switch to Apache Software License 2.0\n\n0.1.3 (2018-10-03)\n------------------\n\n* Change the error handling, better fit the live specification.\n\n0.1.2 (2018-10-03)\n------------------\n\n* Implement auto-reconnect feature.\n\n0.1.1 (2018-10-02)\n------------------\n\n* First release on PyPI.\n\n\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "A Server-Sent Event python client base on aiohttp",
"version": "0.2.1",
"project_urls": {
"Homepage": "https://github.com/rtfol/aiohttp-sse-client"
},
"split_keywords": [
"aiohttp_sse_client"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "25c9ad514e70a549db22e118f0366c0bb38c5a90cb407978cb6c3d1482760889",
"md5": "8fd64b6a7f14a4cb8886239bd80b063a",
"sha256": "42c81ee9213e9fc8bc412b063bac3a813e02e75250c4c8049222234d41c9b024"
},
"downloads": -1,
"filename": "aiohttp_sse_client-0.2.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8fd64b6a7f14a4cb8886239bd80b063a",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6957,
"upload_time": "2021-02-27T10:00:39",
"upload_time_iso_8601": "2021-02-27T10:00:39.188553Z",
"url": "https://files.pythonhosted.org/packages/25/c9/ad514e70a549db22e118f0366c0bb38c5a90cb407978cb6c3d1482760889/aiohttp_sse_client-0.2.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "71c34825c5f37909a70c8018924b3d521847dd7acf1fce7e1054574bafed2271",
"md5": "d9065bf151fbb485a175ae453a9a5f9f",
"sha256": "5004e29271624af586158dc7166cb0687a7a5997aab5b808f4b53400e1b72e3b"
},
"downloads": -1,
"filename": "aiohttp-sse-client-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "d9065bf151fbb485a175ae453a9a5f9f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13698,
"upload_time": "2021-02-27T10:00:40",
"upload_time_iso_8601": "2021-02-27T10:00:40.329560Z",
"url": "https://files.pythonhosted.org/packages/71/c3/4825c5f37909a70c8018924b3d521847dd7acf1fce7e1054574bafed2271/aiohttp-sse-client-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-02-27 10:00:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rtfol",
"github_project": "aiohttp-sse-client",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "aiohttp-sse-client"
}