bw2data.backends.json.database
#
Module Contents#
Classes#
A data store for LCI databases. Stores each dataset in a separate file, serialized to JSON. |
- 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
SynchronousJSONDict
for this database.