bw2data.backends.json.database#
Classes#
A data store for LCI databases. Stores each dataset in a separate file, serialized to JSON. |
Module Contents#
- class bw2data.backends.json.database.JSONDatabase(name)[source]#
Bases:
bw2data.backends.base.LCIBackend
A data store for LCI databases. Stores each dataset in a separate file, serialized to JSON.
Instead of loading all the data at once,
.load()creates aSynchronousJSONDict, which loads values on demand.Use this backend by setting
"backend":"json"in the database metadata. This is done automatically if you call.register()from this class.- load(as_dict=False, *args, **kwargs)[source]#
Instantiate
SynchronousJSONDictfor this database.
- register(**kwargs)[source]#
Register a database with the metadata store, using the correct value for
backend, and creates database directory.