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_x-1.2.6.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxb_x-1.2.6.4-py3-none-any.whl (310.5 kB view details)

Uploaded Python 3

File details

Details for the file pyxb_x-1.2.6.4.tar.gz.

File metadata

  • Download URL: pyxb_x-1.2.6.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pyxb_x-1.2.6.4.tar.gz
Algorithm Hash digest
SHA256 5559745afd7854ab0caeb49215876a8fcd2cd48d3afaf18e813a7205345fd5ca
MD5 bb00ee49a3ed60b2d1a8615232fcff28
BLAKE2b-256 b180fb9cf8206eb26f2530e39960d7e554547d6bc7f2f95c3156104a8782acb4

See more details on using hashes here.

File details

Details for the file pyxb_x-1.2.6.4-py3-none-any.whl.

File metadata

  • Download URL: pyxb_x-1.2.6.4-py3-none-any.whl
  • Upload date:
  • Size: 310.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pyxb_x-1.2.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc62c98a4706ecfde43faee39c924b229ad8f96725dc82622b6b07cf52d92b0
MD5 fc33b4660149a3fa31b29e0074b5eec6
BLAKE2b-256 e60a6d0bd33949aed29fc2ce76c3d4845be1d8dcc86ad23bfd9cae7aa0d8428b

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 Sentry Error logging StatusPage Status page