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

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
xmlwitch-0.3.tar.gz 5.6 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2.1

1 release file

0.2

1 release file

0.1.0

2 release files

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