Popular recipes tagged "serialize"http://code.activestate.com/recipes/tags/serialize/2011-10-17T12:48:59-07:00ActiveState Code RecipesConvert a nested Python data structure to XML (Python) 2011-10-17T12:48:59-07:00Graham Poulterhttp://code.activestate.com/recipes/users/4172291/http://code.activestate.com/recipes/577882-convert-a-nested-python-data-structure-to-xml/ <p style="color: grey"> Python recipe 577882 by <a href="/recipes/users/4172291/">Graham Poulter</a> (<a href="/recipes/tags/serialize/">serialize</a>, <a href="/recipes/tags/xml/">xml</a>). Revision 2. </p> <p>Uses lxml.etree to convert a Python object consisting of nested dicts, tuples, lists, strings and string-convertable objects into a very basic no-attributes, untyped dialect of XML in which elements are named after dictionary keys, and "&lt;i&gt;" is the element for anonymous list and tuple items.</p> <p>Does not support: encoding or decoding of strings, invalid floating point values, detection of circular references.</p> XML to Python data structure (De-/Serialization) (Python) 2010-06-16T23:29:34-07:00David McCuskeyhttp://code.activestate.com/recipes/users/4174198/http://code.activestate.com/recipes/577266-xml-to-python-data-structure-de-serialization/ <p style="color: grey"> Python recipe 577266 by <a href="/recipes/users/4174198/">David McCuskey</a> (<a href="/recipes/tags/deserialize/">deserialize</a>, <a href="/recipes/tags/serialize/">serialize</a>, <a href="/recipes/tags/xml/">xml</a>). Revision 2. </p> <p>This is a simple interface to a collection of classes which serialize Python objects to XML and back.</p> <p>This is one part of a trio of recipes:</p> <ul> <li><a href="http://code.activestate.com/recipes/577266">Simple API</a></li> <li><a href="http://code.activestate.com/recipes/577267">XML2Py De-serialization</a></li> <li><a href="http://code.activestate.com/recipes/577268">Py2XML Serialization</a></li> </ul> Python data structure to XML (serialization) (Python) 2010-06-16T20:26:21-07:00David McCuskeyhttp://code.activestate.com/recipes/users/4174198/http://code.activestate.com/recipes/577268-python-data-structure-to-xml-serialization/ <p style="color: grey"> Python recipe 577268 by <a href="/recipes/users/4174198/">David McCuskey</a> (<a href="/recipes/tags/serialize/">serialize</a>, <a href="/recipes/tags/xml/">xml</a>). Revision 2. </p> <p>This code serializes Python data structure into XML.</p> <p>This is one part of a trio of recipes:</p> <ul> <li><a href="http://code.activestate.com/recipes/577266">Simple API</a></li> <li><a href="http://code.activestate.com/recipes/577267">XML2Py De-serialization</a></li> <li><a href="http://code.activestate.com/recipes/577268">Py2XML Serialization</a></li> </ul> <h5>For more information</h5> <p>See <a href="http://code.activestate.com/recipes/577266">XML to Python data structure <a href="http://code.activestate.com/recipes/577266/">Recipe #577266</a></a></p> Serialize and Deserialize Securely (Python) 2009-11-04T19:57:41-08:00Eric Pruitthttp://code.activestate.com/recipes/users/4170757/http://code.activestate.com/recipes/576943-serialize-and-deserialize-securely/ <p style="color: grey"> Python recipe 576943 by <a href="/recipes/users/4170757/">Eric Pruitt</a> (<a href="/recipes/tags/cpickle/">cpickle</a>, <a href="/recipes/tags/pickle/">pickle</a>, <a href="/recipes/tags/serialize/">serialize</a>). Revision 19. </p> <p>A serialization library to serialize some of the more basic types. Does not suffer from the security flaws that cPickle and pickle do.</p>