Today I Learned
Shelve
is dictionary database that stored in a single file without installation needed. It’s like a nosql version of sqlite.
There’s some really cool things about shelve:
- You can add to it with the same syntax as dictionaries, so not much new syntax or api to learn or thing about
- It’s stored in a file but it’s all pickled so read/write pretty fast and is stored on disk
- Anything that can be pickled can be stored as a value. In python, that is most things.
- It’s nosql and you don’t need to have a set schema.