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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PyXB_CTC-1.3.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a208ce798d627829a11a7f780f78cbeb41ee3b9895e23e92cf8b1e5d70961dc |
|
MD5 | d7a4338b077b919afea45897997f6c4b |
|
BLAKE2b-256 | 8efff0121e7aacafdfb73f8b190c7d5827f92bd178689532a9b6c4bfb6d2b50f |