Skip to main content

An asyncio VBAN implementation

Project description

VBAN Protocol Wrapper

Currently Under Development - WIP

Overview

This project aims to create a modern, ergonomic wrapper around the VBAN protocol. By leveraging modern Python tools such as dataclasses and asyncio, this wrapper provides a simple and efficient interface for working with VBAN.

Features

  • Dataclasses: Utilizes Python's dataclasses for clean, concise and ergonomic data structures.
  • Asyncio: Supports asynchronous operations for non-blocking I/O.
  • Ease of Use: Designed to be simple and intuitive, making it easy to integrate VBAN into your projects.

Installation

To install the package, use pip:

pip install aiovban

Usage

Basic Example

Here's a basic example of how to use the VBAN wrapper:

from aiovban import VBANAudioHeader, VBANPacket
from aiovban import VBANSampleRate

# Create a VBAN audio header
audio_header = VBANAudioHeader(sample_rate=VBANSampleRate.RATE_44100, channels=17, samples_per_frame=3,
                               bit_resolution=3, codec=0xf0, streamname="Channel1")

# Create a VBAN packet
packet = VBANPacket(header=audio_header)

# Access properties
print(packet.header.sample_rate)  # Output: 48000
print(packet.header.samples_per_frame)  # Output: 256

Asynchronous Example

Using asyncio for non-blocking operations:

https://github.com/wmbest2/asyncvban/blob/11ff51c2bf7d7025bfeb3ba6ac133162a07aac1e/example/audio_receiver.py#L88-L95

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or issues, please open an issue on the GitHub repository.


This README provides a brief overview of the project, installation instructions, usage examples, and contribution guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiovban-0.2.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

aiovban-0.2.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file aiovban-0.2.0.tar.gz.

File metadata

  • Download URL: aiovban-0.2.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for aiovban-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5e3e9dc770760244fea9653212c1436efe72ad199c27517f7ab55c08c92547fa
MD5 8369d65613ada4edd79269f94fef1d41
BLAKE2b-256 db1ec4406724e9d5401111d95aa0b614a144e0af17e988019ec2908d6dd6389f

See more details on using hashes here.

File details

Details for the file aiovban-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aiovban-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for aiovban-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b169c84530fc180838f1b02ba9162b9d8647e83c56399b86d9fcfc91ee39c1f
MD5 429911729fdb33d736bc95e75f6018c6
BLAKE2b-256 5da82109d75be9c40c54eee61b06b79a6c6cc0790e61b8e478e7150b15361249

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page