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.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

aiovban-0.1.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiovban-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9819683d890933b434732b8082640cf1705183f5b224980ba017cde7a1c29238
MD5 5648577543fe23f34a9697bcf046f56c
BLAKE2b-256 0b0a3b4575851d0abeeabe880bdf5edd3ce826aff832db4843f445ab85dde56d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiovban-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f0bccb717a12f2835d8dfc64fb6af10d53731cdd979c238ed403fa4cf798c9
MD5 7b0560ce561549a324c94e81616cb37d
BLAKE2b-256 ac5602c5199a0e63c1f10dc635ed623bdea0342c63dc51df035fac2725013080

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