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.1b6.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file xmlist-1.1b6.tar.gz
.
File metadata
- Download URL: xmlist-1.1b6.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 | 48c8353d2c955beaa6c091c2987679247a4fab59e1203b0e48e3259d0bbd391a |
|
MD5 | 98d57e542a88f7dd8953fa33ae9e8a68 |
|
BLAKE2b-256 | 6803613daf79be18ac104f0fec5768cf112f938f0231f4f13a67e11d94346828 |
File details
Details for the file xmlist-1.1b6-py3-none-any.whl
.
File metadata
- Download URL: xmlist-1.1b6-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 | e7aa4dbdb7f63ad7d31003aca748c45474afc0f5ce04d1aa9b7aedae2d09606d |
|
MD5 | a928c6717400a41b454deba32c337101 |
|
BLAKE2b-256 | 1de0282604f43b4aed1755c43625699a4fc0d0c09a82cb698717c3b26421128d |