Skip to main content
# 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).

Metadata

Release files for itunesxmlgenerator 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for itunesxmlgenerator 0.1
File Size Uploaded
itunesxmlgenerator-0.1.tar.gz 5.0 kB Details

Release files / itunesxmlgenerator-0.1.tar.gz

Download URL itunesxmlgenerator-0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cb61559adab861137685a2cada268cc772e6109ca2f56e1f04b908cec1d560a1
BLAKE2b-256 checksum
How to use checksums
b5630bd785992106231ac49b810565acc901f8d28d98ca04512c2c5deeba7d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page