dlt-runtime 0.20.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dlt_runtime/__init__.py +1 -0
- dlt_runtime/__plugin__.py +21 -0
- dlt_runtime/_runtime_command.py +1561 -0
- dlt_runtime/commands.py +516 -0
- dlt_runtime/exceptions.py +23 -0
- dlt_runtime/py.typed +0 -0
- dlt_runtime/runtime.py +206 -0
- dlt_runtime/runtime_clients/api/__init__.py +8 -0
- dlt_runtime/runtime_clients/api/api/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/configurations/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/configurations/create_configuration.py +274 -0
- dlt_runtime/runtime_clients/api/api/configurations/get_configuration.py +260 -0
- dlt_runtime/runtime_clients/api/api/configurations/get_latest_configuration.py +246 -0
- dlt_runtime/runtime_clients/api/api/configurations/list_configurations.py +286 -0
- dlt_runtime/runtime_clients/api/api/default/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/default/ping.py +147 -0
- dlt_runtime/runtime_clients/api/api/deployments/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/deployments/create_deployment.py +270 -0
- dlt_runtime/runtime_clients/api/api/deployments/get_deployment.py +260 -0
- dlt_runtime/runtime_clients/api/api/deployments/get_latest_deployment.py +246 -0
- dlt_runtime/runtime_clients/api/api/deployments/list_deployments.py +286 -0
- dlt_runtime/runtime_clients/api/api/me/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/me/me.py +169 -0
- dlt_runtime/runtime_clients/api/api/organizations/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/organizations/get_organization.py +246 -0
- dlt_runtime/runtime_clients/api/api/runs/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/runs/cancel_run.py +260 -0
- dlt_runtime/runtime_clients/api/api/runs/create_run.py +316 -0
- dlt_runtime/runtime_clients/api/api/runs/get_latest_run.py +274 -0
- dlt_runtime/runtime_clients/api/api/runs/get_run.py +288 -0
- dlt_runtime/runtime_clients/api/api/runs/get_run_logs.py +288 -0
- dlt_runtime/runtime_clients/api/api/runs/list_runs.py +331 -0
- dlt_runtime/runtime_clients/api/api/scripts/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/scripts/create_or_update_script.py +292 -0
- dlt_runtime/runtime_clients/api/api/scripts/disable_public_url.py +264 -0
- dlt_runtime/runtime_clients/api/api/scripts/enable_public_url.py +268 -0
- dlt_runtime/runtime_clients/api/api/scripts/get_latest_script_version.py +260 -0
- dlt_runtime/runtime_clients/api/api/scripts/get_script.py +260 -0
- dlt_runtime/runtime_clients/api/api/scripts/get_script_version.py +274 -0
- dlt_runtime/runtime_clients/api/api/scripts/list_script_versions.py +300 -0
- dlt_runtime/runtime_clients/api/api/scripts/list_scripts.py +282 -0
- dlt_runtime/runtime_clients/api/api/scripts/update_script.py +294 -0
- dlt_runtime/runtime_clients/api/api/workspaces/__init__.py +1 -0
- dlt_runtime/runtime_clients/api/api/workspaces/get_workspace.py +246 -0
- dlt_runtime/runtime_clients/api/client.py +286 -0
- dlt_runtime/runtime_clients/api/errors.py +16 -0
- dlt_runtime/runtime_clients/api/models/__init__.py +73 -0
- dlt_runtime/runtime_clients/api/models/configuration_response.py +145 -0
- dlt_runtime/runtime_clients/api/models/create_configuration_body.py +83 -0
- dlt_runtime/runtime_clients/api/models/create_deployment_body.py +83 -0
- dlt_runtime/runtime_clients/api/models/create_run_request.py +106 -0
- dlt_runtime/runtime_clients/api/models/create_script_request.py +142 -0
- dlt_runtime/runtime_clients/api/models/deployment_response.py +137 -0
- dlt_runtime/runtime_clients/api/models/detailed_run_response.py +308 -0
- dlt_runtime/runtime_clients/api/models/detailed_script_response.py +325 -0
- dlt_runtime/runtime_clients/api/models/error_response_400.py +97 -0
- dlt_runtime/runtime_clients/api/models/error_response_400_extra.py +44 -0
- dlt_runtime/runtime_clients/api/models/error_response_401.py +97 -0
- dlt_runtime/runtime_clients/api/models/error_response_401_extra.py +44 -0
- dlt_runtime/runtime_clients/api/models/error_response_403.py +97 -0
- dlt_runtime/runtime_clients/api/models/error_response_403_extra.py +44 -0
- dlt_runtime/runtime_clients/api/models/error_response_404.py +97 -0
- dlt_runtime/runtime_clients/api/models/error_response_404_extra.py +44 -0
- dlt_runtime/runtime_clients/api/models/list_configurations_response_200.py +107 -0
- dlt_runtime/runtime_clients/api/models/list_deployments_response_200.py +107 -0
- dlt_runtime/runtime_clients/api/models/list_runs_response_200.py +107 -0
- dlt_runtime/runtime_clients/api/models/list_script_versions_response_200.py +107 -0
- dlt_runtime/runtime_clients/api/models/list_scripts_response_200.py +107 -0
- dlt_runtime/runtime_clients/api/models/logs_response.py +93 -0
- dlt_runtime/runtime_clients/api/models/me_response.py +106 -0
- dlt_runtime/runtime_clients/api/models/organization_response.py +114 -0
- dlt_runtime/runtime_clients/api/models/ping_response.py +67 -0
- dlt_runtime/runtime_clients/api/models/run_mode.py +9 -0
- dlt_runtime/runtime_clients/api/models/run_response.py +293 -0
- dlt_runtime/runtime_clients/api/models/run_status.py +16 -0
- dlt_runtime/runtime_clients/api/models/run_trigger_type.py +9 -0
- dlt_runtime/runtime_clients/api/models/script_response.py +286 -0
- dlt_runtime/runtime_clients/api/models/script_type.py +9 -0
- dlt_runtime/runtime_clients/api/models/script_version_response.py +192 -0
- dlt_runtime/runtime_clients/api/models/update_script_request.py +178 -0
- dlt_runtime/runtime_clients/api/models/workspace_response.py +114 -0
- dlt_runtime/runtime_clients/api/types.py +54 -0
- dlt_runtime/runtime_clients/auth/__init__.py +8 -0
- dlt_runtime/runtime_clients/auth/api/__init__.py +1 -0
- dlt_runtime/runtime_clients/auth/api/default/__init__.py +1 -0
- dlt_runtime/runtime_clients/auth/api/default/ping.py +127 -0
- dlt_runtime/runtime_clients/auth/api/github/__init__.py +1 -0
- dlt_runtime/runtime_clients/auth/api/github/github_oauth_complete.py +166 -0
- dlt_runtime/runtime_clients/auth/api/github/github_oauth_exchange.py +166 -0
- dlt_runtime/runtime_clients/auth/api/github/github_oauth_start.py +170 -0
- dlt_runtime/runtime_clients/auth/client.py +286 -0
- dlt_runtime/runtime_clients/auth/errors.py +16 -0
- dlt_runtime/runtime_clients/auth/models/__init__.py +19 -0
- dlt_runtime/runtime_clients/auth/models/error_response_400.py +97 -0
- dlt_runtime/runtime_clients/auth/models/error_response_400_extra.py +44 -0
- dlt_runtime/runtime_clients/auth/models/github_device_flow_login_request.py +59 -0
- dlt_runtime/runtime_clients/auth/models/github_device_flow_start_response.py +83 -0
- dlt_runtime/runtime_clients/auth/models/github_oauth_exchange_request.py +59 -0
- dlt_runtime/runtime_clients/auth/models/login_response.py +76 -0
- dlt_runtime/runtime_clients/auth/models/ping_response.py +67 -0
- dlt_runtime/runtime_clients/auth/types.py +54 -0
- dlt_runtime/version.py +6 -0
- dlt_runtime-0.20.0.dist-info/METADATA +66 -0
- dlt_runtime-0.20.0.dist-info/RECORD +107 -0
- dlt_runtime-0.20.0.dist-info/WHEEL +4 -0
- dlt_runtime-0.20.0.dist-info/entry_points.txt +2 -0
- dlt_runtime-0.20.0.dist-info/licenses/LICENSE.txt +203 -0
dlt_runtime/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from dlt_runtime.version import __version__
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from typing import Optional, Type
|
|
2
|
+
|
|
3
|
+
from dlt.common.configuration import plugins
|
|
4
|
+
from dlt.common.runtime.run_context import active as run_context_active
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def is_workspace_active() -> bool:
|
|
8
|
+
# verify run context type without importing
|
|
9
|
+
|
|
10
|
+
ctx = run_context_active()
|
|
11
|
+
return ctx.__class__.__name__ == "WorkspaceRunContext"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@plugins.hookimpl(specname="plug_cli")
|
|
15
|
+
def plug_cli_runtime() -> Optional[Type[plugins.SupportsCliCommand]]:
|
|
16
|
+
if is_workspace_active():
|
|
17
|
+
from dlt_runtime.commands import RuntimeCommand
|
|
18
|
+
|
|
19
|
+
return RuntimeCommand
|
|
20
|
+
else:
|
|
21
|
+
return None
|