RTSP Library for asyncio
========================
.. image:: https://travis-ci.com/marss/aiortsp.svg?branch=master
:target: https://travis-ci.com/marss/aiortsp
.. image:: https://coveralls.io/repos/github/marss/aiortsp/badge.svg?branch=master
:target: https://coveralls.io/github/marss/aiortsp?branch=master
This is a very simple asyncio library for interacting with an
RTSP server, with basic RTP/RTCP support.
The intended use case is to provide a pretty low level control
of what happens at RTSP connection level, all in python/asyncio.
This library does not provide any decoding capability,
it is up to the client to decide what to do with received RTP packets.
One could easily decode using `OpenCV <https://pypi.org/project/opencv-python/>`_
or `PyAV <https://pypi.org/project/av/>`_, or not at all depending on the intended
use.
See ``examples`` for how to use the lib internals, butfor quick usage:
.. code-block:: python3
import asyncio
from aiortsp.rtsp.reader import RTSPReader
async def main():
# Open a reader (which means RTSP connection, then media session)
async with RTSPReader('rtsp://cam/video.sdp') as reader:
# Iterate on RTP packets
async for pkt in reader.iter_packets():
print('PKT', pkt.seq, pkt.pt, len(pkt))
asyncio.run(main())
Raw data
{
"_id": null,
"home_page": "https://github.com/marss/aiortsp",
"name": "aiortsp",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.6",
"maintainer_email": null,
"keywords": "asyncio, rtsp",
"author": "MARSS S.A.M.",
"author_email": "info@marss.com",
"download_url": "https://files.pythonhosted.org/packages/a5/d6/69fc1d338619b87fe79b0c26e5a3b4dd6766725a483e62467db3daf3f461/aiortsp-1.4.0.tar.gz",
"platform": null,
"description": "RTSP Library for asyncio\n========================\n\n.. image:: https://travis-ci.com/marss/aiortsp.svg?branch=master\n :target: https://travis-ci.com/marss/aiortsp\n\n.. image:: https://coveralls.io/repos/github/marss/aiortsp/badge.svg?branch=master\n :target: https://coveralls.io/github/marss/aiortsp?branch=master\n\nThis is a very simple asyncio library for interacting with an\nRTSP server, with basic RTP/RTCP support.\n\nThe intended use case is to provide a pretty low level control\nof what happens at RTSP connection level, all in python/asyncio.\n\nThis library does not provide any decoding capability,\nit is up to the client to decide what to do with received RTP packets.\n\nOne could easily decode using `OpenCV <https://pypi.org/project/opencv-python/>`_\nor `PyAV <https://pypi.org/project/av/>`_, or not at all depending on the intended\nuse.\n\nSee ``examples`` for how to use the lib internals, butfor quick usage:\n\n.. code-block:: python3\n\n import asyncio\n from aiortsp.rtsp.reader import RTSPReader\n\n async def main():\n # Open a reader (which means RTSP connection, then media session)\n async with RTSPReader('rtsp://cam/video.sdp') as reader:\n # Iterate on RTP packets\n async for pkt in reader.iter_packets():\n print('PKT', pkt.seq, pkt.pt, len(pkt))\n\n asyncio.run(main())\n",
"bugtrack_url": null,
"license": "GNU Lesser General Public License v3 or later",
"summary": "An asyncio-based RTSP library",
"version": "1.4.0",
"project_urls": {
"Homepage": "https://github.com/marss/aiortsp"
},
"split_keywords": [
"asyncio",
" rtsp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "91e13bf21d6dc515d09d068f5b22a528048ba08b51176b9f93f7f68605c6d8e6",
"md5": "cd646a502bdc397227e02cfa2eec26b6",
"sha256": "30f0668320e8d417d517701aea3231db844e6bfca2096eb93d6cab5fd1501654"
},
"downloads": -1,
"filename": "aiortsp-1.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cd646a502bdc397227e02cfa2eec26b6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.6",
"size": 33624,
"upload_time": "2024-09-27T08:57:05",
"upload_time_iso_8601": "2024-09-27T08:57:05.539027Z",
"url": "https://files.pythonhosted.org/packages/91/e1/3bf21d6dc515d09d068f5b22a528048ba08b51176b9f93f7f68605c6d8e6/aiortsp-1.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a5d669fc1d338619b87fe79b0c26e5a3b4dd6766725a483e62467db3daf3f461",
"md5": "8a198702622a9c2bbd783ffacfb470f0",
"sha256": "6c2ae08ba78fd9b939a281365fdc323896ae5453c3e2c3c1c3dd43efb120928e"
},
"downloads": -1,
"filename": "aiortsp-1.4.0.tar.gz",
"has_sig": false,
"md5_digest": "8a198702622a9c2bbd783ffacfb470f0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.6",
"size": 38078,
"upload_time": "2024-09-27T08:57:07",
"upload_time_iso_8601": "2024-09-27T08:57:07.441615Z",
"url": "https://files.pythonhosted.org/packages/a5/d6/69fc1d338619b87fe79b0c26e5a3b4dd6766725a483e62467db3daf3f461/aiortsp-1.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-27 08:57:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "marss",
"github_project": "aiortsp",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "aiortsp"
}