thestage 0.5.45__py3-none-any.whl → 0.5.46__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.
thestage/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  from . import *
2
2
  __app_name__ = "thestage"
3
- __version__ = "0.5.45"
3
+ __version__ = "0.5.46"
@@ -225,7 +225,7 @@ class TheStageApiClient(TheStageApiClientCore):
225
225
 
226
226
  response = self._request(
227
227
  method='POST',
228
- url='/user-api/v1/instance-rented/list',
228
+ url='/user-api/v2/instance-rented/list',
229
229
  data=data,
230
230
  token=token,
231
231
  )
@@ -236,7 +236,7 @@ class TheStageApiClient(TheStageApiClientCore):
236
236
  def get_rented_business_status_map(self, token: str, ) -> Optional[Dict[str, str]]:
237
237
  response = self._request(
238
238
  method='POST',
239
- url='/user-api/v1/instance-rented/business-status-localized-map',
239
+ url='/user-api/v2/instance-rented/business-status-localized-map',
240
240
  data=None,
241
241
  token=token,
242
242
  )
@@ -272,7 +272,7 @@ class TheStageApiClient(TheStageApiClientCore):
272
272
 
273
273
  response = self._request(
274
274
  method='POST',
275
- url='/user-api/v1/instance-rented/view-by-slug',
275
+ url='/user-api/v2/instance-rented/view-by-slug',
276
276
  data=data,
277
277
  token=token,
278
278
  )
@@ -294,7 +294,7 @@ class TheStageApiClient(TheStageApiClientCore):
294
294
 
295
295
  response = self._request(
296
296
  method='POST',
297
- url='/user-api/v1/self-hosted-instance/view-by-slug',
297
+ url='/user-api/v2/self-hosted-instance/view-by-slug',
298
298
  data=data,
299
299
  token=token,
300
300
  )
@@ -325,7 +325,7 @@ class TheStageApiClient(TheStageApiClientCore):
325
325
 
326
326
  response = self._request(
327
327
  method='POST',
328
- url='/user-api/v1/self-hosted-instance/list',
328
+ url='/user-api/v2/self-hosted-instance/list',
329
329
  data=data,
330
330
  token=token,
331
331
  )
@@ -336,7 +336,7 @@ class TheStageApiClient(TheStageApiClientCore):
336
336
  def get_selfhosted_business_status_map(self, token: str, ) -> Optional[Dict[str, str]]:
337
337
  response = self._request(
338
338
  method='POST',
339
- url='/user-api/v1/self-hosted-instance/business-status-localized-map',
339
+ url='/user-api/v2/self-hosted-instance/business-status-localized-map',
340
340
  data=None,
341
341
  token=token,
342
342
  )
@@ -10,6 +10,7 @@ class InstanceRentedBusinessStatus(str, Enum):
10
10
  STOPPING: str = 'STOPPING'
11
11
  STARTING: str = 'STARTING'
12
12
  REBOOTING: str = 'REBOOTING'
13
+ UNREACHABLE_DAEMON: str = 'UNREACHABLE_DAEMON'
13
14
  DELETED: str = 'DELETED'
14
15
  RENTAL_ERROR: str = 'RENTAL_ERROR'
15
16
  UNKNOWN: str = 'UNKNOWN'
@@ -4,7 +4,7 @@ from enum import Enum
4
4
  class SelfhostedBusinessStatus(str, Enum):
5
5
  AWAITING_CONFIGURATION: str = 'AWAITING_CONFIGURATION'
6
6
  RUNNING: str = 'RUNNING'
7
- TERMINATED: str = 'TERMINATED'
7
+ UNREACHABLE_DAEMON: str = 'UNREACHABLE_DAEMON'
8
8
  DELETED: str = 'DELETED'
9
9
  UNKNOWN: str = 'UNKNOWN'
10
10
  ALL: str = 'ALL'
@@ -105,7 +105,7 @@ class InstanceService(AbstractService):
105
105
  typer.echo(__('Cannot connect to self-hosted instance: it is awaiting configuration'))
106
106
  raise typer.Exit(1)
107
107
  elif instance.frontend_status.status_key in [
108
- SelfhostedBusinessStatus.TERMINATED.name,
108
+ SelfhostedBusinessStatus.UNREACHABLE_DAEMON.name,
109
109
  SelfhostedBusinessStatus.DELETED.name,
110
110
  ]:
111
111
  typer.echo(__('Cannot connect to self-hosted instance: it may be turned off or unreachable'))
@@ -237,7 +237,7 @@ class InstanceService(AbstractService):
237
237
  statuses = ({key: selfhosted_instance_status_map[key] for key in [
238
238
  SelfhostedBusinessStatus.AWAITING_CONFIGURATION,
239
239
  SelfhostedBusinessStatus.RUNNING,
240
- SelfhostedBusinessStatus.TERMINATED,
240
+ SelfhostedBusinessStatus.UNREACHABLE_DAEMON,
241
241
  ]}).values()
