traktor-nml-utils


Nametraktor-nml-utils JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttp://github.com/ifischer/traktor-nml-utils
SummaryUtilities to read and write Traktor NML files
upload_time2020-08-02 10:10:47
maintainer
docs_urlNone
authorIngo Fischer
requires_python>=3.7.0
licenseGPL
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.model.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.model.entry[0]

for cue_v2 in entry.cue_v2:
    print(cue_v2.start)
```
            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/ifischer/traktor-nml-utils",
    "name": "traktor-nml-utils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Ingo Fischer",
    "author_email": "mail@ingofischer.de",
    "download_url": "https://files.pythonhosted.org/packages/fd/d7/381b52c8d47050a950e39cfa9c90e1e927c77316604083fef15643870406/traktor-nml-utils-2.0.1.tar.gz",
    "platform": "",
    "description": "# Traktor NML utils\n\n[![Build Status](https://travis-ci.com/wolkenarchitekt/traktor-nml-utils.svg?branch=master)](https://travis-ci.com/wolkenarchitekt/traktor-nml-utils)\n\nThis module contains utilities to parse and modify Native Instruments Traktor NML files.\n\nIt can parse collection files (`$TRAKTOR_DIR/collection.nml`) and history \nfiles (`$TRAKTOR_DIR/History/history_$DATE.nml`).\n\n## Requirements\n\nBecause traktor-nml-utils uses `dataclasses`, you need at least Python 3.7.x. \n\n## Installation\n\n```shell\npip install traktor-nml-utils\n```\n\n## Usage\n\n### Get artist, title and rating of all collection entries\n\n```python\nfrom traktor_nml_utils import TraktorCollection\nfrom pathlib import Path\n\ncollection = TraktorCollection(path=Path('collection.nml'))\n\nfor entry in collection.model.entry:\n    print(entry.artist, entry.title, entry.info.ranking)\n```\n\n### Get cuepoint start\n\n```python\nfrom traktor_nml_utils import TraktorCollection\nfrom pathlib import Path\n\ncollection = TraktorCollection(path=Path('collection.nml'))\n\nentry = collection.model.entry[0]\n\nfor cue_v2 in entry.cue_v2:\n    print(cue_v2.start)\n```",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Utilities to read and write Traktor NML files",
    "version": "2.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "b8bce7b34a8daf95f9d13495a4ed25f3",
                "sha256": "7b70238995c65acee496b6dd4213185c3a1b8640d0268950ac68fb28ccd5849d"
            },
            "downloads": -1,
            "filename": "traktor-nml-utils-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b8bce7b34a8daf95f9d13495a4ed25f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0",
            "size": 5854,
            "upload_time": "2020-08-02T10:10:47",
            "upload_time_iso_8601": "2020-08-02T10:10:47.490782Z",
            "url": "https://files.pythonhosted.org/packages/fd/d7/381b52c8d47050a950e39cfa9c90e1e927c77316604083fef15643870406/traktor-nml-utils-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-08-02 10:10:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "ifischer",
    "error": "Could not fetch GitHub repository",
    "lcname": "traktor-nml-utils"
}
        
Elapsed time: 0.15873s