New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pyxb

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyxb

Python XML Schema Bindings

pipPyPI
Version
1.2.6
Maintainers
1

PyXB is a pure Python <http://www.python.org>_ package that generates Python code for classes that correspond to data structures defined by XMLSchema <http://www.w3.org/XML/Schema>. In concept it is similar to JAXB <http://en.wikipedia.org/wiki/JAXB> for Java and CodeSynthesis XSD <http://www.codesynthesis.com/products/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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts