truefoundry 0.4.0.dev0__py3-none-any.whl → 0.4.0rc1__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.
Potentially problematic release.
This version of truefoundry might be problematic. Click here for more details.
- truefoundry/deploy/cli/util.py +3 -1
- truefoundry/deploy/v2/lib/deployable_patched_models.py +4 -0
- truefoundry/ml/validation_utils.py +1 -1
- truefoundry/pydantic_v1.py +3 -0
- {truefoundry-0.4.0.dev0.dist-info → truefoundry-0.4.0rc1.dist-info}/METADATA +2 -2
- {truefoundry-0.4.0.dev0.dist-info → truefoundry-0.4.0rc1.dist-info}/RECORD +8 -8
- {truefoundry-0.4.0.dev0.dist-info → truefoundry-0.4.0rc1.dist-info}/WHEEL +0 -0
- {truefoundry-0.4.0.dev0.dist-info → truefoundry-0.4.0rc1.dist-info}/entry_points.txt +0 -0
truefoundry/deploy/cli/util.py
CHANGED
|
@@ -36,7 +36,9 @@ def handle_exception(exception):
|
|
|
36
36
|
)
|
|
37
37
|
elif isinstance(exception, ConnectionError):
|
|
38
38
|
print_dict_as_table_panel(
|
|
39
|
-
{
|
|
39
|
+
{
|
|
40
|
+
"Error": "Couldn't connect to TrueFoundry. Please make sure that the provided `--host` is correct."
|
|
41
|
+
},
|
|
40
42
|
title="Command Failed",
|
|
41
43
|
border_style="red",
|
|
42
44
|
)
|
|
@@ -3,6 +3,7 @@ from typing import Literal, Union
|
|
|
3
3
|
from truefoundry.deploy.auto_gen import models
|
|
4
4
|
from truefoundry.deploy.lib.model.entity import Deployment
|
|
5
5
|
from truefoundry.deploy.v2.lib.deploy import deploy_component
|
|
6
|
+
from truefoundry.deploy.v2.lib.patched_models import LocalSource
|
|
6
7
|
from truefoundry.pydantic_v1 import BaseModel, Field, conint
|
|
7
8
|
|
|
8
9
|
|
|
@@ -79,6 +80,9 @@ class Application(models.Application, DeployablePatchedModelBase):
|
|
|
79
80
|
|
|
80
81
|
class Workflow(models.Workflow, DeployablePatchedModelBase):
|
|
81
82
|
type: Literal["workflow"] = "workflow"
|
|
83
|
+
source: Union[models.RemoteSource, models.LocalSource] = Field(
|
|
84
|
+
default_factory=LocalSource
|
|
85
|
+
)
|
|
82
86
|
|
|
83
87
|
def deploy(self, workspace_fqn: str, wait: bool = True) -> Deployment:
|
|
84
88
|
from truefoundry.deploy.v2.lib.deploy_workflow import deploy_workflow
|
|
@@ -35,7 +35,7 @@ MAX_METRICS_PER_BATCH = 1000
|
|
|
35
35
|
MAX_ENTITIES_PER_BATCH = 1000
|
|
36
36
|
MAX_BATCH_LOG_REQUEST_SIZE = int(1e6)
|
|
37
37
|
MAX_PARAM_VAL_LENGTH = 1000
|
|
38
|
-
MAX_TAG_VAL_LENGTH =
|
|
38
|
+
MAX_TAG_VAL_LENGTH = 5000
|
|
39
39
|
MAX_ML_REPO_TAG_KEY_LENGTH = 250
|
|
40
40
|
MAX_ML_REPO_TAG_VAL_LENGTH = 5000
|
|
41
41
|
MAX_ENTITY_KEY_LENGTH = 250
|
truefoundry/pydantic_v1.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
try:
|
|
2
|
+
# pydantic >1.10.18
|
|
2
3
|
from pydantic.v1 import * # noqa: F403
|
|
3
4
|
from pydantic.v1 import ConstrainedStr, utils # noqa: F401
|
|
4
5
|
except ImportError:
|
|
6
|
+
# pydantic <=1.10.17
|
|
5
7
|
from pydantic import * # noqa: F403
|
|
8
|
+
from pydantic import utils # noqa: F401
|
|
6
9
|
|
|
7
10
|
|
|
8
11
|
class NonEmptyStr(ConstrainedStr):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: truefoundry
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.0rc1
|
|
4
4
|
Summary: Truefoundry CLI
|
|
5
5
|
Author: Abhishek Choudhary
|
|
6
6
|
Author-email: abhishek@truefoundry.com
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
13
13
|
Provides-Extra: workflow
|
|
14
14
|
Requires-Dist: GitPython (>=3.1.43,<4.0.0)
|
|
15
15
|
Requires-Dist: Mako (>=1.1.6,<2.0.0)
|
|
16
|
-
Requires-Dist: PyJWT (>=2.
|
|
16
|
+
Requires-Dist: PyJWT (>=2.0.0,<3.0.0)
|
|
17
17
|
Requires-Dist: PyYAML (>=6.0.0,<7.0.0)
|
|
18
18
|
Requires-Dist: aenum (>=3.0.0,<4.0.0)
|
|
19
19
|
Requires-Dist: click (>=7.0.0,<9.0.0)
|
|
@@ -60,7 +60,7 @@ truefoundry/deploy/cli/config.py,sha256=tf8w4UfVzcC6eYkENvuuCPYt_V3sqVpO1bclORV9
|
|
|
60
60
|
truefoundry/deploy/cli/console.py,sha256=9-dMy4YPisCJQziRKTg8Qa0UJnOGl1soiUnJjsnLDvE,242
|
|
61
61
|
truefoundry/deploy/cli/const.py,sha256=dVHPo1uAiDSSMXwXoT2mR5kNQjExT98QNVRz98Hz_Ts,510
|
|
62
62
|
truefoundry/deploy/cli/display_util.py,sha256=gq8EBdpBMHUzYQp_hxOg9EOYi08FIHgOVFCqXqC2tuo,3044
|
|
63
|
-
truefoundry/deploy/cli/util.py,sha256=
|
|
63
|
+
truefoundry/deploy/cli/util.py,sha256=0bc0jUjfnxLfAblDt4D4DroCw7aTgnxvIvkElBZscDU,3550
|
|
64
64
|
truefoundry/deploy/core/__init__.py,sha256=j61bMWj4BkWihdssKMSFhieo7afJDtpc7qO7zk1rDB4,140
|
|
65
65
|
truefoundry/deploy/core/login.py,sha256=N2VrW3nlBzoyoYulkipxwQvCpjBhi3sfsmhxK1ktWhg,236
|
|
66
66
|
truefoundry/deploy/core/logout.py,sha256=TpWLq4_DsxYS5GX2OJQGDhekNOfiOLb-vO5khQueHXw,80
|
|
@@ -107,7 +107,7 @@ truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
107
107
|
truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
|
|
108
108
|
truefoundry/deploy/v2/lib/deploy.py,sha256=o0bOpXuYV9-AvyMaTYnPc3Gy3vjeN3ZP7F8r3nFzxjk,12001
|
|
109
109
|
truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=WhlrBuRf7r83qoQdTZSQzHt635fw9D4_qQIqusFWGag,12372
|
|
110
|
-
truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=
|
|
110
|
+
truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=ShEXd-bKFqpEfaTwozwXREFmVhRcUQUKnRqiw5ELKN4,3316
|
|
111
111
|
truefoundry/deploy/v2/lib/models.py,sha256=pSolLMTArDuYpeNsmeeS5DWliloN_iCDfZSpRllMHUg,1120
|
|
112
112
|
truefoundry/deploy/v2/lib/patched_models.py,sha256=qL3N7y6zf7jywx6uY-yMxsH65NB367V_82o47ZYJt1I,13820
|
|
113
113
|
truefoundry/deploy/v2/lib/source.py,sha256=VHKuFREiixUP40D3Mrz-TA70spu1M0RbCzl--qwlFaY,9263
|
|
@@ -322,8 +322,8 @@ truefoundry/ml/services/entities.py,sha256=x2_ldqxBMXIRfxtu3HHS28jvaqr5IBv4V21Mw
|
|
|
322
322
|
truefoundry/ml/services/servicefoundry_service.py,sha256=jopsRSdNqfan0AtRO0UPiPOWEgwfzRP7qLamzMDkz-0,1369
|
|
323
323
|
truefoundry/ml/services/utils.py,sha256=VPRa78tZk5wzNLBAFARXaDPwvOgCPeJZIDNoTjWXp0Q,4384
|
|
324
324
|
truefoundry/ml/session.py,sha256=0vIznzgjqVT8sNayXIa_O6APLdDJ3NH6mKb1yTspgmI,8888
|
|
325
|
-
truefoundry/ml/validation_utils.py,sha256=
|
|
326
|
-
truefoundry/pydantic_v1.py,sha256=
|
|
325
|
+
truefoundry/ml/validation_utils.py,sha256=XBSUd9OoyriWJpT3M5LKz17iWY3yVMr3hM5vdaVjtf0,12082
|
|
326
|
+
truefoundry/pydantic_v1.py,sha256=UKv05OZx5WC4E0J-25xLiTbhJOYdDVp8SZC4lT7iEFI,329
|
|
327
327
|
truefoundry/version.py,sha256=bqiT4Q-VWrTC6P4qfK43mez-Ppf-smWfrl6DcwV7mrw,137
|
|
328
328
|
truefoundry/workflow/__init__.py,sha256=m0puY8RJ3GBvdAXW0A9PLuCpmDdLqh6eF0t3DCEpZkg,659
|
|
329
329
|
truefoundry/workflow/container_task.py,sha256=8arieePsX4__OnG337hOtCiNgJwtKJJCsZcmFmCBJtk,402
|
|
@@ -336,7 +336,7 @@ truefoundry/workflow/map_task.py,sha256=2m3qGXQ90k9LdS45q8dqCCECc3qr8t2m_LMCVd1m
|
|
|
336
336
|
truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
|
|
337
337
|
truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
|
|
338
338
|
truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
|
|
339
|
-
truefoundry-0.4.
|
|
340
|
-
truefoundry-0.4.
|
|
341
|
-
truefoundry-0.4.
|
|
342
|
-
truefoundry-0.4.
|
|
339
|
+
truefoundry-0.4.0rc1.dist-info/METADATA,sha256=0ALoV5iB6fJUk7hRTkP-777dRXvwJTFB-6goDlMydP4,3135
|
|
340
|
+
truefoundry-0.4.0rc1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
341
|
+
truefoundry-0.4.0rc1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
342
|
+
truefoundry-0.4.0rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|