[python-list] python application file format

B

Benjamin Jessup

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!
 
R

Ramchandra Apte

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.
 
R

Ramchandra Apte

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top