Skip to main content
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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxb_ctc-1.3.3.tar.gz (1.3 MB view details)

Uploaded Source

File details

Details for the file pyxb_ctc-1.3.3.tar.gz.

File metadata

  • Download URL: pyxb_ctc-1.3.3.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pyxb_ctc-1.3.3.tar.gz
Algorithm Hash digest
SHA256 42d645d03a3e286936fd52d13df9af91518b2d147a26021bb1efa952ccc705d1
MD5 81b6b56baeca688d83686bcf7da7b65a
BLAKE2b-256 e6cfbb50b25f398c9679c45a7de84fe8d2a3dd2272bc73cfb538b626e99d9001

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.3 This release

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

2 files

Supported by

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