Metadata-Version: 2.4
Name: moq-ffi
Version: 0.2.20
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Multimedia :: Video
Summary: Raw UniFFI bindings for the Media over QUIC Rust crates. Most callers want the ergonomic `moq` wrapper instead.
Keywords: quic,http3,webtransport,media,live,streaming
Author-email: Luke Curley <kixelated@gmail.com>
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/moq-dev/moq
Project-URL: Repository, https://github.com/moq-dev/moq

# moq-ffi

Raw [UniFFI](https://mozilla.github.io/uniffi-rs/) bindings for the [Media over QUIC](https://github.com/moq-dev/moq) Rust crates.

This package is the native foundation: the compiled `moq-ffi` cdylib plus the auto-generated Python bindings, exposed exactly as uniffi-bindgen emits them (the `Moq`-prefixed classes). It tracks the [`moq-ffi`](https://crates.io/crates/moq-ffi) Rust crate version one-to-one.

**Most callers want [`moq-rs`](https://pypi.org/project/moq-rs/) instead** (imported as `moq`), the ergonomic wrapper with a Pythonic API (no `Moq` prefixes, async iterators, context managers). Use `moq-ffi` directly only if you need the unwrapped API or are building your own wrapper.

## Installation

```bash
pip install moq-ffi
```

The distribution is `moq-ffi`; the import name is `moq_ffi`.

```python
import asyncio

import moq_ffi


async def main() -> None:
    client = moq_ffi.MoqClient()
    session = await client.connect("https://relay.quic.video")


asyncio.run(main())
```

## See Also

- [`moq-rs`](https://pypi.org/project/moq-rs/). The ergonomic wrapper most callers want (imported as `moq`).
- [`moq-ffi`](https://crates.io/crates/moq-ffi). The Rust crate that produces these bindings.
- [MoQ project](https://github.com/moq-dev/moq). Full monorepo with Rust server, TypeScript browser lib, and more.

