Metadata-Version: 2.1
Name: traktor-nml-utils
Version: 2.0.4
Summary: Utilities to read and write Traktor NML files
Home-page: http://github.com/ifischer/traktor-nml-utils
Author: Ingo Fischer
Author-email: mail@ingofischer.de
License: GPL
Description: # Traktor NML utils
        
        [![Build Status](https://travis-ci.com/wolkenarchitekt/traktor-nml-utils.svg?branch=master)](https://travis-ci.com/wolkenarchitekt/traktor-nml-utils)
        
        This module contains utilities to parse and modify Native Instruments Traktor NML files.
        
        It can parse collection files (`$TRAKTOR_DIR/collection.nml`) and history 
        files (`$TRAKTOR_DIR/History/history_$DATE.nml`).
        
        ## Requirements
        
        Because traktor-nml-utils uses `dataclasses`, you need at least Python 3.7.x. 
        
        ## Installation
        
        ```shell
        pip install traktor-nml-utils
        ```
        
        ## Usage
        
        ### Get artist, title and rating of all collection entries
        
        ```python
        from traktor_nml_utils import TraktorCollection
        from pathlib import Path
        
        collection = TraktorCollection(path=Path('collection.nml'))
        
        for entry in collection.nml.entry:
            print(entry.artist, entry.title, entry.info.ranking)
        ```
        
        ### Get cuepoint start
        
        ```python
        from traktor_nml_utils import TraktorCollection
        from pathlib import Path
        
        collection = TraktorCollection(path=Path('collection.nml'))
        
        entry = collection.nml.entry[0]
        
        for cue_v2 in entry.cue_v2:
            print(cue_v2.start)
        ```
        
Platform: UNKNOWN
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown
