Simple cue file parser.
Project description
CueParser
Simple cue file parser written in python. Outputs cue file content in plain text. Can be used as a library.
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
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 %offset%, %index%, %songwriter%)
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CueParser-1.0.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for CueParser-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd91e9e9d9e6527b4b7c8a74037144c026dc1a61e7247c72c4eab3b584cb916c |
|
MD5 | 5491dd1ba3b29cd3c80b829dc1875b73 |
|
BLAKE2b-256 | 91764c0b362a94cdfc9de50bf26500b62f2e1111ce83450361dd081ffd968005 |