patx wrote: > Hello I have recently started work on a new project called pickleDB. It is > a lightweight key-value database engine (inspired by redis). > > Check it out at http://packages.python.org/pickleDB > > import json as pickle # ;) > > def load(location): > global db > try: > db = pickle.load(open(location, 'rb')) > except IOError: > db = {} > global loco > loco = location > return True > > def set(key, value): > db[key] = value > pickle.dump(db, open(loco, 'wb')) > return True > > def get(key): > return db[key]
Hmm, I don't think that will scale... -- http://mail.python.org/mailman/listinfo/python-list