XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] [ANN] Python XML Schema Bindings 1.0.0

On Wed, Nov 18, 2009 at 5:01 PM, Peter A. Bigot <bigotp@acm.org> wrote:
PyXB version 1.0.0 is now available from SourceForge at: http://sourceforge.net/projects/pyxb/

PyXB (Python XML Schema Bindings; "pixbee") is a pure Python package that generates Python source 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 current release supports XML Schema 1.0.

Version 1.0.0 is feature-complete and suitable for production development where validation of incoming and generated documents is desired.  The following schema constructs are supported:

  * Class constants corresponding to string enumeration constraints
  * Simple and complex type definitions
  * List and union datatypes
  * Constraints on (simple) datatypes (e.g., minInclusive, length)
  * Model groups and attribute groups
  * Complex content models (all, sequence, choice); minOccurs and maxOccurs
  * Abstract types, xsi:type, substitution groups
  * Nillable elements with xsi:nil
  * Namespace qualified attributes and elements
  * Documentation annotations present in the schema are converted to Python docstrings in the generated bindings.
  * Pattern constraints (as long as the simple type derives from something that is represented as a Python string)

This looks like impressive work.

I must say, though, aren't static-language-style data bindings rather rigid, and counter to the spirit of Python?  Of course, I develop a tool with a very different philosophy [1], but perhaps it's possible to probe the matter with use-cases.

[1] http://wiki.xml3k.org/Amara2/Tutorial#ModelingXML


--
Uche Ogbuji                       http://uche.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
Linked-in profile: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
TNB: http://www.thenervousbreakdown.com/author/uogbuji/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
http://www.google.com/profiles/uche.ogbuji


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS