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

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-CTC-1.3.0.dev0.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_CTC-1.3.0.dev0-py3-none-any.whl (306.0 kB view details)

Uploaded Python 3

File details

Details for the file PyXB-CTC-1.3.0.dev0.tar.gz.

File metadata

  • Download URL: PyXB-CTC-1.3.0.dev0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for PyXB-CTC-1.3.0.dev0.tar.gz
Algorithm Hash digest
SHA256 0d275892216c96fc64ce1c0919e53a24204e318f983d03afe7e00b0467d75eb5
MD5 69cf30f2e733f65cb787914df56852f5
BLAKE2b-256 18ad1a8db768a179ab3b855ca85ef9ce846dbffec7637e13fdb0fbc7d491a2d6

See more details on using hashes here.

File details

Details for the file PyXB_CTC-1.3.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: PyXB_CTC-1.3.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 306.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for PyXB_CTC-1.3.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 0186b65e9c6c29528021fa7fa741bdd44616d5f501aeedc6ffea6c824f991fd0
MD5 4d2d3bed6c588c20062a391dfab9f0a9
BLAKE2b-256 1f464eadf5d6d4e1413f283542f51425ffdecacb5f65731b8e482e608720dfe4

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