Store Module¶
-
class
great_expectations.data_context.store.store.
Store
(store_backend=None, runtime_environment=None)¶ Bases:
object
A store is responsible for reading and writing Great Expectations objects to appropriate backends. It provides a generic API that the DataContext can use independently of any particular ORM and backend.
- An implementation of a store will generally need to define the following:
serialize
deserialize
_key_class (class of expected key type)
All keys must have a to_tuple() method.
-
serialize
(key, value)¶
-
key_to_tuple
(key)¶
-
tuple_to_key
(tuple_)¶
-
deserialize
(key, value)¶
-
get
(key)¶
-
set
(key, value)¶
-
list_keys
()¶
-
has_key
(key)¶
-
class
great_expectations.data_context.store.store_backend.
StoreBackend
(fixed_length_key=False)¶ Bases:
object
-
property
fixed_length_key
¶
-
get
(key)¶
-
set
(key, value, **kwargs)¶
-
has_key
(key)¶
-
get_url_for_key
(key, protocol=None)¶
-
abstract
list_keys
(prefix=())¶
-
property
-
class
great_expectations.data_context.store.store_backend.
InMemoryStoreBackend
(runtime_environment=None, fixed_length_key=False)¶ Bases:
great_expectations.data_context.store.store_backend.StoreBackend
Uses an in-memory dictionary as a store backend.
-
list_keys
(prefix=())¶
-
last updated: Aug 13, 2020