polymerist.genutils.fileutils.jsonio.update
Tools for statically or dynamically updating JSON files
Classes
Dict subclass which also updates an underlying JSON file - effectively and on-disc dict |
Functions
|
Add an entry to an existing JSON file |
Module Contents
- polymerist.genutils.fileutils.jsonio.update.append_to_json(json_path: pathlib.Path, **kwargs) None[source]
Add an entry to an existing JSON file
- class polymerist.genutils.fileutils.jsonio.update.JSONDict(json_path: pathlib.Path, *args, **kwargs)[source]
Bases:
dictDict subclass which also updates an underlying JSON file - effectively and on-disc dict !NOTE! - JSON doesn’t support non-string keys, so all keys given will be stringified - plan accordingly!
- json_path: pathlib.Path