flytekit.FlyteContext

class flytekit.FlyteContext(parent=None, file_access: Optional[flytekit.interfaces.data.data_proxy.FileAccessProvider] = None, compilation_state: Optional[flytekit.core.context_manager.CompilationState] = None, execution_state: Optional[flytekit.core.context_manager.ExecutionState] = None, flyte_client: Optional[flytekit.clients.friendly.SynchronousFlyteClient] = None, user_space_params: Optional[flytekit.common.tasks.sdk_runnable.ExecutionParameters] = None, serialization_settings: Optional[flytekit.core.context_manager.SerializationSettings] = None)[source]
__init__(parent=None, file_access: Optional[flytekit.interfaces.data.data_proxy.FileAccessProvider] = None, compilation_state: Optional[flytekit.core.context_manager.CompilationState] = None, execution_state: Optional[flytekit.core.context_manager.ExecutionState] = None, flyte_client: Optional[flytekit.clients.friendly.SynchronousFlyteClient] = None, user_space_params: Optional[flytekit.common.tasks.sdk_runnable.ExecutionParameters] = None, serialization_settings: Optional[flytekit.core.context_manager.SerializationSettings] = None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([parent, file_access, …])

Initialize self.

current_context()

new_compilation_context([prefix, task_resolver])

param prefix

See CompilationState comments

new_context([file_access, …])

new_execution_context(mode[, …])

new_file_access_context(file_access_provider)

new_serialization_settings(…)

Attributes

OBJS

compilation_state

execution_state

file_access

flyte_client

serialization_settings

user_space_params