pydez: Python bindings for Dezrann
Dezrann is an open platform to hear, study, and annotate music on the web. Pydez is a simple, spec-compliant Python library for working with Dezrann file formats:
.dezfiles (Analysis and Label data), as defined in Encoding music annotations.jsonfiles (Corpus, Piece, Source, and Metadata), as defined in Specifying corpus and piece (meta)data
Features
- Label: Individual annotation with
start,duration,tag,type,comment, and custom attributes - Analysis: Collection of Labels with metadata and layout rules
- Source: Base class with subclasses for different source types
- Piece: Musical piece with opus metadata and multiple sources
All classes support:
dump()→ Convert to dictload(filepath)→ Load from JSON filesave(filepath)→ Save to JSON filebuild(dict)→ Create from dict with error handling+=operator for combining instances
Installation
pip install pydez
# or, for development
git clone https://gitlab.com/algomus.fr/dezrann/pydez.git
cd pydez
pip install -e .
Example usage
Working with analyses and pieces
python examples/create_analysis.py
python examples/create_piece.py
python examples/load_modify.py
Creating a service handling music data, as described in External services
python examples/service.py
python examples/service-test.py
Running tests
cd pydez
python -m pytest tests/
License
Dezrann is open-source, and developped with the help of many contributors in the Algomus computer music team and elsewhere. The Python bindings are licensed under the LGPL version 3 or any later version.
Metadata
Release files for pydez 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 | |
|---|---|---|---|---|
| pydez-0.1.0.tar.gz | 12.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydez-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.2 kB
Release files / pydez-0.1.0.tar.gz
| Download URL | pydez-0.1.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa70c1665cfbd8af8dcba88ea4806df569cbb2261a2e99526e4fd137c473f1f2
|
|
BLAKE2b-256 checksum How to use checksums |
77fe0769bfad66d5b841caaf05b79abc96e7a522a74962acc72704fbdb35181e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / pydez-0.1.0-py3-none-any.whl
| Download URL | pydez-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2150d45079fa3f2fc84d318d79aaf9a58a3fed6bd1b5c26fba3fae3ddba8a89
|
|
BLAKE2b-256 checksum How to use checksums |
6fa14e117a14db23d0f447859d87c66fc34120c11c9ac2d947f8b9a641b50582
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for pydez 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.