Store¶
The Store interface provides access to platform data and resources within your apps.
StoreInterface¶
StoreInterface
¶
StoreInterface(flow_id: str, user: Optional[str] = None, step_name: Optional[str] = None, is_action: bool = False, bucket_name: Optional[str] = None)
The StoreInterface class is the main interface to storing and retrieving metadata. It provides convenience methods for storing input data, assets and flow metadata and also methods for retrieving previously saved data.
EXAMPLE:
# Imports from virtualitics_sdk import StoreInterface...
class ExampleStep(Step): def run(self, flow_metadata):...
future_dropdown = Dropdown( ["Rows", "Columns"], selected=["Rows"], title="Dashboard Options", label="Option Selector", ) store_interface.create_future_element(future_dropdown, future_step.name) table_links = [ "https://www.google.com", store_interface.create_element_link(future_dropdown, future_step.name) ] table = Table(example_dataset, title="Example Table", description="This is a table showing cells/text color", downloadable=True, links=table_links)...
class FutureSte(Step): def run(self, flow_metadata):...
dropdown = store_interface.get_element(example_step.name, "Dashboard Options")...