Skip to content

store

MLTE custom list store implementation

CustomListStore

Bases: Store

An abstract custom list store

Source code in mlte/store/custom_list/store.py
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class CustomListStore(Store):
    """
    An abstract custom list store
    """

    def __init__(self, uri: StoreURI):
        """Base constructor"""
        super().__init__(uri=uri)
        """Store uri."""

    def session(self) -> CustomListStoreSession:
        """
        Return a session handle for the store instance.
        :return: The session handle
        """
        raise NotImplementedError("Cannot get handle to abstract Store.")

__init__(uri)

Base constructor

Source code in mlte/store/custom_list/store.py
18
19
20
21
def __init__(self, uri: StoreURI):
    """Base constructor"""
    super().__init__(uri=uri)
    """Store uri."""

session()

Return a session handle for the store instance.

Returns:

Type Description
CustomListStoreSession

The session handle

Source code in mlte/store/custom_list/store.py
23
24
25
26
27
28
def session(self) -> CustomListStoreSession:
    """
    Return a session handle for the store instance.
    :return: The session handle
    """
    raise NotImplementedError("Cannot get handle to abstract Store.")