proximl 0.5.15__py3-none-any.whl → 0.5.17__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.
- proximl/__init__.py +1 -1
- proximl/cloudbender/services.py +12 -2
- proximl/projects/projects.py +2 -2
- {proximl-0.5.15.dist-info → proximl-0.5.17.dist-info}/METADATA +1 -1
- {proximl-0.5.15.dist-info → proximl-0.5.17.dist-info}/RECORD +10 -10
- tests/unit/projects/test_projects_unit.py +1 -1
- {proximl-0.5.15.dist-info → proximl-0.5.17.dist-info}/LICENSE +0 -0
- {proximl-0.5.15.dist-info → proximl-0.5.17.dist-info}/WHEEL +0 -0
- {proximl-0.5.15.dist-info → proximl-0.5.17.dist-info}/entry_points.txt +0 -0
- {proximl-0.5.15.dist-info → proximl-0.5.17.dist-info}/top_level.txt +0 -0
proximl/__init__.py
CHANGED
proximl/cloudbender/services.py
CHANGED
|
@@ -2,6 +2,7 @@ import json
|
|
|
2
2
|
import logging
|
|
3
3
|
import asyncio
|
|
4
4
|
import math
|
|
5
|
+
from enum import Enum
|
|
5
6
|
|
|
6
7
|
from proximl.exceptions import (
|
|
7
8
|
ApiError,
|
|
@@ -9,6 +10,14 @@ from proximl.exceptions import (
|
|
|
9
10
|
ProxiMLException,
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
class SERVICE_CERT_ALGORITHMS(str, Enum):
|
|
14
|
+
RSA_2048 = 'rsa2048'
|
|
15
|
+
RSA_4096 = 'rsa4096'
|
|
16
|
+
ED25519 = 'ed25519'
|
|
17
|
+
P256 = 'p256'
|
|
18
|
+
P384 ='p384'
|
|
19
|
+
P521='p521'
|
|
20
|
+
|
|
12
21
|
|
|
13
22
|
class Services(object):
|
|
14
23
|
def __init__(self, proximl):
|
|
@@ -178,11 +187,12 @@ class Service:
|
|
|
178
187
|
|
|
179
188
|
raise ProxiMLException(f"Timeout waiting for {status}")
|
|
180
189
|
|
|
181
|
-
async def generate_certificate(self, **kwargs):
|
|
190
|
+
async def generate_certificate(self, algorithm=SERVICE_CERT_ALGORITHMS.ED25519.value, **kwargs):
|
|
182
191
|
resp = await self.proximl._query(
|
|
183
192
|
f"/provider/{self._provider_uuid}/region/{self._region_uuid}/service/{self._id}/certificate",
|
|
184
193
|
"POST",
|
|
185
|
-
kwargs
|
|
194
|
+
kwargs,
|
|
195
|
+
dict(algorithm=algorithm)
|
|
186
196
|
)
|
|
187
197
|
self.__init__(self.proximl, **resp)
|
|
188
198
|
return self
|
proximl/projects/projects.py
CHANGED
|
@@ -27,10 +27,10 @@ class Projects(object):
|
|
|
27
27
|
projects = [Project(self.proximl, **project) for project in resp]
|
|
28
28
|
return projects
|
|
29
29
|
|
|
30
|
-
async def create(self, name,
|
|
30
|
+
async def create(self, name, **kwargs):
|
|
31
31
|
data = dict(
|
|
32
32
|
name=name,
|
|
33
|
-
|
|
33
|
+
**kwargs
|
|
34
34
|
)
|
|
35
35
|
payload = {k: v for k, v in data.items() if v is not None}
|
|
36
36
|
logging.info(f"Creating Project {name}")
|
|
@@ -2,7 +2,7 @@ examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
examples/create_dataset_and_training_job.py,sha256=Fqueoz2KD1MTxnU960iqHUdxvo68Xe64HT5XS55lI9w,1178
|
|
3
3
|
examples/local_storage.py,sha256=6K6LMO7ZPI7N2KdBcgqXSvdsqJfjISzN4yRO9YrJqbA,1745
|
|
4
4
|
examples/training_inference_pipeline.py,sha256=pxux0QUUtRXxKj2rX-6fPEKBIi43mhRd1zJ-Lf1ZJGI,2334
|
|
5
|
-
proximl/__init__.py,sha256=
|
|
5
|
+
proximl/__init__.py,sha256=oV8Alb4xx0Qif6dkD3i-QieUqYeYDLfCMZ29A70g-mg,433
|
|
6
6
|
proximl/__main__.py,sha256=JgErYkiskih8Y6oRwowALtR-rwQhAAdqOYWjQraRIPI,59
|
|
7
7
|
proximl/auth.py,sha256=LacGBDAVel5HcJx7JXp1wVn3s0gZc7nf--vDfSFOXYU,26565
|
|
8
8
|
proximl/checkpoints.py,sha256=Ezpiab9Wfcmd2h5Slm9U5lekZGXiPzvhDKxXXgla1yo,8790
|
|
@@ -48,13 +48,13 @@ proximl/cloudbender/devices.py,sha256=vHooaOw2k2Tf99FJHnVZTgggqCTYJg7rq46aUPW0k8
|
|
|
48
48
|
proximl/cloudbender/nodes.py,sha256=T7aCh2O6sF2tFX4D5a7wDW8hJmEgHoCV9So1kg70tdg,5924
|
|
49
49
|
proximl/cloudbender/providers.py,sha256=KLO4Pc8yeW8TpSDICgTw3NxN44_0s4HptVsR2hHc28w,3738
|
|
50
50
|
proximl/cloudbender/regions.py,sha256=6doBdfMXIQI-uexzvwmNg2ATDzruatw-ixviZSMjonU,5157
|
|
51
|
-
proximl/cloudbender/services.py,sha256=
|
|
51
|
+
proximl/cloudbender/services.py,sha256=ggTYK9kR6E9RbfkDnd0sxe6rm-nBYAj2hfjgwZ-5GkE,6051
|
|
52
52
|
proximl/projects/__init__.py,sha256=6NKCcHtQMeGB1IyU-djANphfnDX6MEkrXUM5Fyq9fWg,75
|
|
53
53
|
proximl/projects/credentials.py,sha256=hWz6EUEAgltkAQMDjQVsFlVvfWUbZfY3KoWpldnCrXY,2255
|
|
54
54
|
proximl/projects/data_connectors.py,sha256=o2-K40BdF85TBXJgj1UMsznBmNHmnYh1qbZtHmmOa2Y,2216
|
|
55
55
|
proximl/projects/datastores.py,sha256=8nHpMEHn3UzsIhmPMoXympbRRJ10XkHdyRhBXUVXyeE,2095
|
|
56
56
|
proximl/projects/members.py,sha256=siREAa-Oac1pLGRHMXmj3ShoB0DVl8uY34eFdTlSezA,2826
|
|
57
|
-
proximl/projects/projects.py,sha256=
|
|
57
|
+
proximl/projects/projects.py,sha256=2lYStCIQ6_KB411NS_u1Ia2uatKxre1jFS6Lbr2LqzY,2840
|
|
58
58
|
proximl/projects/secrets.py,sha256=xlfzRONjT2ySJDcq8FYRQmSU2ZJMdPLS8NbePWYNCeM,2160
|
|
59
59
|
proximl/projects/services.py,sha256=aCESZjqfI9K-iXl8uJQsjEyoX29LuPaNv_TFjK6B2Ts,2771
|
|
60
60
|
tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -132,10 +132,10 @@ tests/unit/projects/test_project_datastores_unit.py,sha256=WZMKkhpEg2dcevJqT7k6Q
|
|
|
132
132
|
tests/unit/projects/test_project_members_unit.py,sha256=dtbRfP454mviQYn6Dc0Uzyb3BBIuR3Ive6g3mnUAR6M,3466
|
|
133
133
|
tests/unit/projects/test_project_secrets_unit.py,sha256=VE9L91FJodcwVGizfF65WYMiHZaF0s2AdW1aiJ3z7xA,3276
|
|
134
134
|
tests/unit/projects/test_project_services_unit.py,sha256=PzeNuJRuAG7RkrPWX0FfgFTt6-63FviecrDY06rLQ6A,3331
|
|
135
|
-
tests/unit/projects/test_projects_unit.py,sha256=
|
|
136
|
-
proximl-0.5.
|
|
137
|
-
proximl-0.5.
|
|
138
|
-
proximl-0.5.
|
|
139
|
-
proximl-0.5.
|
|
140
|
-
proximl-0.5.
|
|
141
|
-
proximl-0.5.
|
|
135
|
+
tests/unit/projects/test_projects_unit.py,sha256=5VP6OEPMCQjF-ur4Y8EyB_uylZdZsFaC7i8-1JnAoOs,3786
|
|
136
|
+
proximl-0.5.17.dist-info/LICENSE,sha256=ADFxLEZDxKY0j4MdyUd5GNuhQ18rnWH5rOz1ZG7yiOA,1069
|
|
137
|
+
proximl-0.5.17.dist-info/METADATA,sha256=afveVQ5f7fPhtluMRQpid41Uoc419wFeh6Tbf19EHFo,7345
|
|
138
|
+
proximl-0.5.17.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
139
|
+
proximl-0.5.17.dist-info/entry_points.txt,sha256=HmI311IIabkZReMCXu-nGbvIEW-KfaduAOyfiSqt5SY,63
|
|
140
|
+
proximl-0.5.17.dist-info/top_level.txt,sha256=-TWqc9tAaxmWmW4c7uYsmzPEYUIoh6z02xxqPbv7Kys,23
|
|
141
|
+
proximl-0.5.17.dist-info/RECORD,,
|
|
@@ -75,7 +75,7 @@ class ProjectsTests:
|
|
|
75
75
|
requested_config = dict(
|
|
76
76
|
name="new project",
|
|
77
77
|
)
|
|
78
|
-
expected_payload = dict(name="new project"
|
|
78
|
+
expected_payload = dict(name="new project")
|
|
79
79
|
api_response = {
|
|
80
80
|
"id": "project-id-1",
|
|
81
81
|
"name": "new project",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|