Skip to main content

PyXB-X ("pixbix") is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema.

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

Uploaded Source

Built Distribution

PyXB_X-1.2.6.2-py3-none-any.whl (310.1 kB view details)

Uploaded Python 3

File details

Details for the file PyXB-X-1.2.6.2.tar.gz.

File metadata

  • Download URL: PyXB-X-1.2.6.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for PyXB-X-1.2.6.2.tar.gz
Algorithm Hash digest
SHA256 3bebab03b5020bd31be4f5e8439f44600b3ba10e45580d01d631029c3c531c9e
MD5 84c6299c320a9dbb08c32d2bc99aee68
BLAKE2b-256 0f1f4c727df69fb9652cc693912a70f25af437ddde92564f1749deca7f0e4e64

See more details on using hashes here.

File details

Details for the file PyXB_X-1.2.6.2-py3-none-any.whl.

File metadata

  • Download URL: PyXB_X-1.2.6.2-py3-none-any.whl
  • Upload date:
  • Size: 310.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for PyXB_X-1.2.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d130e824c9e08acc3d43a0b454a48613588b27cee09d9f34d947081a92691e2
MD5 6ae88d009bc912c184976be2b3d48ea5
BLAKE2b-256 a9718db3f341cd884f87987673c54d36fa028b8ffea8164e4bca2930b76e60fe

See more details on using hashes here.

Supported by

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