CueParser
Simple cue file parser and generator written in python. Parser outputs cue file content in plain text. Generator can create cue file from timed tracklist.
Installation
$ pip install CueParser
Usage
usage: cueparser.py [-h] [-H HEADER] [-t TRACK] file
positional arguments:
file path to cue file
optional arguments:
-h, --help show this help message and exit
-H HEADER, --header HEADER
header output template
-t TRACK, --track TRACK
track output template
usage: cuegen.py [-h] [-p PERFORMER] [-t TITLE] [-a AUDIO_FILE] [-e AUDIO_FILE_EXT] [-f FILE]
options:
-h, --help show this help message and exit
-p PERFORMER, --performer PERFORMER
PERFORMER
-t TITLE, --title TITLE
TITLE
-a AUDIO_FILE, --audio_file AUDIO_FILE
FILE
-e AUDIO_FILE_EXT, --audio_file_ext AUDIO_FILE_EXT
FILE EXTENSION
-f FILE, --file FILE path to tracklist file
Example
$ cueparser.py file.cue
will output content with such template:
for header: %performer% - %title%\n%file%\n%tracks% (also can be %format%, %rem%, %songwriter%)
for tracks: %performer% - %title% (also can be %cuetime%, %offset%, %index%, %songwriter%)
$ cuegen.py -f file.txt
will create cue file from tracklist looks like:
[00:00] Artist 1 - Title 1 [03:00] Artist 2 - Title 2 etc...
or it can generate cuesheet from audacity labels file:
0.000000 1.000000 Artist 1 - Label 1 2.500000 4.200000 Artist 2 - Label 2 6.800000 8.000000 Artist 3 - Label 3
Library example
cuesheet = CueSheet()
cuesheet.setOutputFormat(args.header, args.track)
with open(cuefile, "r") as f:
cuesheet.setData(f.read())
cuesheet.parse()
print(cuesheet.output())
Metadata
Release files for CueParser 1.3.3
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 |
|---|---|---|---|---|
| cueparser-1.3.3.tar.gz | 6.4 kB | Without provenance | Details for cueparser-1.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cueparser-1.3.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for cueparser-1.3.3-py2.py3-none-any.whl |
Total release size: 13.6 kB
Release files / cueparser-1.3.3.tar.gz
| Download URL | cueparser-1.3.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccfa64330ba91f83506e9c98734c2c724fac63a4a77b13dc1ced68d3420f0142
|
|
BLAKE2b-256 checksum How to use checksums |
fbe6cd1ec0b83447489eb139e4b0a676fc537dd6102e078f5f2e59a0ef73f5c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / cueparser-1.3.3-py2.py3-none-any.whl
| Download URL | cueparser-1.3.3-py2.py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
89ef33b6c26ff9876c7553fc1248a16c99831baf2be80fc36cdfa7505e600a7a
|
|
BLAKE2b-256 checksum How to use checksums |
89c6662f428d9a312d2a41c8db3faa7c13b069bcaf629c0bc0e855386e1e3806
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for CueParser 1.3.3
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.