Skip to main content

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>

Release files for schematics-xml 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for schematics-xml 0.2.1
File Size Uploaded
schematics-xml-0.2.1.tar.gz 990.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for schematics-xml 0.2.1
File Interpreter ABI Platform
schematics_xml-0.2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 1.0 MB

Release files / schematics-xml-0.2.1.tar.gz

Download URL schematics-xml-0.2.1.tar.gz
Size 990.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ff148c1394f401ce7ecbb33611f9bad9fee9239f3829da6ee1af597d589f37f8
BLAKE2b-256 checksum
How to use checksums
6749c084e517827f87b8866e32b018d68a07308fea8ee985614734acb3720c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / schematics_xml-0.2.1-py2.py3-none-any.whl

Download URL schematics_xml-0.2.1-py2.py3-none-any.whl
Size 10.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0cf8f914e804234351d249298392365e921113cbbbc2edcefe7743da7ba8f09c
BLAKE2b-256 checksum
How to use checksums
30f6690910ba0d1b56c2e87edf447cf326f01c2d2ab2a99186f1c8291b5bfb68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page