Use SQLite as a key:value store
问题 As suggested in comments from Key: value store in Python for possibly 100 GB of data, without client/server and in other questions, SQLite could totally be used as a persistent key:value store. How would you define a class (or just wrapper functions) such that using a key:value store with SQLite would be as simple as: kv = Keyvaluestore('/test.db') kv['hello'] = 'hi' # set print(kv['hello']) # get print('blah' in kv) # answer: False because there's no key 'blah' in the store kv.close() ? 回答1: