Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45797 > unrolled thread
| Started by | Burak Arslan <burak.arslan@arskom.com.tr> |
|---|---|
| First post | 2013-05-23 14:16 +0300 |
| Last post | 2013-05-23 14:16 +0300 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: serialize a class to XML and back Burak Arslan <burak.arslan@arskom.com.tr> - 2013-05-23 14:16 +0300
| From | Burak Arslan <burak.arslan@arskom.com.tr> |
|---|---|
| Date | 2013-05-23 14:16 +0300 |
| Subject | Re: serialize a class to XML and back |
| Message-ID | <mailman.2010.1369307794.3114.python-list@python.org> |
On 05/23/13 13:37, Schneider wrote: > Hi list, > > how can I serialize a python class to XML? Plus a way to get the class > back from the XML? > > My aim is to store instances of this class in a database. Hi, I'm working on a project called Spyne (http://spyne.io). With one object definition, you can serialize to/from xml and save to database via SQLAlchemy. The code generator on the site has examples for RPC and SQL. If you're not interested in doing RPC with the resulting document, here's an example for just the xml part: https://github.com/arskom/spyne/blob/master/examples/xml_utils.py Best regards, Burak
Back to top | Article view | comp.lang.python
csiph-web