truefoundry 0.4.0rc3__py3-none-any.whl → 0.4.1__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/common/entities.py +2 -2
- truefoundry/deploy/python_deploy_codegen.py +2 -2
- truefoundry/ml/artifact/truefoundry_artifact_repo.py +1 -1
- truefoundry/ml/clients/utils.py +1 -1
- {truefoundry-0.4.0rc3.dist-info → truefoundry-0.4.1.dist-info}/METADATA +4 -4
- {truefoundry-0.4.0rc3.dist-info → truefoundry-0.4.1.dist-info}/RECORD +8 -8
- {truefoundry-0.4.0rc3.dist-info → truefoundry-0.4.1.dist-info}/WHEEL +0 -0
- {truefoundry-0.4.0rc3.dist-info → truefoundry-0.4.1.dist-info}/entry_points.txt +0 -0
truefoundry/common/entities.py
CHANGED
|
@@ -3,7 +3,7 @@ from enum import Enum
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
5
|
import jwt
|
|
6
|
-
from typing_extensions import TypedDict
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
7
|
|
|
8
8
|
from truefoundry.pydantic_v1 import BaseModel, Field, NonEmptyStr, validator
|
|
9
9
|
|
|
@@ -28,7 +28,7 @@ class _DecodedToken(TypedDict):
|
|
|
28
28
|
tenantName: str
|
|
29
29
|
exp: int
|
|
30
30
|
username: str
|
|
31
|
-
email: str
|
|
31
|
+
email: NotRequired[str]
|
|
32
32
|
userType: UserType
|
|
33
33
|
|
|
34
34
|
|
|
@@ -101,11 +101,11 @@ def add_local_source_comment(code):
|
|
|
101
101
|
return "\n".join(new_lines)
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
def convert_deployment_config_to_python(workspace_fqn: str,
|
|
104
|
+
def convert_deployment_config_to_python(workspace_fqn: str, application_spec: dict):
|
|
105
105
|
"""
|
|
106
106
|
Convert a deployment config to a python file that can be used to deploy to a workspace
|
|
107
107
|
"""
|
|
108
|
-
application = Application.parse_obj(
|
|
108
|
+
application = Application.parse_obj(application_spec)
|
|
109
109
|
application_type = application.__root__.type
|
|
110
110
|
|
|
111
111
|
spec_repr = get_python_repr(application.__root__)
|
|
@@ -236,7 +236,7 @@ def _signed_url_upload_file(
|
|
|
236
236
|
with cloud_storage_http_request(
|
|
237
237
|
method="put", url=signed_url.signed_url, data=""
|
|
238
238
|
) as response:
|
|
239
|
-
augmented_raise_for_status(response
|
|
239
|
+
augmented_raise_for_status(response)
|
|
240
240
|
return
|
|
241
241
|
|
|
242
242
|
task_progress_bar = progress_bar.add_task(
|
truefoundry/ml/clients/utils.py
CHANGED
|
@@ -23,7 +23,7 @@ def _http_request(
|
|
|
23
23
|
headers = kwargs.pop("headers", {}) or {}
|
|
24
24
|
if token is not None:
|
|
25
25
|
headers["Authorization"] = f"Bearer {token}"
|
|
26
|
-
return session.request(method=method, url=url, **kwargs)
|
|
26
|
+
return session.request(method=method, url=url, headers=headers, **kwargs)
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
def http_request(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: truefoundry
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Truefoundry CLI
|
|
5
5
|
Author: Abhishek Choudhary
|
|
6
6
|
Author-email: abhishek@truefoundry.com
|
|
@@ -45,7 +45,7 @@ Requires-Dist: rich-click (>=1.2.1,<2.0.0)
|
|
|
45
45
|
Requires-Dist: scipy (>=1.12.0,<2.0.0) ; python_version >= "3.12"
|
|
46
46
|
Requires-Dist: scipy (>=1.5.0,<2.0.0) ; python_version < "3.12"
|
|
47
47
|
Requires-Dist: tqdm (>=4.0.0,<5.0.0)
|
|
48
|
-
Requires-Dist: typing-extensions (>=
|
|
48
|
+
Requires-Dist: typing-extensions (>=4.0)
|
|
49
49
|
Requires-Dist: urllib3 (>=1.26.18,<3)
|
|
50
50
|
Requires-Dist: uvicorn (>=0.13.0,<1.0.0)
|
|
51
51
|
Requires-Dist: yq (>=3.1.0,<4.0.0)
|
|
@@ -68,10 +68,10 @@ To install the `TrueFoundry CLI`, you can use pip:
|
|
|
68
68
|
pip install truefoundry
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
To install the `TrueFoundry CLI` with
|
|
71
|
+
To install the `TrueFoundry CLI` with Workflow deployment features, you can use pip:
|
|
72
72
|
|
|
73
73
|
```bash
|
|
74
|
-
pip install truefoundry[
|
|
74
|
+
pip install truefoundry[workflow]
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
## Examples
|
|
@@ -30,7 +30,7 @@ truefoundry/common/auth_service_client.py,sha256=upUTo6VODAaOKtszCQZNWnPpRT8CEhp
|
|
|
30
30
|
truefoundry/common/constants.py,sha256=kHP5ebp7EMfEYaOC-K8T_XPfYi7mXttYgrXYS8bOgkg,359
|
|
31
31
|
truefoundry/common/credential_file_manager.py,sha256=MRn5h9Gm4pxZEF_XT-_b2agMBiqyw0o2SLpq9ty_1lY,4255
|
|
32
32
|
truefoundry/common/credential_provider.py,sha256=UHr3tH39wGjhC3XdRUdgW7IZeh0cHSIEYJMVO8B4eyw,4107
|
|
33
|
-
truefoundry/common/entities.py,sha256=
|
|
33
|
+
truefoundry/common/entities.py,sha256=8O-EGPk4PKqnyoFMKUTxISCU19rz0KBnfRDJU695DhY,3797
|
|
34
34
|
truefoundry/common/exceptions.py,sha256=ePpiQ_zmWe4e94gOgeMiyP_AZnKwjEBfyXsB5ScGYcI,329
|
|
35
35
|
truefoundry/common/request_utils.py,sha256=-ss8033PClJOMJuS5Ue1zCFRVK7ZW9vjtva1b5G9uok,2849
|
|
36
36
|
truefoundry/common/servicefoundry_client.py,sha256=ornmmhjSY2y-NJeBcoHPKxX3q9Z9XilcHERFSFk-dSU,2886
|
|
@@ -106,7 +106,7 @@ truefoundry/deploy/lib/model/entity.py,sha256=8J8yd98iWtSy8giShdDRNyzbN1UgSXx4Xt
|
|
|
106
106
|
truefoundry/deploy/lib/session.py,sha256=e0iA-fWPBzxm5JqT4hnfv4NOpYexbrtRLSWLqqVtFzs,4986
|
|
107
107
|
truefoundry/deploy/lib/util.py,sha256=RlL3bjZu5Z0LU_OKYaMVfcMU8k7_rmkAp89_0CrZDLk,1520
|
|
108
108
|
truefoundry/deploy/lib/win32.py,sha256=1RcvPTdlOAJ48rt8rCbE2Ufha2ztRqBAE9dueNXArrY,5009
|
|
109
|
-
truefoundry/deploy/python_deploy_codegen.py,sha256=
|
|
109
|
+
truefoundry/deploy/python_deploy_codegen.py,sha256=Ok7ufDY2x3aMJv9KpaRqxiS-ZI-kxBWauIUHst-ug7E,4020
|
|
110
110
|
truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
111
111
|
truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
|
|
112
112
|
truefoundry/deploy/v2/lib/deploy.py,sha256=HIcY3SzQ5lWl7avuuKi3J0Z-PBES6Sf4hgMK-m6_53U,11990
|
|
@@ -124,7 +124,7 @@ truefoundry/langchain/utils.py,sha256=PGLDe9chZ3BuUjakexOGpIqZRFoHEgu-zJ9yKdpLLm
|
|
|
124
124
|
truefoundry/logger.py,sha256=7dLqW_Q2rEgo-_z1WZnQbGHaoy1L1MP3NqGgssaSS6o,685
|
|
125
125
|
truefoundry/ml/__init__.py,sha256=2A1l7pgqbVRt3cRW_0Lxg92hyJEkMxkCUh1EFprrmc0,942
|
|
126
126
|
truefoundry/ml/artifact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
127
|
-
truefoundry/ml/artifact/truefoundry_artifact_repo.py,sha256=
|
|
127
|
+
truefoundry/ml/artifact/truefoundry_artifact_repo.py,sha256=dA_QYAyNCcCuOw5eVxPbU5OeMK8YBNh42vBnGf6I0Sw,44911
|
|
128
128
|
truefoundry/ml/autogen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
129
129
|
truefoundry/ml/autogen/client/__init__.py,sha256=9tmMg8M1td9h0zbAAdl8Lla3A33iU1XNMKx6pZj1yzA,16524
|
|
130
130
|
truefoundry/ml/autogen/client/api/__init__.py,sha256=3sMSljMIS3UHYeF0BcNvrPPx6VbBSRt_1IfDn-13Kyc,752
|
|
@@ -295,7 +295,7 @@ truefoundry/ml/cli/commands/download.py,sha256=cbz9KijiLKXj4-twlig3xZLTVRNm4fnjw
|
|
|
295
295
|
truefoundry/ml/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
296
296
|
truefoundry/ml/clients/entities.py,sha256=sNP4DnAVdQoMfc06s0r3VTzKHTo7jmxAOuTlQOVmsMs,151
|
|
297
297
|
truefoundry/ml/clients/servicefoundry_client.py,sha256=lK7mepLNRHHS65Eebynk5HyCMSxqmduXRHO2k8pTIK0,1680
|
|
298
|
-
truefoundry/ml/clients/utils.py,sha256=
|
|
298
|
+
truefoundry/ml/clients/utils.py,sha256=c0LdC8moejs-Zm30hu1sCqifLEmqhdq4SfZ_m0nUIDk,4402
|
|
299
299
|
truefoundry/ml/constants.py,sha256=vDq72d4C9FSWqr9MMdjgTF4TuyNFApvo_6RVsSeAjB4,2837
|
|
300
300
|
truefoundry/ml/entities.py,sha256=si5GAqZsWzKu5MPrU4Hk6se7bebHOYhTiNw69ai-Uk8,1485
|
|
301
301
|
truefoundry/ml/enums.py,sha256=arqDkF8duU_oVLFeYMhcfWYbF6Nq5mmjwupJMIheyXM,1790
|
|
@@ -338,7 +338,7 @@ truefoundry/workflow/map_task.py,sha256=2m3qGXQ90k9LdS45q8dqCCECc3qr8t2m_LMCVd1m
|
|
|
338
338
|
truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
|
|
339
339
|
truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
|
|
340
340
|
truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
|
|
341
|
-
truefoundry-0.4.
|
|
342
|
-
truefoundry-0.4.
|
|
343
|
-
truefoundry-0.4.
|
|
344
|
-
truefoundry-0.4.
|
|
341
|
+
truefoundry-0.4.1.dist-info/METADATA,sha256=rPzMg57cm984bDhYSIO7oqFqYCy-shU4fXOiVceU35Y,3137
|
|
342
|
+
truefoundry-0.4.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
343
|
+
truefoundry-0.4.1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
344
|
+
truefoundry-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|