Sonance Py
Sonance Py is an async Python library for controlling Sonance DSP amplifiers, including the DSP8-130 and related models that expose the same unauthenticated HTTP interface.
The project is intended to support a future Home Assistant integration and a Typer-based CLI for local development, testing, and troubleshooting.
Current Status
This project is in early development. The initial client implements the basic HTTP API shape discovered from the amplifier web UI:
- General settings read/write operations
- Input/output settings read/write operations
- EQ preset read/write/action operations
- Shared async HTTP session support
The CLI is not implemented yet.
HTTP API
The amplifier web UI calls an unauthenticated endpoint at:
/Web/Handler.php
The API uses query parameters for reads and writes, and returns JSON state objects. The documented API shape is available in:
Docs/http-api.md
Basic Usage
import asyncio
from sonance_py import SonanceDSP
async def main() -> None:
async with SonanceDSP("192.168.1.50") as amp:
general = await amp.read_general()
print(general.amplifier_model)
asyncio.run(main())
Development
This project uses UV for dependency management and packaging.
Install dependencies:
uv sync
Run Ruff:
uv run ruff check .
uv run ruff format . --check
Build the package:
uv build
Notes
- The device endpoint is unauthenticated HTTP.
- API indexes are zero-based because that is how the web UI addresses arrays.
- The project targets Python 3.14 and newer.
- Behavior still needs validation against real amplifier hardware and firmware versions.
Metadata
Release files for sonance-py 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sonance_py-0.1.0.tar.gz | 12.2 kB | With provenance | Details for sonance_py-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonance_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sonance_py-0.1.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / sonance_py-0.1.0.tar.gz
| Download URL | sonance_py-0.1.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dade2140f6e68073a0832ec4443ed273631a85d1a41c6715b286cbe37c19bacc
|
|
BLAKE2b-256 checksum How to use checksums |
6e8e969f2a1ffa1959d0a910bcf3db82aa84352800ce18de589428d4464a8f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 17, 2026.
Transparency logRelease files / sonance_py-0.1.0-py3-none-any.whl
| Download URL | sonance_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4d3469dc2412c95c6e1d2a566a76b7e1146fa58b38973d1dd593f355a15a827
|
|
BLAKE2b-256 checksum How to use checksums |
c0fa7e950b7de3d18ff2ea4791d76618ea1a6b792fa6fecb5645e17ae2a5c0ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 17, 2026.
Transparency logSecurity for sonance-py 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sonance_py-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.