Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

xmlwitch offers Pythonic XML generation through context generators

Project Description

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 History

This version
History Node

0.3

History Node

0.2.1

History Node

0.2

History Node

0.1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
xmlwitch-0.3-py2-none-any.whl
(4.7 kB) Copy SHA256 Hash SHA256
Wheel py2 Aug 25, 2016
xmlwitch-0.3.tar.gz
(5.6 kB) Copy SHA256 Hash SHA256
Source None Aug 25, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting