Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > [ANN] pyxser-1.5r --- Python Object to XML serializer/deserializer

Reply
Thread Tools

[ANN] pyxser-1.5r --- Python Object to XML serializer/deserializer

 
 
Daniel Molina Wegener
Guest
Posts: n/a
 
      08-24-2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


Hello Python Community.

I'm pleased to announce pyxser-1.5r, a python extension which
contains functions to serialize and deserialize Python Objects
into XML. It is a model based serializer.

What can do this serializer?

* Serialization of cross references.
* Serialization of circular references.
* Preserves object references on deserialization.
* Custom serializations.
* Custom deserializations.
* Object attribute selection call-back.
* Serialization depth limit.
* Standards based serialization.
* Standards based XML validation using pyxser XML Schema.
* C14N based serialization, as optional kind of output.
* Model based XML serialization, represented on XML Schema
and XML DTD.

This release contains various bug fixes, mainly related to type
checking and type handling and also the removal of all memory
leaks. The distribution contains working tests for ASCII, Latin-1,
UTF-8 and UTF-16 codecs, and a working test which do up to
1,500,000.00 serializations and deserializations, using just 65MB
of RAM.

Also, on Source Forge I've created two trackers, one for feature
requests and another for bug reports. This distribution was
tested on Ubuntu 10.04.1 (32bit and 64bit), Mac OS X 10.5.0,
CentOS (32bit and 64bit), FreeBSD 8.1 (32bit and 64bit).

The project is hosted at:
http://sourceforge.net/projects/pyxser/

The web page for the project is located at:
http://coder.cl/products/pyxser/

PyPi entry is:
http://pypi.python.org/pypi/pyxser/1.5r

Best regards,
- --
Daniel Molina Wegener <dmw [at] coder [dot] cl>
System Programmer & Web Developer
Phone: +56 (2) 979-0277 | Blog: http://coder.cl/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCgAGBQJMdE1OAAoJEHxqfq6Y4O5NDDkQAMSXOzZfYJ JpGD7QguUQsEhk
moyJNqQRblX+c3kzei415B3e6JGqpIJS1mCYi0w+r/O5sTs4sj1sq4DvW8GxS8ND
n0v7sB1KJAhUt3dbhtmOawGcRLhzbqfZ7on+wT8AKq1RM8q8G6 xsrYiEzeaq+F7u
QXiNMUQrr0uveDXSB6XFywAwhrk7tfNlKvDcllbGk69xIIg6SK 4kgDmgrgqSMlE3
tXQ70Q00XPKI7wqqz3Wyoqa08XEJZpf//bQvPc0Slc4Dh6GgA6fpbicCynFmrfQ0
JH5NZ1GOpTgvqE4SYt5WgcrUH9AXgw3bAAThKzASlWH3kmHzCu VOJWdEjiiVmw25
EwCBxND1fo9IWohZYEWux5/UkK4jsipwN7JPcIVI1ry5YojtB9pYylHmsFJqj/8S
fxzof1Mu0C633AUN6j8CZZ76HKmWOuVyisI6hQ0y9OYjRBWdBL 6zD+FaD9jRBs/M
5uWZAUNVUY/YIO6G0WAE/rZJG8SCH6yPIVDnqK9dFtXwhjjECcQhKcaBTbIX/3uS
pEvdaleLENZ4EN3l/r/xC+ufGUOcd6EwUlcVG71C/y+1k3jhvOZ2XyUjHp6TDopc
UfCdj+ULAdNvv02n1nRdLxxk6xQP8keYwM5wSE3LhPG8fHFlXw MMZ/a/rbSJQ9gB
LKxFVl+lGeFMmf/0hsWL
=U0hu
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
 
Josh English
Guest
Posts: n/a
 
      08-26-2010


It looks nice, but it's a shame it doesn't work on Windows. This
could
solve a lot of the problems I'm running into in my own attempt to
build a python Class implementation of an XML Validation object.
 
Reply With Quote
 
 
 
 
Stefan Behnel
Guest
Posts: n/a
 
      08-27-2010
Josh English, 27.08.2010 01:30:
> solve a lot of the problems I'm running into in my own attempt to
> build a python Class implementation of an XML Validation object.


How would object serialisation help here?

Stefan

 
Reply With Quote
 
Josh English
Guest
Posts: n/a
 
      08-28-2010
On Aug 26, 10:02*pm, Stefan Behnel <stefan...@behnel.de> wrote:
> Josh English, 27.08.2010 01:30:
>
> > solve a lot of the problems I'm running into in my own attempt to
> > build a python Class implementation of an XML Validation object.

>
> How would object serialisation help here?
>
>


I'm running into the same problem in a lot of projects I'm working on.
I can't decide
one the best way to serialize instances of classes. I want to be able
to store these
instances in a human-readable and editable format that I can reload
back into their
objects.

The XML validation tool requires the rules of the XML to be written
out in Python
as classes and instances. I would love to have a consistent way to
write the definition
file and load it. For example, Relax NG can be written out, the rules
loaded into a parser,
and actual XML data can be validated against it.

Since I started in Python, I want that bridge back to serialization.

In this project, and others, subclassing plays a big role in using the
code, so I need
a reliable way of writing a definition, loading it into the proper
subclass, and running
with those subclasses.

I am familiar with XML, but I've played with YAML and may try that.
I'm hesitant to use YAML
because it requires that I add the YAML.object.

I even wrote a program to store data similar to GEDCOM format, which
seemed the simplest from
a user's perspective.

Josh
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Transform Java object to XML string object Matt Java 7 05-19-2004 05:20 AM
Dropdown list + XML = Object reference not set to an instance of an object. darrel ASP .Net 0 04-27-2004 03:42 PM
Help! Web Service + XML Object Representatino vs. Real Object Arthur Mnev ASP .Net 0 02-02-2004 06:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57