Metadata-Version: 2.2
Name: xmlist
Version: 1.1rc0
Summary: Generates XML, represented as lists and tuples
Author-email: Joost Molenaar <jjm@j0057.nl>
License: MIT
Project-URL: repository, https://gitlab.com/j0057-git/python/xmlist
Project-URL: issues, https://gitlab.com/j0057-git/python/xmlist/-/issues
Keywords: xml,html
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
