Generates XML, represented as lists and tuples
Project description
xmlist
xmlist
is a module for generating XML, which it represents by lists and
tuples.
using xmlist
doc = ['html',
('xmlns', 'http://www.w3.org/1999/xhtml'),
['head', ['title', 'Hello, world!']],
['body',
['h1', 'Hello, world!'],
['p', 'xmlist is a module for generating XML']]]
xml = xmlist.serialize(doc)
hacking on xmlist
Create a venv and install the package with the -e
/--editable
flag. The
dev
extra pulls in requirements for setuptools and tox; and the test
extra for various pytest packages.
python -m venv env
env/bin/python -m pip install -e .[dev,test]
testing xmlist
Running the tests for your current Python:
env/bin/python -m pytest -v
Running the tests in other Pythons:
env/bin/python -m tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xmlist-1.1b5.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file xmlist-1.1b5.tar.gz
.
File metadata
- Download URL: xmlist-1.1b5.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1096d465d753de222b9ebb2557f2471087b42c7db0c68e6ce8be815b8e164d4 |
|
MD5 | 4b9d8a901335f9846c4cf8fb37d8520e |
|
BLAKE2b-256 | a4cba62e18dad481d65e5b131cd4c8f5df4d3934ee5375db6eb15d3c3fae14dc |
File details
Details for the file xmlist-1.1b5-py3-none-any.whl
.
File metadata
- Download URL: xmlist-1.1b5-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c914f1b1713af5b916aebc6a2c7757a3600b234e611cb81fb84f8317d17041a7 |
|
MD5 | e712efe4ebf124f694da78f36c1602d7 |
|
BLAKE2b-256 | 54c84515b06d89b79d95c0523e1d13da95e99682b966bcdf4c413079d5b423ee |