Using the pyaudio and zignal libraries to play audio on a soundcard
Project description
zoundcard
This library is using the pyaudio and zignal libraries to play audio on a soundcard. This code was previously a part of the zignal library but split out into its own.
Pre-requisites
This library relies on pyaudio, which depends on the python development headers and the portaudio development files. On debian/ubuntu,
sudo apt install python3-dev portaudio19-dev
Installation
It is recommended to create a virtual environment and let pip install the dependencies automatically.
python3 -m venv <name-of-virtualenv>
. <name-of-virtualenv>/bin/activate
pip install zoundcard
Local development
Create a python3 virtualenv and install from the local source code to make the library editable.
python3 -m venv venv_dev
. venv_dev/bin/activate
pip install --editable .[dev]
Style checks
Validate the imports
isort src/**/*.py --check-only
Show suggested edits
isort src/**/*.py --diff
Style guide enforcement using flake8
flake8 --extend-ignore=E265 --statistics src/
Unit tests
python -m unittest -v src/tests/test_*.py
Build a release
python3 -m venv venv_build
. ./venv_build/bin/activate
pip install --upgrade pip build twine
python3 -m build
Upload packages
Upload to pypi.org using twine
twine upload dist/*
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
File details
Details for the file zoundcard-0.1.0.tar.gz
.
File metadata
- Download URL: zoundcard-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e557ca84e2fc65cfaf17dc0627974a49bd9d27ee3b44d7f43f8cdf6fc45de3 |
|
MD5 | a5609f5719c24747af58eac0aa8378eb |
|
BLAKE2b-256 | 89cfd469b96b3307049e1b13f46231c277dde3a25485609a40a6ab2f0e79b2c0 |
File details
Details for the file zoundcard-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: zoundcard-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3ca6a1a9d160c55721e29440af0644cb616cc44f5dccb88a83a9a3531cfd31 |
|
MD5 | f0378c38aa97c574c492040f01f62db0 |
|
BLAKE2b-256 | 9d31f9e0c10f9b4c8b437e1a51df659eb8c11a87c7b7306e11e700c6ccb84ab3 |