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

Metadata

Release files for PyXB 1.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyXB 1.2.6
File Size Uploaded Provenance Actions
PyXB-1.2.6.tar.gz 7.0 MB Without provenance Details for PyXB-1.2.6.tar.gz

Release files / PyXB-1.2.6.tar.gz

Download URL PyXB-1.2.6.tar.gz
Size 7.0 MB
Tags Source
SHA-256 checksum
How to use checksums
2a00f38dd1d87b88f92d79bc5a09718d730419b88e814545f472bbd5a3bf27b4
BLAKE2b-256 checksum
How to use checksums
e3094fdb190ea2b7cb43d6d3e745276ee69f4d6181be70fcbfda7df3c5f72f0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyXB 1.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page