lightning-sdk 2025.8.14__py3-none-any.whl → 2025.8.14.post0__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/studio_api.py +7 -10
- lightning_sdk/studio.py +2 -4
- {lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/RECORD +9 -9
- {lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/top_level.txt +0 -0
lightning_sdk/__init__.py
CHANGED
lightning_sdk/api/studio_api.py
CHANGED
|
@@ -29,6 +29,7 @@ from lightning_sdk.lightning_cloud.openapi import (
|
|
|
29
29
|
IdCodeconfigBody,
|
|
30
30
|
IdExecuteBody1,
|
|
31
31
|
IdForkBody1,
|
|
32
|
+
IdSleepconfigBody,
|
|
32
33
|
IdStartBody,
|
|
33
34
|
ProjectIdCloudspacesBody,
|
|
34
35
|
V1Assistant,
|
|
@@ -443,19 +444,15 @@ class StudioApi:
|
|
|
443
444
|
self,
|
|
444
445
|
studio_id: str,
|
|
445
446
|
teamspace_id: str,
|
|
446
|
-
studio: V1CloudSpace,
|
|
447
447
|
enabled: Optional[bool] = None,
|
|
448
|
-
idle_shutdown_seconds: int =
|
|
449
|
-
) ->
|
|
450
|
-
"""Update the autoshutdown time of the given Studio."""
|
|
451
|
-
|
|
452
|
-
enabled
|
|
453
|
-
body = IdCodeconfigBody(
|
|
454
|
-
disable_auto_shutdown=not enabled,
|
|
448
|
+
idle_shutdown_seconds: Optional[int] = None,
|
|
449
|
+
) -> V1CloudSpaceInstanceConfig:
|
|
450
|
+
"""Update the autoshutdown time and behaviour of the given Studio."""
|
|
451
|
+
body = IdSleepconfigBody(
|
|
452
|
+
disable_auto_shutdown=not enabled if enabled is not None else None,
|
|
455
453
|
idle_shutdown_seconds=idle_shutdown_seconds,
|
|
456
|
-
compute_config=studio.code_config.compute_config,
|
|
457
454
|
)
|
|
458
|
-
self._client.
|
|
455
|
+
return self._client.cloud_space_service_update_cloud_space_sleep_config(
|
|
459
456
|
id=studio_id,
|
|
460
457
|
project_id=teamspace_id,
|
|
461
458
|
body=body,
|
lightning_sdk/studio.py
CHANGED
|
@@ -529,7 +529,7 @@ class Studio:
|
|
|
529
529
|
def auto_sleep(self, value: bool) -> None:
|
|
530
530
|
if not value and self.machine == Machine.CPU:
|
|
531
531
|
warnings.warn("Disabling auto-sleep will convert the Studio from free to paid!")
|
|
532
|
-
self._studio_api.update_autoshutdown(self._studio.id, self._teamspace.id, enabled=value
|
|
532
|
+
self._studio_api.update_autoshutdown(self._studio.id, self._teamspace.id, enabled=value)
|
|
533
533
|
self._update_studio_reference()
|
|
534
534
|
|
|
535
535
|
@property
|
|
@@ -540,9 +540,7 @@ class Studio:
|
|
|
540
540
|
@auto_sleep_time.setter
|
|
541
541
|
def auto_sleep_time(self, value: int) -> None:
|
|
542
542
|
warnings.warn("Setting auto-sleep time will convert the Studio from free to paid!")
|
|
543
|
-
self._studio_api.update_autoshutdown(
|
|
544
|
-
self._studio.id, self._teamspace.id, idle_shutdown_seconds=value, studio=self._studio
|
|
545
|
-
)
|
|
543
|
+
self._studio_api.update_autoshutdown(self._studio.id, self._teamspace.id, idle_shutdown_seconds=value)
|
|
546
544
|
self._update_studio_reference()
|
|
547
545
|
|
|
548
546
|
@property
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
docs/source/conf.py,sha256=r8yX20eC-4mHhMTd0SbQb5TlSWHhO6wnJ0VJ_FBFpag,13249
|
|
2
|
-
lightning_sdk/__init__.py,sha256
|
|
2
|
+
lightning_sdk/__init__.py,sha256=bv8nhw3FIDqwHkeaFqmRo4utb4wmtPP7YWHX9m8wfj4,1151
|
|
3
3
|
lightning_sdk/agents.py,sha256=ly6Ma1j0ZgGPFyvPvMN28JWiB9dATIstFa5XM8pMi6I,1577
|
|
4
4
|
lightning_sdk/ai_hub.py,sha256=iI1vNhgcz_Ff1c3rN1ogN7dK-r-HXRj6NMtS2cA14UA,6925
|
|
5
5
|
lightning_sdk/base_studio.py,sha256=_Pwwl37R9GRd7t-f2kO5aQXiLNrP4sUtUNht2ZkP8LE,3678
|
|
@@ -14,7 +14,7 @@ lightning_sdk/plugin.py,sha256=f3P5-xZY6x-MX0Fs2z_Q2erSxPSiHZARO0BVkCezHw4,15192
|
|
|
14
14
|
lightning_sdk/sandbox.py,sha256=_NvnWotEXW2rBiVFZZ4krKXxVjuAqfNh04qELSM0-Pg,5786
|
|
15
15
|
lightning_sdk/serve.py,sha256=uW7zLhQ3X90ifetpxzTb8FNxifv5vIs7qZlgfEjVKzk,11794
|
|
16
16
|
lightning_sdk/status.py,sha256=lLGAuSvXBoXQFEEsEYwdCi0RcSNatUn5OPjJVjDtoM0,386
|
|
17
|
-
lightning_sdk/studio.py,sha256=
|
|
17
|
+
lightning_sdk/studio.py,sha256=Gczj1WJm35SAQxAEU776byku194AYEqIGLKHPOBc5lY,26636
|
|
18
18
|
lightning_sdk/teamspace.py,sha256=4KLSCxkOIpkOXwvdFMeOgGjX8Ak41NpLkLkdLz7Wu2A,20099
|
|
19
19
|
lightning_sdk/user.py,sha256=vdn8pZqkAZO0-LoRsBdg0TckRKtd_H3QF4gpiZcl4iY,1130
|
|
20
20
|
lightning_sdk/api/__init__.py,sha256=Qn2VVRvir_gO7w4yxGLkZY-R3T7kdiTPKgQ57BhIA9k,413
|
|
@@ -30,7 +30,7 @@ lightning_sdk/api/llm_api.py,sha256=HSCpTyPknKAv6j0UYIzasXK2mFYt7FE3KF5TGUYvo2w,
|
|
|
30
30
|
lightning_sdk/api/mmt_api.py,sha256=hIBsGiJ2qn5UjcHDxP5WUyKGT_AIFfpSHrQVwg0afBw,10699
|
|
31
31
|
lightning_sdk/api/org_api.py,sha256=Ze3z_ATVrukobujV5YdC42DKj45Vuwl7X52q_Vr-o3U,803
|
|
32
32
|
lightning_sdk/api/pipeline_api.py,sha256=rJYp_FN7uUjC5xbc6K67l2eRSmVuOkijd5i8Nm5BF7I,4621
|
|
33
|
-
lightning_sdk/api/studio_api.py,sha256=
|
|
33
|
+
lightning_sdk/api/studio_api.py,sha256=MIYdqHqLWsDnoXPCXjrM8j7P7XDgreFdcK5PxjrHbYc,33107
|
|
34
34
|
lightning_sdk/api/teamspace_api.py,sha256=CsaaxmaLmTRIRwu37wtQ3quGYql62HJT3BZJ3Q-1d9c,16854
|
|
35
35
|
lightning_sdk/api/user_api.py,sha256=sL7RIjjtmZmvCZWx7BBZslhj1BeNh4Idn-RVcdmf7M0,2598
|
|
36
36
|
lightning_sdk/api/utils.py,sha256=zUvTxQ01rGwZX2PNuA2V2l2esXLPSoGM_dl4AvfKTAE,24090
|
|
@@ -1113,9 +1113,9 @@ lightning_sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
1113
1113
|
lightning_sdk/utils/dynamic.py,sha256=glUTO1JC9APtQ6Gr9SO02a3zr56-sPAXM5C3NrTpgyQ,1959
|
|
1114
1114
|
lightning_sdk/utils/enum.py,sha256=h2JRzqoBcSlUdanFHmkj_j5DleBHAu1esQYUsdNI-hU,4106
|
|
1115
1115
|
lightning_sdk/utils/resolve.py,sha256=9BHOxGtDMptkrooRZwu1FkXbYQe5VAIumWGQlz2WIy8,8405
|
|
1116
|
-
lightning_sdk-2025.8.14.dist-info/LICENSE,sha256=uFIuZwj5z-4TeF2UuacPZ1o17HkvKObT8fY50qN84sg,1064
|
|
1117
|
-
lightning_sdk-2025.8.14.dist-info/METADATA,sha256=
|
|
1118
|
-
lightning_sdk-2025.8.14.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
1119
|
-
lightning_sdk-2025.8.14.dist-info/entry_points.txt,sha256=msB9PJWIJ784dX-OP8by51d4IbKYH3Fj1vCuA9oXjHY,68
|
|
1120
|
-
lightning_sdk-2025.8.14.dist-info/top_level.txt,sha256=ps8doKILFXmN7F1mHncShmnQoTxKBRPIcchC8TpoBw4,19
|
|
1121
|
-
lightning_sdk-2025.8.14.dist-info/RECORD,,
|
|
1116
|
+
lightning_sdk-2025.8.14.post0.dist-info/LICENSE,sha256=uFIuZwj5z-4TeF2UuacPZ1o17HkvKObT8fY50qN84sg,1064
|
|
1117
|
+
lightning_sdk-2025.8.14.post0.dist-info/METADATA,sha256=V3v5HXqRbU633sbYfx222QC1MB6cR5hLVKuBAF5s9yE,4114
|
|
1118
|
+
lightning_sdk-2025.8.14.post0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
1119
|
+
lightning_sdk-2025.8.14.post0.dist-info/entry_points.txt,sha256=msB9PJWIJ784dX-OP8by51d4IbKYH3Fj1vCuA9oXjHY,68
|
|
1120
|
+
lightning_sdk-2025.8.14.post0.dist-info/top_level.txt,sha256=ps8doKILFXmN7F1mHncShmnQoTxKBRPIcchC8TpoBw4,19
|
|
1121
|
+
lightning_sdk-2025.8.14.post0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{lightning_sdk-2025.8.14.dist-info → lightning_sdk-2025.8.14.post0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|