Metadata-Version: 2.0
Name: CueParser
Version: 1.0.0
Summary: Simple cue file parser.
Home-page: https://github.com/artur-shaik/CueParser
Author: Artur Shaik
Author-email: ashaihullin@gmail.com
License: UNKNOWN
Keywords: cue parser cdtool audio
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4

CueParser
=========

Simple cue file parser written in python. Outputs cue file content in plain text. Can be used as a library.

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
===============

```python
    cuesheet = CueSheet()
    cuesheet.setOutputFormat(args.header, args.track)
    with open(cuefile, "r") as f:
        cuesheet.setData(f.read())

    cuesheet.parse()
    print(cuesheet.output())
```


