[python-list] python application file format

Ramchandra Apte maniandram01 at gmail.com
Wed Sep 26 09:01:29 EDT 2012


On Wednesday, 26 September 2012 18:29:14 UTC+5:30, Benjamin Jessup  wrote:
> Hello all,
> 
> 
> 
> What do people recommend for a file format for a python desktop 
> 
> application? Data is complex with 100s/1000s of class instances, which 
> 
> reference each other.
> 
> 
> 
> Write the file with struct module? (Rebuild object pointers, safe, 
> 
> compact, portable, not expandable without reserved space)
> 
> 
> 
> Use cPickle with a module/class whitelist? (Can't easily port, not 
> 
> entirely safe, compact enough, expandable)
> 
> 
> 
> Use JSON or similar? (Rebuild object pointers, portable, expandable, size?)
> 
> 
> 
> Any advice is greatly appreciated!

JSON is generally used for configuration.



More information about the Python-list mailing list