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 Distributions

PyXB-full-1.1.0.tar.gz (12.7 MB view details)

Uploaded Source

PyXB-base-1.1.0.tar.gz (911.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for PyXB-full-1.1.0.tar.gz
Algorithm Hash digest
SHA256 807d2af6ee846c45aa232a3fe9c7a85ca3bda375f82b79291cd121661748f99a
MD5 05359b56e40a9693e9b01d967122d524
BLAKE2b-256 92b3d9c8fbdb186fb3775ae962fe5b1052613afd57cc9a0c1d28d170ffcf2245

See more details on using hashes here.

File details

Details for the file PyXB-base-1.1.0.tar.gz.

File metadata

  • Download URL: PyXB-base-1.1.0.tar.gz
  • Upload date:
  • Size: 911.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyXB-base-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2dc82e953b5b17da32e98763221d7d5667374fd602cc5f2be9c33cd68233ef5f
MD5 3b5c8d308c4c23c79e050dd0d323172f
BLAKE2b-256 8a097d534166fa5393ee827a4b4494df4dfa2e547fadd6ecad412305c407eb5d

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