truefoundry 0.3.0rc13__tar.gz → 0.3.0rc15__tar.gz
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.
Potentially problematic release.
This version of truefoundry might be problematic. Click here for more details.
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/PKG-INFO +2 -2
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/pyproject.toml +11 -2
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/util.py +43 -6
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/exceptions.py +7 -4
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/README.md +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/agents/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/agents/base.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/agents/developer.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/agents/project_identifier.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/agents/tester.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/cli.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/constants.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/exception.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/logger.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/ask.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/base.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/commit.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/docker_build.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/docker_run.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/file_type_counts.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/list_files.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/read_file.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/send_request.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/write_file.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/utils/client.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/utils/diff.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/utils/pydantic_compat.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/cli/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/cli/__main__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/auto_gen/models.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/dockerfile.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/tfy_notebook_buildpack/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/tfy_notebook_buildpack/dockerfile_template.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/docker_service.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/cli.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/apply_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/build_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/build_logs_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/create_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/delete_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/deploy_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/get_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/list_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/login_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/logout_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/logs_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/patch_application_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/patch_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/redeploy_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/terminate_comand.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/trigger_command.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/config.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/console.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/const.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/display_util.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/core/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/core/login.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/core/logout.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/__main__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/app.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/build.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/remote/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/remote/context.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/remote/method.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/remote/remote.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/route.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/service.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/utils.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/io/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/io/output_callback.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/io/rich_output_callback.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/json_util.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/auth/auth_service_client.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/auth/credential_file_manager.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/auth/credential_provider.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/auth/servicefoundry_session.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/clients/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/clients/servicefoundry_client.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/clients/shell_client.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/clients/utils.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/const.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/dao/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/dao/application.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/dao/apply.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/dao/version.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/dao/workspace.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/logs_utils.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/messages.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/model/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/model/entity.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/session.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/util.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/win32.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/deploy.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/deploy_workflow.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/deployable_patched_models.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/models.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/patched_models.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/source.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/deprecated.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/truefoundry_chat.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/truefoundry_embeddings.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/truefoundry_llm.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/utils.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/logger.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/ml/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/pydantic_v1.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/python_deploy_codegen.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/version.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/__init__.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/container_task.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/example/deploy.sh +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/example/hello_world_package/workflow.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/example/package/test_workflow.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/example/truefoundry.yaml +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/example/workflow.yaml +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/map_task.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/python_task.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/task.py +0 -0
- {truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/workflow.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: truefoundry
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.0rc15
|
|
4
4
|
Summary: Truefoundry CLI
|
|
5
5
|
Author: Abhishek Choudhary
|
|
6
6
|
Author-email: abhishek@truefoundry.com
|
|
@@ -24,7 +24,7 @@ Requires-Dist: flytekit (==1.12.2) ; extra == "workflow"
|
|
|
24
24
|
Requires-Dist: gitignorefile (>=1.1.2,<1.2.0)
|
|
25
25
|
Requires-Dist: importlib-metadata (>=6.0.1,<8.0.0)
|
|
26
26
|
Requires-Dist: importlib-resources (>=5.2.0,<6.0.0)
|
|
27
|
-
Requires-Dist: mlfoundry (==0.11.
|
|
27
|
+
Requires-Dist: mlfoundry (==0.11.5) ; extra == "ml"
|
|
28
28
|
Requires-Dist: openai (>=1.16.2,<2.0.0)
|
|
29
29
|
Requires-Dist: packaging (>=20.0,<25.0)
|
|
30
30
|
Requires-Dist: pydantic (>=1.10.0,<3)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "truefoundry"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.0rc15"
|
|
4
4
|
description = "Truefoundry CLI"
|
|
5
5
|
authors = ["Abhishek Choudhary <abhishek@truefoundry.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -17,7 +17,7 @@ GitPython = ">=3.1.43,<3.2.0"
|
|
|
17
17
|
importlib-metadata = ">=6.0.1,<8.0.0"
|
|
18
18
|
importlib-resources = "^5.2.0"
|
|
19
19
|
Mako = "^1.1.6"
|
|
20
|
-
mlfoundry = { version = "0.11.
|
|
20
|
+
mlfoundry = { version = "0.11.5", optional = true }
|
|
21
21
|
openai = ">=1.16.2,<2.0.0"
|
|
22
22
|
packaging = ">=20.0,<25.0"
|
|
23
23
|
pydantic = ">=1.10.0,<3"
|
|
@@ -48,6 +48,15 @@ pre-commit = ">=3.5.0,<4.0.0"
|
|
|
48
48
|
pytest = ">=8.2.2,<9.0.0"
|
|
49
49
|
# This is only added to resolve linting in truefoundry.langchain package
|
|
50
50
|
langchain = ">=0.2.0,<0.3.0"
|
|
51
|
+
# These are only for mlfoundry tests
|
|
52
|
+
matplotlib = ">=3.0.0,<4.0.0"
|
|
53
|
+
plotly = ">=5.8.2,<6.0.0"
|
|
54
|
+
seaborn = ">=0.13.0,<0.14.0"
|
|
55
|
+
shap = [
|
|
56
|
+
{ version = ">=0.40.0", python = "<3.12" },
|
|
57
|
+
{ version = ">=0.45.0", python = ">=3.12" },
|
|
58
|
+
]
|
|
59
|
+
Pillow = ">=9.1.1,<11.0.0"
|
|
51
60
|
|
|
52
61
|
[tool.poetry-dynamic-versioning]
|
|
53
62
|
enable = false
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import functools
|
|
2
2
|
import sys
|
|
3
3
|
import zipfile
|
|
4
|
+
from typing import Dict
|
|
4
5
|
|
|
5
6
|
import rich_click as click
|
|
6
7
|
from packaging.version import parse as parse_version
|
|
7
8
|
from requests.exceptions import ConnectionError
|
|
8
9
|
from rich.padding import Padding
|
|
9
10
|
from rich.panel import Panel
|
|
11
|
+
from rich.table import Table
|
|
10
12
|
|
|
11
13
|
from truefoundry.deploy.cli.console import console
|
|
12
14
|
from truefoundry.deploy.lib.exceptions import (
|
|
@@ -27,16 +29,29 @@ def handle_exception(exception):
|
|
|
27
29
|
if is_debug_env_set():
|
|
28
30
|
console.print_exception(show_locals=True)
|
|
29
31
|
if isinstance(exception, BadRequestException):
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
print_dict_as_table_panel(
|
|
33
|
+
{"Status Code": str(exception.status_code), "Error": exception.message},
|
|
34
|
+
title="Command Failed",
|
|
35
|
+
border_style="red",
|
|
33
36
|
)
|
|
34
37
|
elif isinstance(exception, ConnectionError):
|
|
35
|
-
|
|
38
|
+
print_dict_as_table_panel(
|
|
39
|
+
{"Error": "Couldn't connect to TrueFoundry"},
|
|
40
|
+
title="Command Failed",
|
|
41
|
+
border_style="red",
|
|
42
|
+
)
|
|
36
43
|
elif isinstance(exception, ConfigurationException):
|
|
37
|
-
|
|
44
|
+
print_dict_as_table_panel(
|
|
45
|
+
{"Error": exception.message},
|
|
46
|
+
title="Command Failed",
|
|
47
|
+
border_style="red",
|
|
48
|
+
)
|
|
38
49
|
else:
|
|
39
|
-
|
|
50
|
+
print_dict_as_table_panel(
|
|
51
|
+
{"Error": str(exception)},
|
|
52
|
+
title="Command Failed",
|
|
53
|
+
border_style="red",
|
|
54
|
+
)
|
|
40
55
|
|
|
41
56
|
|
|
42
57
|
def handle_exception_wrapper(fn):
|
|
@@ -77,6 +92,28 @@ def print_message(message):
|
|
|
77
92
|
)
|
|
78
93
|
|
|
79
94
|
|
|
95
|
+
def print_dict_as_table_panel(
|
|
96
|
+
dct: Dict[str, str],
|
|
97
|
+
title: str,
|
|
98
|
+
border_style: str = "cyan",
|
|
99
|
+
key_color: str = "cyan",
|
|
100
|
+
):
|
|
101
|
+
table = Table(show_header=False, box=None)
|
|
102
|
+
table.add_column("Key", style=f"bold {key_color}", width=15)
|
|
103
|
+
table.add_column("Value")
|
|
104
|
+
for key, value in dct.items():
|
|
105
|
+
table.add_row(key, value)
|
|
106
|
+
console.print(
|
|
107
|
+
Panel(
|
|
108
|
+
table,
|
|
109
|
+
border_style=border_style,
|
|
110
|
+
title=title,
|
|
111
|
+
title_align="left",
|
|
112
|
+
width=click.rich_click.MAX_WIDTH,
|
|
113
|
+
)
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
|
|
80
117
|
def unzip_package(path_to_package, destination):
|
|
81
118
|
with zipfile.ZipFile(path_to_package, "r") as zip_ref:
|
|
82
119
|
zip_ref.extractall(destination)
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
class BadRequestException(Exception):
|
|
2
|
-
def __init__(self, status_code, message=None):
|
|
3
|
-
super(
|
|
5
|
+
def __init__(self, status_code: int, message: Optional[str] = None):
|
|
6
|
+
super().__init__()
|
|
4
7
|
self.status_code = status_code
|
|
5
8
|
self.message = message
|
|
6
9
|
|
|
@@ -12,8 +15,8 @@ class BadRequestException(Exception):
|
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
class ConfigurationException(Exception):
|
|
15
|
-
def __init__(self, message=None):
|
|
16
|
-
super(
|
|
18
|
+
def __init__(self, message: Optional[str] = None):
|
|
19
|
+
super().__init__()
|
|
17
20
|
self.message = message
|
|
18
21
|
|
|
19
22
|
def __str__(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/agents/project_identifier.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/docker_build.py
RENAMED
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/file_type_counts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/tools/send_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/autodeploy/utils/pydantic_compat.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/__init__.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/builders/dockerfile.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/builder/docker_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/apply_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/build_command.py
RENAMED
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/create_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/delete_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/deploy_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/get_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/list_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/login_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/logout_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/logs_command.py
RENAMED
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/patch_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/redeploy_command.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/terminate_comand.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/cli/commands/trigger_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/__init__.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/build.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/remote/method.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/remote/remote.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/route.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/service.py
RENAMED
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/function_service/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/io/rich_output_callback.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/auth/auth_service_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/auth/credential_provider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/lib/clients/shell_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/deploy/v2/lib/deploy_workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/langchain/truefoundry_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{truefoundry-0.3.0rc13 → truefoundry-0.3.0rc15}/truefoundry/workflow/example/truefoundry.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|