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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

Hashes for xmlist-1.1b8.tar.gz
Algorithm Hash digest
SHA256 01a32d191756c34511a754a6606dceb8a965c5faf3fa6e616e67986494b612fe
MD5 aaf611b3d1d54efdeda2c218d27df5ee
BLAKE2b-256 01e240577f66f3e3f361f1c6a33f71dd285e605ca480269d185340092ca45d01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xmlist-1.1b8-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.1b8-py3-none-any.whl
Algorithm Hash digest
SHA256 f2337a0858406137522e91a7d4f41a3e466ff798c298c863752a220fb555252b
MD5 3f976cca8f60989d591e26c997100146
BLAKE2b-256 7bb396d88df0fddb7a24aadc863a3f951463b710eb84b2fe7ce42e1efb1902e4

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