Skip to main content

Python schematics models for converting to and from XML.

Project description

Python schematics models for converting to and from XML.

Build Status Code Health Code Coverage Documentation Status Latest Version Supported Python versions

Install

pip install schematics-xml

Example Usage

Simply inherit XMLModel.

from schematics_xml import XMLModel

class Person(XMLModel):
    name = StringType()

john = Person(dict(name='John'))

xml = john.to_xml()

XML now contains;

<?xml version='1.0' encoding='UTF-8'?>
<person>
  <name>John</name>
</person>

And back the other way;

john = Person.from_xml(xml)

Author

Alex Hayes <alex@alution.com>

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

schematics-xml-0.2.1.tar.gz (990.2 kB view details)

Uploaded Source

Built Distribution

schematics_xml-0.2.1-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file schematics-xml-0.2.1.tar.gz.

File metadata

File hashes

Hashes for schematics-xml-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ff148c1394f401ce7ecbb33611f9bad9fee9239f3829da6ee1af597d589f37f8
MD5 32c0c0730d032961ca04dba10de77c2b
BLAKE2b-256 6749c084e517827f87b8866e32b018d68a07308fea8ee985614734acb3720c09

See more details on using hashes here.

File details

Details for the file schematics_xml-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for schematics_xml-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0cf8f914e804234351d249298392365e921113cbbbc2edcefe7743da7ba8f09c
MD5 c54343f11c037809f7c3e5e146dc340a
BLAKE2b-256 30f6690910ba0d1b56c2e87edf447cf326f01c2d2ab2a99186f1c8291b5bfb68

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