242
242
 
243
243
  if "all" in statuses:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: thestage
3
- Version: 0.5.45
3
+ Version: 0.5.46
4
4
  Summary:
5
5
  Author: TheStage AI team
6
6
  Author-email: hello@thestage.ai
@@ -1,4 +1,4 @@
1
- thestage/__init__.py,sha256=jF3zpsm_hT2fThFl_9xh6OFpHhG5nMHLJtncxIQBu1A,65
1
+ thestage/__init__.py,sha256=pEpnAeedds6WiOwQkmnturO5OQsgpmFECGPKAJXGgyM,65
2
2
  thestage/__main__.py,sha256=4ObdWrDRaIASaR06IxtFSsoMu58eyL0MnD64habvPj8,101
3
3
  thestage/color_scheme/color_scheme.py,sha256=qaSSS_OzPsqI7yV1TC3Ne0PnsWDWo5xqU8j_7JYG-TI,210
4
4
  thestage/config/__init__.py,sha256=RNobilYVK1WAM1utcQ8ZuATKc9Zh9M9BAjCLZTnR_TA,428
@@ -47,12 +47,11 @@ thestage/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
47
47
  thestage/services/abstract_mapper.py,sha256=_q7YLkPNRsNW5wOCqvZIu1KfpLkc7uVaAQKrMZtsGuY,218
48
48
  thestage/services/abstract_service.py,sha256=1PBkO8pFkPmNk1VxUIxED0H3ZStCqAcFw7QGBlzkoh4,3963
49
49
  thestage/services/app_config_service.py,sha256=a7zrbVCJx6XCSRCMv346AYQ_gV3fzw8g7EzunZJ-CIY,1655
50
- thestage/services/clients/.DS_Store,sha256=EYALnKLNXhZ-2jJTMck8Fo1bIxlFCvaXGUUUf-lgHxM,6148
51
50
  thestage/services/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
51
  thestage/services/clients/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
52
  thestage/services/clients/git/git_client.py,sha256=y1ZHgFu5l6tQ3l7SCJVLP81VDGTkCWofhOsVruZwJHo,12716
54
53
  thestage/services/clients/thestage_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
- thestage/services/clients/thestage_api/api_client.py,sha256=W28SETPflYnOQgb0WoGaleqYtR8EtiOYllcOqUbK-pE,29336
54
+ thestage/services/clients/thestage_api/api_client.py,sha256=-9lezA7JoMbZUDJ-4RkXUaY0sHJRIN74uzdj3O4El5c,29336
56
55
  thestage/services/clients/thestage_api/core/api_client_abstract.py,sha256=nJ0OiT4Ecexp-3HHK332pvyzrf1JsZ1WQYdvn-aeIL8,2984
57
56
  thestage/services/clients/thestage_api/core/api_client_core.py,sha256=WwtzdTAxog-l2UU8Up40BxepgM7OTXn-XHgzlHorXT0,908
58
57
  thestage/services/clients/thestage_api/core/http_client_exception.py,sha256=JH-874Gu9T1b1_FpPBLqdyt9U0PyhpwRCe_oDc6c_jI,385
@@ -77,12 +76,12 @@ thestage/services/clients/thestage_api/dtos/enums/drive_type.py,sha256=xqs2I9w2c
77
76
  thestage/services/clients/thestage_api/dtos/enums/gpu_name.py,sha256=YO3iYlo7wTT6wEpkJDRcOO8NAc3WMxEQXMQ8jTFKH6k,162
78
77
  thestage/services/clients/thestage_api/dtos/enums/inference_model_status.py,sha256=OgoJBh8u5kveForMoxKCCXesE23C8MTGWiMKTUmmKls,256
79
78
  thestage/services/clients/thestage_api/dtos/enums/inference_simulator_status.py,sha256=mC8_xCjP0p_tmzx41rgLRwYgbijWcR9xs4m9goZY1Ck,436
80
- thestage/services/clients/thestage_api/dtos/enums/instance_rented_status.py,sha256=688DYG1gxPL_ZRt1uwzwl2RZeMBtpxkigu9oSdVEweQ,439
79
+ thestage/services/clients/thestage_api/dtos/enums/instance_rented_status.py,sha256=_uk5memh9fOPybFugvNANdhnj2-1Gpx1SE9ZpG6d88k,490
81
80
  thestage/services/clients/thestage_api/dtos/enums/instance_type.py,sha256=bdyRr3Up7LpdHZjVsVjg_4lmxME5CQZ6DJ0__tgmpMk,159
82
81
  thestage/services/clients/thestage_api/dtos/enums/location_region.py,sha256=t0TLDgFhZTe6eOZxhp1a52bB-ZPERwxoHv0c928Vxvk,281
