Skip to main content

Python XML Binding

Project description

https://github.com/tefra/xsdata/raw/master/docs/_static/logo.png

Naive XML Bindings for python

https://travis-ci.com/tefra/xsdata.svg?branch=master https://readthedocs.org/projects/xsdata/badge https://codecov.io/gh/tefra/xsdata/branch/master/graph/badge.svg https://img.shields.io/github/languages/top/tefra/xsdata.svg https://www.codefactor.io/repository/github/tefra/xsdata/badge https://img.shields.io/pypi/pyversions/xsdata.svg https://img.shields.io/pypi/v/xsdata.svg

Features

  • Generate data models from XML Schema 1.0 and 1.1 definitions.

  • Supports qualified/unqualified elements and attributes

  • Supports enumerations and inner classes

  • Flattening strategies to keep the code as simple as possible.

  • Preserve embedded documentation and references

  • Pluggable code writer that supports different formats

  • Output: Python Data Classes

    • PEP8 naming conventions and code output

    • Full support for type hints even with forward references

    • XML Parser & Serializer based on lxml

    • JSON Parser & Serializer

  • Output: PlantUML class diagram


https://github.com/tefra/xsdata/raw/master/docs/_static/demo.gif

Check the documentation test suites or our W3C XML Schema 1.1 test runner and the samples repo for more ✨✨✨

Changelog: 20.4.2

  • Added support for abstract xsi:types in XmlParser.

  • Added cache for event names in XmlParser.

  • Added sanitization for generated module names.

  • Fixed not flattening abstract extension.

  • Fixed extension name conflicts between simple and complex types.

  • Fixed possible memory leak in CodeWriter.

  • Fixed looping variables twice to find next node in XmlParser.

  • Fixed CodeWriter adding unnecessary new lines.

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

xsdata-20.4.2.tar.gz (157.6 kB view hashes)

Uploaded Source

Built Distribution

xsdata-20.4.2-py3-none-any.whl (66.4 kB view hashes)

Uploaded Python 3

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