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.1b9.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file xmlist-1.1b9.tar.gz
.
File metadata
- Download URL: xmlist-1.1b9.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 | d23ec994e8dabf0bbab16fad5b777a1217c02fac65fbdb46fd584bad0459f3f3 |
|
MD5 | 43005ab1e32c5ae241c24666b8435b7b |
|
BLAKE2b-256 | 2df23f4faab14b685e40e2439aebd732c5975125547d02b1c4d98e512569eddb |
File details
Details for the file xmlist-1.1b9-py3-none-any.whl
.
File metadata
- Download URL: xmlist-1.1b9-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 | af34d232262bfd9fd4ed63102d07ed78dceca325552da4804ebf9ac3daf6c158 |
|
MD5 | 0e8cb8df839dd0dcf42f0a1f6e382dc2 |
|
BLAKE2b-256 | e706da2b71e145fccdf9c1d2c222184a9f64a311c35cd36bd0e1f1044b4269ff |