Skip to main content

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


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.1b4.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

xmlist-1.1b4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file xmlist-1.1b4.tar.gz.

File metadata

  • Download URL: xmlist-1.1b4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xmlist-1.1b4.tar.gz
Algorithm Hash digest
SHA256 d82fa4b03c8b653cccb5b20018308d0bee3efe8263623449f8b158b2f5ae9a62
MD5 13bd6ec630837ec724adb5a1b9f6a6b3
BLAKE2b-256 c99cfbe2930d23a5f86b316203ba22baf5066a6896ca589caabf1c44790da007

See more details on using hashes here.

File details

Details for the file xmlist-1.1b4-py3-none-any.whl.

File metadata

  • Download URL: xmlist-1.1b4-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

Hashes for xmlist-1.1b4-py3-none-any.whl
Algorithm Hash digest
SHA256 aaa15c4334b18ea9d84abf634bfe01803e30a50658c3d2ceeb0b47b3f6f21136
MD5 190dd3ba42e30b5a6fd8dce77d178030
BLAKE2b-256 de29d1f6134569ad79764fbd3552e848b38f9f2cb69bdbe2ae6f91da9000031a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page