# 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).
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).
Metadata
Release files for itunesxmlgen 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| itunesxmlgen-0.1.2.tar.gz | 5.7 kB | Details |
Release files / itunesxmlgen-0.1.2.tar.gz
| Download URL | itunesxmlgen-0.1.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
851989246a2b630d4abd6bc5be8a8c82e2fe3e73fc6874b68f7157f48c2e3469
|
|
BLAKE2b-256 checksum How to use checksums |
073fac62cd316668e80500a541f2fb7158dc8d555c3882f9380de9881c7d4acd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |