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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xmlist-1.1b7.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.1b7.tar.gz
Algorithm Hash digest
SHA256 f4a7a9764ddaf216327f906e9c3f09e9fbb916c1ae44aaec100982a5261fb7a8
MD5 9900c0c47956407ded52a4b84b952795
BLAKE2b-256 cb2b449c3931f75996b7ba4a6febdda5b338f1cf7ed545eedc6c86eb5d6cf402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xmlist-1.1b7-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.1b7-py3-none-any.whl
Algorithm Hash digest
SHA256 3705d9bb7bac438ed167f0613aa7072f359fa2aa1daf91cc80999acac260a89b
MD5 422061c3350e42f59d74ebca20ab17ef
BLAKE2b-256 6685290f021ba2679f8052ca777f3560145c9908ea876701219f59034bad6e9f

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