Skip to main content

xmlwitch offers Pythonic XML generation through context generators in a minimalist implementation with less than 100 lines of code. BSD-licensed.

Usage

import xmlwitch
xml = xmlwitch.Builder(version='1.0', encoding='utf-8')
with xml.feed(xmlns='http://www.w3.org/2005/Atom'):
    xml.title('Example Feed')
    xml.updated('2003-12-13T18:30:02Z')
    with xml.author:
        xml.name('John Doe')
    xml.id('urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6')
    with xml.entry:
        xml.title('Atom-Powered Robots Run Amok')
        xml.id('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a')
        xml.updated('2003-12-13T18:30:02Z')
        xml.summary('Some text.')
print(xml)

Setup

$ pip install xmlwitch # or
$ easy_install xmlwitch # or
$ cd xmlwitch-0.3; python setup.py install

Metadata

Release files for xmlwitch 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xmlwitch 0.3
File Size Uploaded Provenance Actions
xmlwitch-0.3.tar.gz 5.6 kB Without provenance Details for xmlwitch-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xmlwitch 0.3
File Interpreter ABI Platform Actions
xmlwitch-0.3-py2-none-any.whl Python 2 none any Details for xmlwitch-0.3-py2-none-any.whl

Total release size: 10.3 kB

Release files / xmlwitch-0.3.tar.gz

Download URL xmlwitch-0.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5368319dfca28051abf78b41c0d9a6d99014389890a29ae539a0316e3f9760e
BLAKE2b-256 checksum
How to use checksums
0ad402632fba90c3883d86d1f6c28db5fca5707498619d8e9efc9b98a377063c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / xmlwitch-0.3-py2-none-any.whl

Download URL xmlwitch-0.3-py2-none-any.whl
Size 4.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
6e264c1f8cd21c810df573c27cc14bd4c8b101e0c2b316870383c8e797dd6ff4
BLAKE2b-256 checksum
How to use checksums
cc1b2469af41280a71aa4699cbe16c672a10a79a13ac8329391d9f12b16f96ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xmlwitch 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page