Skip to main content

Python XML Schema Bindings

Project description

PyXB is a pure Python package that generates Python code for classes that correspond to data structures defined by XMLSchema. In concept it is similar to JAXB for Java and CodeSynthesis XSD for C++.

The major goals of PyXB are:

  • Provide a generated Python interface that is “Pythonic”, meaning similar to one that would have been hand-written:

    • Attributes and elements are Python properties, with name conflicts resolved in favor of elements

    • Elements with maxOccurs larger than 1 are stored as Python lists

    • Bindings for type extensions inherit from the binding for the base type

    • Enumeration constraints are exposed as class (constant) variables

  • Support bi-directional conversion (document to Python and back)

  • Allow easy customization of the generated bindings to provide functionality along with content

  • Support all XMLSchema features that are in common use, including:

    • complex content models (nested all/choice/sequence)

    • cross-namespace dependencies

    • include and import directives

    • constraints on simple types

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

PyXB-full-1.1.3.tar.gz (12.4 MB view details)

Uploaded Source

File details

Details for the file PyXB-full-1.1.3.tar.gz.

File metadata

  • Download URL: PyXB-full-1.1.3.tar.gz
  • Upload date:
  • Size: 12.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyXB-full-1.1.3.tar.gz
Algorithm Hash digest
SHA256 d581f7dca10811ca05a16bb49553ba47631360d26075a0b8a89d20471ab5de18
MD5 62f4e37baa59d9fc9df5f7186e7d63a2
BLAKE2b-256 356c35951d8213d07375f8f82fdb018501559dca367ca6014a8ada1a5dfd666a

See more details on using hashes here.

Supported by

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