83
82
  thestage/services/clients/thestage_api/dtos/enums/power_status.py,sha256=jNmebTN4qcQs8pwlG2QSy0kTwOyBEkfCl84Gl1npK4g,239
84
83
  thestage/services/clients/thestage_api/dtos/enums/provider_name.py,sha256=StLglFLewOa7pQYOb3aGzIPuhc937Qr2c4UlQFJXUto,287
85
- thestage/services/clients/thestage_api/dtos/enums/selfhosted_status.py,sha256=EAtj7e565Dxq8RE8avABJTuPepykHfxOFDshxzi72eQ,269
84
+ thestage/services/clients/thestage_api/dtos/enums/selfhosted_status.py,sha256=_OsxObVpczLJ9CJKh4nRh0X6lXw9PfQMTYOGEvze9R8,285
86
85
  thestage/services/clients/thestage_api/dtos/enums/task_execution_status.py,sha256=MU14K1PvkLEFnUizeVt8x_u1IP2OVkyf5pLFdrUUtYg,303
87
86
  thestage/services/clients/thestage_api/dtos/enums/task_status.py,sha256=Zg4QkuHilWTC6D_lKsby7u4y1rSRs69_kzfeFWCWoFg,282
88
87
  thestage/services/clients/thestage_api/dtos/frontend_status.py,sha256=MKrqCmFWVe-8InJqavkqz1w1N35OcT3ndBrXOu7mKdA,312
@@ -143,7 +142,7 @@ thestage/services/container/mapper/container_mapper.py,sha256=ymIjBLGZnpodh0W2Kw
143
142
  thestage/services/core_files/config_entity.py,sha256=qMMjqQrTQmlts93r_NunR5na5uScc526NV9_a3SgPVQ,867
144
143
  thestage/services/filesystem_service.py,sha256=U_-U7UcTMFwJeYu-iD8OVYQgcKjTnnrENKVqfDqQwY4,4832
145
144
  thestage/services/instance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
- thestage/services/instance/instance_service.py,sha256=cAuyDozqVNy9FkyQqMu037LghqaUeFfmR9kGbUxLhY4,13371
145
+ thestage/services/instance/instance_service.py,sha256=bpIal0Kjz43vgbWgS7aGZsYPFmc2Tlf9rk3TW6T5nWA,13387
147
146
  thestage/services/instance/mapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
148
147
  thestage/services/instance/mapper/instance_mapper.py,sha256=OA0-Z6ODfAK1yBjf7nF-JDKERr8lZUm5vYKk_TFw-v8,1132
149
148
  thestage/services/instance/mapper/selfhosted_mapper.py,sha256=KpkvsDV0OWzHhN53md4mgo3xc8siM5idDwL_pSRTouE,1286
@@ -166,8 +165,8 @@ thestage/services/remote_server_service.py,sha256=AsTzlI7mvlJpqFqrhn4o9l3CYliLge
166
165
  thestage/services/service_factory.py,sha256=Hx9DeFP3x3FDj2g9FCuUnAQSUEfZbJGli_WD805wg40,5082
167
166
  thestage/services/task/dto/task_dto.py,sha256=PJwrUsLLAoO2uA9xvzb27b9iYAoNiBcsHSxKERh2VFo,2335
168
167
  thestage/services/validation_service.py,sha256=RFVZA_Ri2bzOBKGz6qs5WHK8Z7wVNUMjuj8uRz38YbU,1798
169
- thestage-0.5.45.dist-info/LICENSE.txt,sha256=U9QrxfdD7Ie7r8z1FleuvOGQvgCF1m0Mjd78cFvWaHE,572
170
- thestage-0.5.45.dist-info/METADATA,sha256=nrVxlmjYX1TjrTIIAjbQFWLwLvoH4XaJuUSptgY6yFk,5558
171
- thestage-0.5.45.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
172
- thestage-0.5.45.dist-info/entry_points.txt,sha256=57pMhs8zaCM-jgeTffC0WVqCsh35Uq_dUDmzXR80CI4,47
173
- thestage-0.5.45.dist-info/RECORD,,
168
+ thestage-0.5.46.dist-info/LICENSE.txt,sha256=U9QrxfdD7Ie7r8z1FleuvOGQvgCF1m0Mjd78cFvWaHE,572
169
+ thestage-0.5.46.dist-info/METADATA,sha256=cd3_WGUFomLWSZROt7RJLkRqAAoTYEvIF8WRgmhr5qc,5558
170
+ thestage-0.5.46.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
171
+ thestage-0.5.46.dist-info/entry_points.txt,sha256=57pMhs8zaCM-jgeTffC0WVqCsh35Uq_dUDmzXR80CI4,47
172
+ thestage-0.5.46.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
Binary file