[dfwPython] preferences module
paul at paularcher.org
Sun Mar 1 10:42:47 CST 2009
On Mon, 2 Mar 2009, Daniel Stutzbach wrote:
> On Sun, Mar 1, 2009 at 8:10 AM, Paul Archer <paul at paularcher.org> wrote:
>> I'd like to store some preferences for a program (base directory,
>> extensions, stuff like that), and I'm not sure the best way to go about. I'd
>> like to have something that I can access like a simple 'dict', but
>> Before I go out and roll my own, can anyone reccommend a module that would
>> do this for me, preferably cross-platform (but Unix-only if necessary)?
>> I've thought about using sqlite, as I may end up needing the services of a
>> database anyway--but to start, anyway, it seems overkill. Thoughts?
> Check out the "shelve" module from the standard library:
> You could also build something similar on top of sqlite, which would be more
Interesting, and looks like an easy way to use pickle. I was hoping for
something that would let me manually modify a text file, if needed. Maybe
python-json. Anyone had any experience with that or similar?
More information about the dfwPython