[python-list] python application file format

Discussion in 'Python' started by Benjamin Jessup, Sep 26, 2012.

  1. 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!
     
    Benjamin Jessup, Sep 26, 2012
    #1
    1. Advertisements

  2. JSON is generally used for configuration.
     
    Ramchandra Apte, Sep 26, 2012
    #2
    1. Advertisements

  3. JSON is generally used for configuration.
     
    Ramchandra Apte, Sep 26, 2012
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...