Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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:
### Generate
```
from itunesxmlgenerator import generate_xml

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

### Convert to string (if needed)
```
from itunesxmlgenerator.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
```
cd ./itunesxmlgenerator/
python -m unittest tests.py
```

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

Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
itunesxmlgenerator-0.1.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None Jun 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page