This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This is a self contained custom data structure with dict like | |
key-value storage capabilities. | |
* Can store the key-value pairs in any sqlalchemy supported db | |
* Employs thread safe transactional scope | |
* Modular, just change the session_scope to use a different db | |
* This example uses sqlite db for demonstration purpose | |
The code is inspired by Raymond Hettinger's talk `Build powerful, |
OlderNewer