Context
Context
A shared context object for storing and accessing data across different processes.
Methods:
-
get_data–Retrieves data from the context by key.
-
set_data–Stores or updates data in the context.
get_data
get_data(key: str) -> Any
Retrieves data from the context by key.
Parameters:
-
(keystr) –The key or identifier for the data.
Returns:
-
Any(Any) –The value associated with the key, or None if not found.
Example
files = context.get_data('collected_files')