happi.backends.json_db.JSONBackend¶
-
class
happi.backends.json_db.
JSONBackend
(path, initialize=False)¶ JSON database
The happi information is kept in a single dictionary large dictionary that is stored using simplejson
Parameters: - path (str) – Path to JSON file
- initialze (bool, optional) – Initialize a new empty JSON file to begin filling
-
__init__
(path, initialize=False)¶
Methods
__init__
(path[, initialize])delete
(_id)Delete a device instance from the database find
([_id, multiples])Find an instance or instances that matches the search criteria initialize
()Initialize a new JSON file database load
()Load the JSON database save
(_id, post[, insert])Save information to the database store
(db)Stache the database back into JSON