Skip to main content

exemelopy is a tool for building XML from native Python data-types, similiar to the json/simplejson modules

Project description

travis_status

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.5.zip (5.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page