exemelopy is a tool for building XML from native Python data-types, similiar to the json/simplejson modules
Project description
exemelopy aims to be an easy-to-use tool for building an XML document from native Python data-types without any intervention; akin to the json and simplejson modules, but for XML.
This package depends on lxml to create valid XML output.
USAGE
from exemelopy import XMLEncoder xml = XMLEncoder({'a': 1, 'b': True, 'spam': 'eggs'}).to_string() print xml
Which will return the following output:
<?xml version='1.0' encoding='UTF-8'?> <document> <a>1</a> <b nodetype="boolean">true</b> <spam>eggs</spam> </document>
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
exemelopy-0.0.9.tar.gz
(3.8 kB
view details)
File details
Details for the file exemelopy-0.0.9.tar.gz
.
File metadata
- Download URL: exemelopy-0.0.9.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f629cb8afe9427a7e41c7f70d1b9fa4453de83f100366e2ec176225df4b696 |
|
MD5 | 25a4254bac384a0c59b0e32fac3fc99b |
|
BLAKE2b-256 | 95882ee79bbd27cd35d3be3bdaca3ef5a83fe949b0495d0771a28427c937f836 |