CueTools
Lightweight CUE sheet toolkit for Python
Parsing Cue Sheets (.cuefiles) intoPydanticdata models and validating fields
Serialising data models into Cue Sheets (.cuefiles)
Note: This is an independent Python library. The name cuetools reflects the purpose of the library (handling CUE files) and is not intended to imply any association with other projects of the same name.
Features
- Parse
.cuefiles intoPydanticmodels with built-in validation - Generate
.cuefile content from data - Simple and intuitive API like
jsonstandard library - Lightweight — no external dependencies other than
Pydantic - Fully type-annotated — compatible with
MyPy - Supports Python 3.10+
Changes
For a full list of updates, see the CHANGELOG.
Note: Version 1.0.0 includes breaking changes and is not backward compatible with earlier versions, please review the CHANGELOG.
Cue Sheet specification
-
Main cue sheet specification https://wiki.hydrogenaudio.org/index.php?title=Cue_sheet
-
Additioonal ReplayGain specification https://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification
QuickStart
Installation of the library
Via pip
pip install cuetools
Via poetry
poetry add cuetools
Using of the library
import cuetools
cue_string = """
FILE "track01.flac" WAVE
TRACK 01 AUDIO
TITLE "Intro"
PERFORMER "Artist"
INDEX 01 00:00:00
"""
cue_sheet = cuetools.loads(cue_string)
#cue_sheet is instance of AlbumData class with parsed cue_string
track = cue_sheet.tracks[0]
#track is instance of TrackData class with parsed track data
print(track.file) # Result: track01.flac
print(track.title) # Result: Intro
print(track.performer) # Result: Artist
print(track.index00.string) # Result: 00:00:00
License
MIT
Metadata
Release files for cuetools 1.1.2
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 |
|---|---|---|---|---|
| cuetools-1.1.2.tar.gz | 9.5 kB | Without provenance | Details for cuetools-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cuetools-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for cuetools-1.1.2-py3-none-any.whl |
Total release size: 22.3 kB
Release files / cuetools-1.1.2.tar.gz
| Download URL | cuetools-1.1.2.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0b808d886c0131776016e3cc660ae0a51f05f2b68e306b7d4a3325cff07e759
|
|
BLAKE2b-256 checksum How to use checksums |
c7c66e3d58ee7a6117b94303aa9cdbc0d4b62db4baf91e4429f7f0a6726f0cc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1013-azure
|
Release files / cuetools-1.1.2-py3-none-any.whl
| Download URL | cuetools-1.1.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c052398956fe471b7795d86f989bd8b6c6a06950ba040812eeb668ccf1ff965
|
|
BLAKE2b-256 checksum How to use checksums |
3636fcf97c6285be1901e6d43640f07eeacdb96c26bf024740b0b257d165d3bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.10.20 Linux/6.17.0-1013-azure
|
Security for cuetools 1.1.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.