Skip to main content

iTunes xml generator

Project description

# iTunes xml generator

Simple python package helps you generate xml file like "iTunes Library.xml" with random track and artist attributes.
Can be used e.g. for testing some software which needs differents iTunes Library.

## Usage
## Install via pip
```
pip install itunesxmlgen
```
### Generate
```
from itunesxmlgen import generate_xml

xml = generate_xml() # returns xml node (<lxml.etree.Element object>)
```

### Convert to string (if needed)
```
from itunesxmlgen.utils import tostring

string_xml = tostring(xml)
print(string_xml)
```

For more information see docstring.

## Run locally
### Clone repo
```
git clone git@github.com:perminovs/iTunesXmlGen.git
cd ./iTunesXmlGen
```
### Create & activate virtualenv (recommended)
```
virtualenv venv --python=/usr/bin/python3
source ./venv/bin/activate
```
### Install requirement
```
pip install -r requirements.txt
```
### Run tests
```
python -m unittest itunesxmlgen/tests/tests.py
```

## License
This repository uses the [MIT License](/LICENSE).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for itunesxmlgen, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size itunesxmlgen-0.1.2.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page