https://github.com/cycloctane/pylibcue
Python CUE sheet parser. Wrapper for C libcue.
https://github.com/cycloctane/pylibcue
cue cue-sheet cuesheet music playlist python python3
Last synced: 10 months ago
JSON representation
Python CUE sheet parser. Wrapper for C libcue.
- Host: GitHub
- URL: https://github.com/cycloctane/pylibcue
- Owner: Cycloctane
- License: gpl-2.0
- Created: 2025-08-13T14:20:07.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-13T16:49:58.000Z (10 months ago)
- Last Synced: 2025-08-13T18:44:25.441Z (10 months ago)
- Topics: cue, cue-sheet, cuesheet, music, playlist, python, python3
- Language: Cython
- Homepage: https://pypi.org/project/pylibcue
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Awesome Lists containing this project
README
pylibcue
========
pylibcue is a CUE sheet parser library for python. It provides fast and
reliable CUE sheets parsing interfaces for python by wrapping `libcue
`_ C library with Cython.
Install
-------
.. code-block:: bash
pip install pylibcue
Compile from source
^^^^^^^^^^^^^^^^^^^
Requirements: bison, flex, make.
.. code-block:: bash
pip install --upgrade build
make wheel
Usage
-----
Create a CD instance by parsing a CUE sheet file or string:
.. code-block:: python
import pylibcue
cd = pylibcue.parse_file("./example.cue")
# cd = pylibcue.parse_str("...")
Extract CD metadata and iterate through tracks in CD:
.. code-block:: python
print("Title:", cd.cdtext.title)
print("Artist:", cd.cdtext.performer)
print("Date:", cd.rem.date)
print("Tracks:")
for tr in cd:
print(f"{tr.start} - {tr.cdtext.title} - {tr.cdtext.performer}")
License
-------
pylibcue is licensed under the GNU General Public License v2.0.