Answers for "python local key value store"

2

python Key–value database

from sqlitedict import SqliteDict

mydict = SqliteDict('./my_db.sqlite', autocommit=True)
mydict['some_key'] = any_picklable_object
print(mydict['some_key'])
for key, value in mydict.items():
    print(key, value)
print(len(mydict))
mydict.close()
Posted by: Guest on January-08-2021

Code answers related to "python local key value store"

Python Answers by Framework

Browse Popular Code Answers by Language