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.9.tar.gz (3.8 kB view details)

Uploaded Source

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

Hashes for exemelopy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 f1f629cb8afe9427a7e41c7f70d1b9fa4453de83f100366e2ec176225df4b696
MD5 25a4254bac384a0c59b0e32fac3fc99b
BLAKE2b-256 95882ee79bbd27cd35d3be3bdaca3ef5a83fe949b0495d0771a28427c937f836

See more details on using hashes here.

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