6909ba5c2fdccb16789fddc84eaf6935a9cdc2b3
This propose is based on issue #133. Added 'ensure_session' global variable as a default value for 'ensure' parameter. I haven't used Python for a long time and I can't test this code for now. I'm sorry for my irresponsibility, but here is a rough idea as a solution.
dataset: databases for lazy people
In short, dataset makes reading and writing data in databases as simple as reading and writing JSON files.
To install dataset, fetch it with pip:
$ pip install dataset
Description
Upgraded dataset version from https://github.com/pudo/dataset/. This one uses new SQLAlchemy2.
870 KiB
Languages
Python
99.5%
Makefile
0.5%
