PowerAmpacheData
Importable Python library for the Ampache JSON API (api6/api8) with a SQLite write-through data layer. The DB is the single source of truth: every API response is persisted first, then read back — never returned raw.
Layout
src/ampachedata/ the installable package (pip install -e .)
domain/ entities + result types (no I/O)
data/ HTTP, auth, mappers, repositories
pyproject.toml src layout, zero runtime deps
docs/
ampache-api-json-methods.md read-only API spec
schema.sql musicdb.db schema (read-only)
examples/ real server responses (read-only)
tests/ unit tests (fake transport, example fixtures)
musicdb.db Room schema DB — never created or ALTERed
CONVENTIONS.md project rules — binding, read before coding
aider-ampache-tutorial.md build walkthrough (start here)
Install
From PyPI:
pip install ampachedata
For development, from a source checkout:
pip install -e .
Then import ampachedata from any project. Configuration is injected:
AmpacheClient(dbPath=...) — the DB path belongs to the caller.
Usage
Bootstrap credentials once (stores only the SHA256 digest — never cleartext):
python -m ampachedata init-credentials
Then:
from ampachedata import AmpacheClient
client = AmpacheClient(dbPath="/path/to/musicdb.db")
for artist in client.getArtists():
print(artist.name)
Rules
CONVENTIONS.md is binding. docs/ is read-only reference material.
No pushes without explicit approval.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ampachedata-0.1.0.tar.gz.
File metadata
- Download URL: ampachedata-0.1.0.tar.gz
- Upload date:
- Size: 73.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d38da433761637080c9fd915f80a096142a736457d9be6a3f38dbc7f371e4db8
|
|
| MD5 |
605cd6434e85d220f5c07cd30cca8a36
|
|
| BLAKE2b-256 |
1051689e0d54ade8a29e1fca27fcc16e2f9df5bfd89db9057df6cc4336a5db35
|
File details
Details for the file ampachedata-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ampachedata-0.1.0-py3-none-any.whl
- Upload date:
- Size: 65.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63da3bd822db61a488aee95dc0849150827aec853e8accffdc7d46a0ae710489
|
|
| MD5 |
2f80b14b7dfbe21da94d11cd8a35016c
|
|
| BLAKE2b-256 |
d2f41e6614f07e847602e0743ae290211b73bb8c4c8d61461c849c287dcd617d
|