json_database
json_database copied to clipboard
persistent and searchable python dicts
``` db_path = "data/aww_reddit.db" print('add image process task',f) filename = os.path.basename(f).split('.')[0] videoid = b64e(filename) nowtime = time.time() update_time = int(nowtime) data = {"videoid": videoid, "status": 0, "update_time": update_time} # data...
improve support to load databases from file comments already supported, but it would be nice to also support the full Hjson spec, probably as a separate method https://github.com/hjson/hjson ```python db.load_from_json("some.json")...