--- id: pyxb-x version: "1.2.6.4" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # PyXB-X — PyXB-X ("pixbix") is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema. License: permissive · Maintenance: active · Downloads: 349.7K/mo ## What it is and what it does PyXB-X is a code generator that reads XMLSchema definitions and produces Python classes representing the schema's data structures. It aims to provide a Pythonic interface similar to what a developer would hand-write, with elements and attributes as properties, support for complex content models, and bidirectional XML-to-Python conversion. The package handles common XMLSchema features including nested choice/sequence/all constructs, cross-namespace dependencies, include and import directives, and simple-type constraints. It's positioned as the Python equivalent of JAXB (Java) and CodeSynthesis XSD (C++), letting developers work with XML data through native Python objects rather than DOM or SAX parsing. Use it for: - Generate type-safe Python classes from an existing XMLSchema to validate and parse XML documents in a structured way - Automate creation of XML-based configuration or data files by writing Python objects that serialize back to XML - Build web services or APIs that consume/produce XML with schema-enforced structure and type safety - Convert legacy XML data formats into Python object hierarchies for easier manipulation and analysis - Enforce schema compliance in Python applications by using generated bindings instead of manual XML parsing ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyXB-X generates Python classes from XMLSchema definitions, enabling bidirectional conversion between XML documents and Python objects with a Pythonic interface. Yes, if you work with XMLSchema-defined XML data and want type-safe Python bindings. The package is actively maintained, has no dependencies, low install friction, and carries a permissive license. The recent release and active status suggest ongoing support, though documentation and repository visibility should be verified before committing to a new project. ## Install pip install pyxb-x uv add pyxb-x poetry add pyxb-x ## Installing PyXB-X Before you install: Low install friction with no runtime dependencies; marked active with a recent release 17 days ago. License in practice: Apache License 2.0 is permissive, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers. Quickstart: pip install pyxb-x from pyxb import WXML # Generate bindings from schema: pyxb -u schema.xsd -m myschema # Then use generated module to parse/create XML documents Requires XMLSchema file to generate bindings; generated code must be created via command-line tool before runtime use. Verify before relying: - Whether the package supports Python versions beyond 3.8 despite classifiers listing only up to 3.8 - Current state of the SourceForge repository and whether active development continues beyond the recent PyPI release ## Package facts - License: Apache License 2.0 (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 349.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags xmlschema to python code generator, xml schema binding python, xsd to python classes, xml data structure binding, schema-driven python code generation, xml document to python object, pythonic xml bindings, code-generation, xml-schema, data-binding [View on SkillFed](https://skillfed.io/packages/pyxb-x) · [View on PyPI](https://pypi.org/project/pyxb-x/)