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.1b3.dev2.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file xmlist-1.1b3.dev2.tar.gz
.
File metadata
- Download URL: xmlist-1.1b3.dev2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45563cba709d3e71c301c4878111ef0e7df4ed7a936e2bfb5de35f8da58cc180 |
|
MD5 | 876193d9415b14a336d1c419221f9891 |
|
BLAKE2b-256 | f3f15f714e136523cd3a382b540b7565a01d4e1f21f27b34f73daf4f37bd2403 |
File details
Details for the file xmlist-1.1b3.dev2-py3-none-any.whl
.
File metadata
- Download URL: xmlist-1.1b3.dev2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e1cc3980a2ce7f8f424464897c7c121c1932435fa8f5f8bf971e9796e3b0ac |
|
MD5 | 90e7fb9ced6d8b92e2c89fefa34b196a |
|
BLAKE2b-256 | 9c7e9cbe73ea8fee5f73a7ca0ac54cb72d87d1df6f27a66a117a7a7a40bf28f1 |