Python asyncio implementation of the MoQT protocol
Project description
aiomoqt - Media over QUIC Transport (MoQT)
aiomoqt is an implementaion of the MoQT protocol, based on aioquic and asyncio.
Overview
This package aims to faithfully implement the MoQT Specification (currently draft-08). It is desinged and intended to satisfy a variety of use-cases to operate as a test tool, faciliate education, and adoption of the protocol. It is also designed to support a variety of production use cases (TBD).
Featurtes
- A session protocol class maintaining an MoQT message registry for control message types.
- Serialization and deserialization of messages and data streams.
- An extensible API allowing custom handlers for responses and incoming messages.
- Support for both asynchronous and synchronous calls using the
wait_responseflag.
🚀 Status: Alpha
Installation
Install using pip:
pip install aiomoqt
Or using uv:
uv pip install aiomoqt
Usage
Basic Client Example
import asyncio
from aiomoqt.client import MOQTClientSession
async def main():
client = MOQTClientSession(host='localhost', port=4433)
async with client.connect() as session:
response = await session.initialize()
response = await session.subscribe('namespace', 'track_name', wait_response=True)
await session._moqt_session_close
asyncio.run(main())
see aiomoqt-python/aiomoqt/examples for more additional examples
Development
To set up a development environment:
git clone https://github.com/gmarzot/aiomoqt-python.git
cd aiomoqt-python
./bootstrap_python.sh
source .venv/bin/activate
uv pip install .
Contributing
Contributions are welcome! If you'd like to contribute, please:
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
For major changes, please open an issue first to discuss your proposal.
Resources
Acknowledgements
This project takes inspiration from, and has benefited from the great work done by the Meta/moxygen team, and the efforts of the MOQ IETF WG.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiomoqt-0.2.1.tar.gz.
File metadata
- Download URL: aiomoqt-0.2.1.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3710c608ea38f0da6991057644c94de0b329bf7b8129499a0bc9fd08df694b8
|
|
| MD5 |
7fb5f901949fd18cfa6af77f7f5f1c7f
|
|
| BLAKE2b-256 |
e8d3a772c98ec1ef8099c5e9013f9c23ca214ebdbdb3838d28019752f78d9da6
|
File details
Details for the file aiomoqt-0.2.1-py3-none-any.whl.
File metadata
- Download URL: aiomoqt-0.2.1-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1c35c9d54ebadb0be86e294ab6c2572350b26414d2bdc28abc799862907390
|
|
| MD5 |
60fb2ae429fc2b2ba228779d85cd240d
|
|
| BLAKE2b-256 |
5aca1e2da618d827e15308947d8d91c840b45eeba27b30ba183b71bec9c2bed7
|