Skip to main content

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

Project description

Updated for 3.10 by mabridgland: 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-new-1.2.8.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

PyXB_new-1.2.8-py2.py3-none-any.whl (306.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file PyXB-new-1.2.8.tar.gz.

File metadata

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

File hashes

Hashes for PyXB-new-1.2.8.tar.gz
Algorithm Hash digest
SHA256 0db788e6e3ad1ac666db637f27dc9d9894635080af7038e4ab59927da535af9d
MD5 e109869127d8fa66a594f4e50f05eeb3
BLAKE2b-256 14a045a4b493718bf84fdff447234285dd335176877266c9bab48d8d25c1fffa

See more details on using hashes here.

File details

Details for the file PyXB_new-1.2.8-py2.py3-none-any.whl.

File metadata

  • Download URL: PyXB_new-1.2.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 306.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.7

File hashes

Hashes for PyXB_new-1.2.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1f3942bce2bd4eeec0c98b437457c657ef3830751f0cce84bca00b824dae5a7
MD5 c92cf8233d7ec660f1abf7dc34e200e5
BLAKE2b-256 6c1b29e44d2a3bab116f33763690fc3b4cc05a5e2969f06310989329c6b07cd6

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