[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [ANN] Python XML Schema Bindings 1.0.0

  • From: Uche Ogbuji <uche@ogbuji.net>
  • To: "Peter A. Bigot" <bigotp@acm.org>
  • Date: Wed, 18 Nov 2009 23:39:57 -0700

Re:  [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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.