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 group pulls in requirements for setuptools, tox and various pytest packages.

python -m venv .venv
python -m pip install -e . --group dev

testing xmlist

Running the tests for your current Python:

python -m pytest -v

Running the tests in other Pythons:

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.2.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xmlist-1.2.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file xmlist-1.2.2.tar.gz.

File metadata

  • Download URL: xmlist-1.2.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for xmlist-1.2.2.tar.gz
Algorithm Hash digest
SHA256 9b17c6b9a4b8739e81b899af96110d8bc0dd824ea579a22af4444038f833f0d0
MD5 15984bba90a83cf8dd004459abda081a
BLAKE2b-256 b3bf3f3fa3398f3c97fa7f9d6b9fe47f4ff070673afd3a5c722ba9fb1a6f0575

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmlist-1.2.2.tar.gz:

Publisher: gitlab-ci.yml on j0057-git/python/xmlist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xmlist-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: xmlist-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for xmlist-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b93ba049599638c738adb824527b85ec47070f087b57e895b2707c4d3c97a407
MD5 2fc67c2b7b0b566d3597f366baa50342
BLAKE2b-256 a7b31dbbc9aa06a259e4068a9ec5fae095bd40f8c4ca3bd1695e27e0c945d5c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for xmlist-1.2.2-py3-none-any.whl:

Publisher: gitlab-ci.yml on j0057-git/python/xmlist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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