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, pieces, and corpora
cd examples
python generate-analysis.py
python generate-piece.py
python load_modify.py
python generate-corpus.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.2.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.2.0.tar.gz | 13.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydez-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / pydez-0.2.0.tar.gz
| Download URL | pydez-0.2.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83c39a0f33d74fd7a5658eb8cc25476e83c5f509cd4e5c9335ec7f047087e2dd
|
|
BLAKE2b-256 checksum How to use checksums |
86ec63fd674c1c9cd8604dd8a0f877fc68bca5465745d9574cf7db6d6826c966
|
| 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.2.0-py3-none-any.whl
| Download URL | pydez-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
646b110e8395e0c79f158bc195958d04236f28dc0c73585c5bffe3ef0b300c3a
|
|
BLAKE2b-256 checksum How to use checksums |
6fdf317d34f8495301ecfdf4974e5a6bb0b54099c14b8c34eecde758a5975456
|
| 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.2.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.