shelve
Stdlib — SerializationPython 2.0+Intermediate
Persistent dictionary backed by pickle and dbm
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
# shelve provides persistent dict-like storage print("shelve is used for simple persistent storage") print("Usage: with shelve.open('mydata') as db:") print(" db['key'] = value")
The shelve module is part of Python's standard library. Persistent dictionary backed by pickle and dbm.
Try in PlaygroundTags
stdlibserializationdata-format