thestage 0.5.471__py3-none-any.whl → 0.6.2__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/.env +5 -5
- thestage/__init__.py +3 -4
- thestage/__main__.py +9 -9
- thestage/cli_command.py +56 -56
- thestage/cli_command_helper.py +51 -51
- thestage/color_scheme/color_scheme.py +7 -7
- thestage/config/__init__.py +18 -18
- thestage/config/config_storage.py +5 -5
- thestage/config/env_base.py +7 -7
- thestage/controllers/__init__.py +0 -0
- thestage/controllers/base_controller.py +67 -67
- thestage/controllers/config_controller.py +137 -137
- thestage/controllers/container_controller.py +389 -389
- thestage/controllers/instance_controller.py +183 -183
- thestage/controllers/project_controller.py +810 -783
- thestage/controllers/utils_controller.py +32 -32
- thestage/debug_main.dist.py +28 -28
- thestage/entities/__init__.py +0 -0
- thestage/entities/container.py +17 -17
- thestage/entities/enums/__init__.py +0 -0
- thestage/entities/enums/order_direction_type.py +6 -6
- thestage/entities/enums/shell_type.py +7 -7
- thestage/entities/enums/tail_output_type.py +6 -6
- thestage/entities/enums/yes_no_response.py +7 -7
- thestage/entities/file_item.py +27 -27
- thestage/entities/project_inference_simulator.py +18 -18
- thestage/entities/project_inference_simulator_model.py +16 -16
- thestage/entities/project_task.py +19 -19
- thestage/entities/rented_instance.py +19 -19
- thestage/entities/self_hosted_instance.py +18 -18
- thestage/exceptions/__init__.py +0 -0
- thestage/exceptions/auth_exception.py +6 -6
- thestage/exceptions/base_exception.py +13 -13
- thestage/exceptions/business_logic_exception.py +6 -6
- thestage/exceptions/config_exception.py +6 -6
- thestage/exceptions/file_system_exception.py +6 -6
- thestage/exceptions/git_access_exception.py +17 -17
- thestage/exceptions/remote_server_exception.py +24 -24
- thestage/git/ProgressPrinter.py +22 -22
- thestage/helpers/__init__.py +0 -0
- thestage/helpers/error_handler.py +115 -115
- thestage/helpers/exception_hook.py +14 -14
- thestage/helpers/logger/__init__.py +0 -0
- thestage/helpers/logger/app_logger.py +50 -50
- thestage/helpers/ssh_util.py +38 -38
- thestage/i18n/en_GB/messages.po +947 -947
- thestage/i18n/translation.py +9 -9
- thestage/main.py +36 -36
- thestage/services/.env +6 -6
- thestage/services/__init__.py +0 -0
- thestage/services/abstract_mapper.py +9 -9
- thestage/services/abstract_service.py +87 -87
- thestage/services/app_config_service.py +52 -52
- thestage/services/clients/__init__.py +0 -0
- thestage/services/clients/git/__init__.py +0 -0
- thestage/services/clients/git/git_client.py +436 -331
- thestage/services/clients/thestage_api/__init__.py +0 -0
- thestage/services/clients/thestage_api/api_client.py +718 -720
- thestage/services/clients/thestage_api/core/api_client_core.py +108 -108
- thestage/services/clients/thestage_api/core/http_client_exception.py +12 -12
- thestage/services/clients/thestage_api/dtos/__init__.py +0 -0
- thestage/services/clients/thestage_api/dtos/base_response.py +13 -13
- thestage/services/clients/thestage_api/dtos/cloud_provider_region.py +19 -19
- thestage/services/clients/thestage_api/dtos/container_param_request.py +11 -11
- thestage/services/clients/thestage_api/dtos/container_response.py +67 -67
- thestage/services/clients/thestage_api/dtos/docker_container_assigned_device.py +10 -10
- thestage/services/clients/thestage_api/dtos/docker_container_controller/docker_container_list_request.py +13 -13
- thestage/services/clients/thestage_api/dtos/docker_container_controller/docker_container_list_response.py +13 -13
- thestage/services/clients/thestage_api/dtos/docker_container_mapping.py +10 -10
- thestage/services/clients/thestage_api/dtos/entity_filter_request.py +14 -14
- thestage/services/clients/thestage_api/dtos/enums/__init__.py +0 -0
- thestage/services/clients/thestage_api/dtos/enums/container_pending_action.py +10 -10
- thestage/services/clients/thestage_api/dtos/enums/container_status.py +17 -17
- thestage/services/clients/thestage_api/dtos/enums/cpu_type.py +8 -8
- thestage/services/clients/thestage_api/dtos/enums/currency_type.py +10 -10
- thestage/services/clients/thestage_api/dtos/enums/daemon_status.py +9 -9
- thestage/services/clients/thestage_api/dtos/enums/disk_type.py +7 -7
- thestage/services/clients/thestage_api/dtos/enums/drive_type.py +7 -7
- thestage/services/clients/thestage_api/dtos/enums/gpu_name.py +8 -8
- thestage/services/clients/thestage_api/dtos/enums/inference_model_status.py +9 -9
- thestage/services/clients/thestage_api/dtos/enums/inference_simulator_status.py +15 -15
- thestage/services/clients/thestage_api/dtos/enums/instance_rented_status.py +17 -17
- thestage/services/clients/thestage_api/dtos/enums/instance_type.py +7 -7
- thestage/services/clients/thestage_api/dtos/enums/location_region.py +11 -11
- thestage/services/clients/thestage_api/dtos/enums/power_status.py +10 -10
- thestage/services/clients/thestage_api/dtos/enums/provider_name.py +11 -11
- thestage/services/clients/thestage_api/dtos/enums/selfhosted_status.py +10 -10
- thestage/services/clients/thestage_api/dtos/enums/task_execution_status.py +12 -12
- thestage/services/clients/thestage_api/dtos/enums/task_status.py +12 -12
- thestage/services/clients/thestage_api/dtos/frontend_status.py +10 -10
- thestage/services/clients/thestage_api/dtos/inference_controller/deploy_inference_model_to_instance_request.py +13 -13
- thestage/services/clients/thestage_api/dtos/inference_controller/deploy_inference_model_to_instance_response.py +13 -13
- thestage/services/clients/thestage_api/dtos/inference_controller/deploy_inference_model_to_sagemaker_request.py +12 -12
- thestage/services/clients/thestage_api/dtos/inference_controller/deploy_inference_model_to_sagemaker_response.py +12 -12
- thestage/services/clients/thestage_api/dtos/inference_controller/get_inference_simulator_request.py +10 -10
- thestage/services/clients/thestage_api/dtos/inference_controller/get_inference_simulator_response.py +13 -13
- thestage/services/clients/thestage_api/dtos/inference_controller/inference_simulator_list_for_project_request.py +14 -14
- thestage/services/clients/thestage_api/dtos/inference_controller/inference_simulator_list_for_project_response.py +12 -12
- thestage/services/clients/thestage_api/dtos/inference_controller/inference_simulator_model_list_for_project_request.py +12 -12
- thestage/services/clients/thestage_api/dtos/inference_controller/inference_simulator_model_list_for_project_response.py +13 -13
- thestage/services/clients/thestage_api/dtos/inference_simulator_model_response.py +11 -11
- thestage/services/clients/thestage_api/dtos/inference_simulator_response.py +11 -11
- thestage/services/clients/thestage_api/dtos/installed_service.py +17 -17
- thestage/services/clients/thestage_api/dtos/instance_detected_gpus.py +20 -20
- thestage/services/clients/thestage_api/dtos/instance_rented_response.py +71 -71
- thestage/services/clients/thestage_api/dtos/logging_controller/docker_container_log_stream_request.py +7 -7
- thestage/services/clients/thestage_api/dtos/logging_controller/log_polling_request.py +13 -13
- thestage/services/clients/thestage_api/dtos/logging_controller/log_polling_response.py +14 -14
- thestage/services/clients/thestage_api/dtos/logging_controller/task_log_stream_request.py +7 -7
- thestage/services/clients/thestage_api/dtos/logging_controller/user_logs_query_request.py +21 -21
- thestage/services/clients/thestage_api/dtos/logging_controller/user_logs_query_response.py +14 -14
- thestage/services/clients/thestage_api/dtos/paginated_entity_list.py +11 -11
- thestage/services/clients/thestage_api/dtos/pagination_data.py +10 -10
- thestage/services/clients/thestage_api/dtos/price_definition.py +14 -14
- thestage/services/clients/thestage_api/dtos/project_controller/project_get_deploy_ssh_key_request.py +7 -7
- thestage/services/clients/thestage_api/dtos/project_controller/project_get_deploy_ssh_key_response.py +10 -10
- thestage/services/clients/thestage_api/dtos/project_controller/project_push_inference_simulator_model_request.py +8 -8
- thestage/services/clients/thestage_api/dtos/project_controller/project_push_inference_simulator_model_response.py +6 -6
- thestage/services/clients/thestage_api/dtos/project_controller/project_run_task_request.py +15 -15
- thestage/services/clients/thestage_api/dtos/project_controller/project_run_task_response.py +10 -10
- thestage/services/clients/thestage_api/dtos/project_controller/project_start_inference_simulator_request.py +13 -14
- thestage/services/clients/thestage_api/dtos/project_controller/project_start_inference_simulator_response.py +10 -10
- thestage/services/clients/thestage_api/dtos/project_response.py +32 -32
- thestage/services/clients/thestage_api/dtos/selfhosted_instance_response.py +56 -56
- thestage/services/clients/thestage_api/dtos/sftp_path_helper.py +13 -13
- thestage/services/clients/thestage_api/dtos/ssh_key_controller/add_ssh_key_to_user_request.py +8 -8
- thestage/services/clients/thestage_api/dtos/ssh_key_controller/add_ssh_key_to_user_response.py +11 -11
- thestage/services/clients/thestage_api/dtos/ssh_key_controller/add_ssh_public_key_to_instance_request.py +8 -8
- thestage/services/clients/thestage_api/dtos/ssh_key_controller/add_ssh_public_key_to_instance_response.py +11 -11
- thestage/services/clients/thestage_api/dtos/ssh_key_controller/is_user_has_public_ssh_key_request.py +7 -7
- thestage/services/clients/thestage_api/dtos/ssh_key_controller/is_user_has_public_ssh_key_response.py +12 -12
- thestage/services/clients/thestage_api/dtos/task_controller/task_list_for_project_request.py +10 -10
- thestage/services/clients/thestage_api/dtos/task_controller/task_list_for_project_response.py +12 -12
- thestage/services/clients/thestage_api/dtos/task_controller/task_status_localized_map_response.py +9 -9
- thestage/services/clients/thestage_api/dtos/task_controller/task_view_response.py +12 -12
- thestage/services/clients/thestage_api/dtos/user_controller/user_profile.py +12 -12
- thestage/services/clients/thestage_api/dtos/validate_token_response.py +11 -11
- thestage/services/config_provider/__init__.py +0 -0
- thestage/services/config_provider/config_provider.py +237 -237
- thestage/services/connect/connect_service.py +196 -196
- thestage/services/connect/dto/remote_server_config.py +9 -9
- thestage/services/container/__init__.py +0 -0
- thestage/services/container/container_service.py +374 -374
- thestage/services/container/mapper/__init__.py +0 -0
- thestage/services/container/mapper/container_mapper.py +30 -30
- thestage/services/core_files/config_entity.py +26 -26
- thestage/services/filesystem_service.py +133 -133
- thestage/services/instance/__init__.py +0 -0
- thestage/services/instance/instance_service.py +303 -303
- thestage/services/instance/mapper/__init__.py +0 -0
- thestage/services/instance/mapper/instance_mapper.py +24 -24
- thestage/services/instance/mapper/selfhosted_mapper.py +33 -33
- thestage/services/logging/byte_print_style.py +5 -5
- thestage/services/logging/dto/log_message.py +15 -15
- thestage/services/logging/dto/log_type.py +6 -6
- thestage/services/logging/exception/log_polling_exception.py +6 -6
- thestage/services/logging/logging_constants.py +3 -3
- thestage/services/logging/logging_service.py +367 -367
- thestage/services/project/__init__.py +0 -0
- thestage/services/project/dto/inference_simulator_dto.py +22 -22
- thestage/services/project/dto/inference_simulator_model_dto.py +20 -20
- thestage/services/project/dto/project_config.py +14 -14
- thestage/services/project/mapper/__init__.py +0 -0
- thestage/services/project/mapper/project_inference_simulator_mapper.py +21 -21
- thestage/services/project/mapper/project_inference_simulator_model_mapper.py +21 -21
- thestage/services/project/mapper/project_task_mapper.py +22 -22
- thestage/services/project/project_service.py +1253 -1241
- thestage/services/remote_server_service.py +609 -609
- thestage/services/service_factory.py +97 -97
- thestage/services/task/dto/task_dto.py +40 -40
- thestage/services/validation_service.py +61 -61
- {thestage-0.5.471.dist-info → thestage-0.6.2.dist-info}/LICENSE.txt +12 -12
- {thestage-0.5.471.dist-info → thestage-0.6.2.dist-info}/METADATA +1 -1
- thestage-0.6.2.dist-info/RECORD +176 -0
- {thestage-0.5.471.dist-info → thestage-0.6.2.dist-info}/WHEEL +1 -1
- thestage/debug_tests.py +0 -12
- thestage/services/clients/.DS_Store +0 -0
- thestage-0.5.471.dist-info/RECORD +0 -178
- {thestage-0.5.471.dist-info → thestage-0.6.2.dist-info}/entry_points.txt +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class DockerContainerStatus(str, Enum):
|
|
5
|
-
FAILED: str = 'FAILED'
|
|
6
|
-
BUSY: str = 'BUSY'
|
|
7
|
-
DEAD: str = 'DEAD'
|
|
8
|
-
CREATING: str = 'CREATING'
|
|
9
|
-
CREATING_FAILED: str = 'CREATING_FAILED'
|
|
10
|
-
STARTING: str = 'STARTING'
|
|
11
|
-
RUNNING: str = 'RUNNING'
|
|
12
|
-
STOPPING: str = 'STOPPING'
|
|
13
|
-
STOPPED: str = 'STOPPED'
|
|
14
|
-
RESTARTING: str = 'RESTARTING'
|
|
15
|
-
DELETING: str = 'DELETING'
|
|
16
|
-
DELETED: str = 'DELETED'
|
|
17
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DockerContainerStatus(str, Enum):
|
|
5
|
+
FAILED: str = 'FAILED'
|
|
6
|
+
BUSY: str = 'BUSY'
|
|
7
|
+
DEAD: str = 'DEAD'
|
|
8
|
+
CREATING: str = 'CREATING'
|
|
9
|
+
CREATING_FAILED: str = 'CREATING_FAILED'
|
|
10
|
+
STARTING: str = 'STARTING'
|
|
11
|
+
RUNNING: str = 'RUNNING'
|
|
12
|
+
STOPPING: str = 'STOPPING'
|
|
13
|
+
STOPPED: str = 'STOPPED'
|
|
14
|
+
RESTARTING: str = 'RESTARTING'
|
|
15
|
+
DELETING: str = 'DELETING'
|
|
16
|
+
DELETED: str = 'DELETED'
|
|
17
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class InstanceCpuType(str, Enum):
|
|
5
|
-
INTEL: str = 'INTEL'
|
|
6
|
-
AMD: str = 'AMD'
|
|
7
|
-
ARM: str = 'ARM'
|
|
8
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class InstanceCpuType(str, Enum):
|
|
5
|
+
INTEL: str = 'INTEL'
|
|
6
|
+
AMD: str = 'AMD'
|
|
7
|
+
ARM: str = 'ARM'
|
|
8
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class CurrencyTypeEnumDto(str, Enum):
|
|
5
|
-
ETH: str = 'ETH'
|
|
6
|
-
STAGI: str = 'STAGI'
|
|
7
|
-
USD: str = 'USD'
|
|
8
|
-
EUR: str = 'EUR'
|
|
9
|
-
USDT: str = 'USDT'
|
|
10
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class CurrencyTypeEnumDto(str, Enum):
|
|
5
|
+
ETH: str = 'ETH'
|
|
6
|
+
STAGI: str = 'STAGI'
|
|
7
|
+
USD: str = 'USD'
|
|
8
|
+
EUR: str = 'EUR'
|
|
9
|
+
USDT: str = 'USDT'
|
|
10
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class DaemonStatus(str, Enum):
|
|
5
|
-
NEW: str = 'NEW'
|
|
6
|
-
ONLINE: str = 'ONLINE'
|
|
7
|
-
OFFLINE: str = 'OFFLINE'
|
|
8
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
9
|
-
ALL: str = 'ALL'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DaemonStatus(str, Enum):
|
|
5
|
+
NEW: str = 'NEW'
|
|
6
|
+
ONLINE: str = 'ONLINE'
|
|
7
|
+
OFFLINE: str = 'OFFLINE'
|
|
8
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
9
|
+
ALL: str = 'ALL'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class DiskTypeEnumDto(str, Enum):
|
|
5
|
-
SSD: str = 'SSD'
|
|
6
|
-
HDD: str = 'HDD'
|
|
7
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DiskTypeEnumDto(str, Enum):
|
|
5
|
+
SSD: str = 'SSD'
|
|
6
|
+
HDD: str = 'HDD'
|
|
7
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class DriveTypeEnumDto(str, Enum):
|
|
5
|
-
SSD: str = 'SSD'
|
|
6
|
-
HDD: str = 'HDD'
|
|
7
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DriveTypeEnumDto(str, Enum):
|
|
5
|
+
SSD: str = 'SSD'
|
|
6
|
+
HDD: str = 'HDD'
|
|
7
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class InstanceGpuType(str, Enum):
|
|
5
|
-
NVIDIA: str = 'NVIDIA'
|
|
6
|
-
AMD: str = 'AMD'
|
|
7
|
-
NO_GPU: str = 'NO_GPU'
|
|
8
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class InstanceGpuType(str, Enum):
|
|
5
|
+
NVIDIA: str = 'NVIDIA'
|
|
6
|
+
AMD: str = 'AMD'
|
|
7
|
+
NO_GPU: str = 'NO_GPU'
|
|
8
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class InferenceModelStatus(str, Enum):
|
|
5
|
-
SCHEDULED: str = 'SCHEDULED'
|
|
6
|
-
PROCESSING: str = 'PROCESSING'
|
|
7
|
-
PUSH_SUCCEED: str = 'PUSH_SUCCEED'
|
|
8
|
-
PUSH_FAILED: str = 'PUSH_FAILED'
|
|
9
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class InferenceModelStatus(str, Enum):
|
|
5
|
+
SCHEDULED: str = 'SCHEDULED'
|
|
6
|
+
PROCESSING: str = 'PROCESSING'
|
|
7
|
+
PUSH_SUCCEED: str = 'PUSH_SUCCEED'
|
|
8
|
+
PUSH_FAILED: str = 'PUSH_FAILED'
|
|
9
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
10
10
|
ALL: str = 'ALL'
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class InferenceSimulatorStatus(str, Enum):
|
|
5
|
-
SCHEDULED: str = 'SCHEDULED'
|
|
6
|
-
CREATING: str = 'CREATING'
|
|
7
|
-
CREATING_FAILED: str = 'CREATING_FAILED'
|
|
8
|
-
RUNNING: str = 'RUNNING'
|
|
9
|
-
STOPPING: str = 'STOPPING'
|
|
10
|
-
STOPPED: str = 'STOPPED'
|
|
11
|
-
DELETING: str = 'DELETING'
|
|
12
|
-
DELETED: str = 'DELETED'
|
|
13
|
-
FAILED: str = 'FAILED'
|
|
14
|
-
RESTARTING: str = 'RESTARTING'
|
|
15
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class InferenceSimulatorStatus(str, Enum):
|
|
5
|
+
SCHEDULED: str = 'SCHEDULED'
|
|
6
|
+
CREATING: str = 'CREATING'
|
|
7
|
+
CREATING_FAILED: str = 'CREATING_FAILED'
|
|
8
|
+
RUNNING: str = 'RUNNING'
|
|
9
|
+
STOPPING: str = 'STOPPING'
|
|
10
|
+
STOPPED: str = 'STOPPED'
|
|
11
|
+
DELETING: str = 'DELETING'
|
|
12
|
+
DELETED: str = 'DELETED'
|
|
13
|
+
FAILED: str = 'FAILED'
|
|
14
|
+
RESTARTING: str = 'RESTARTING'
|
|
15
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
16
16
|
ALL: str = 'ALL'
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class InstanceRentedBusinessStatus(str, Enum):
|
|
5
|
-
IN_QUEUE: str = 'IN_QUEUE'
|
|
6
|
-
CREATING: str = 'CREATING'
|
|
7
|
-
ONLINE: str = 'ONLINE'
|
|
8
|
-
TERMINATING: str = 'TERMINATING'
|
|
9
|
-
STOPPED: str = 'STOPPED'
|
|
10
|
-
STOPPING: str = 'STOPPING'
|
|
11
|
-
STARTING: str = 'STARTING'
|
|
12
|
-
REBOOTING: str = 'REBOOTING'
|
|
13
|
-
UNREACHABLE_DAEMON: str = 'UNREACHABLE_DAEMON'
|
|
14
|
-
DELETED: str = 'DELETED'
|
|
15
|
-
RENTAL_ERROR: str = 'RENTAL_ERROR'
|
|
16
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
17
|
-
ALL: str = 'ALL'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class InstanceRentedBusinessStatus(str, Enum):
|
|
5
|
+
IN_QUEUE: str = 'IN_QUEUE'
|
|
6
|
+
CREATING: str = 'CREATING'
|
|
7
|
+
ONLINE: str = 'ONLINE'
|
|
8
|
+
TERMINATING: str = 'TERMINATING'
|
|
9
|
+
STOPPED: str = 'STOPPED'
|
|
10
|
+
STOPPING: str = 'STOPPING'
|
|
11
|
+
STARTING: str = 'STARTING'
|
|
12
|
+
REBOOTING: str = 'REBOOTING'
|
|
13
|
+
UNREACHABLE_DAEMON: str = 'UNREACHABLE_DAEMON'
|
|
14
|
+
DELETED: str = 'DELETED'
|
|
15
|
+
RENTAL_ERROR: str = 'RENTAL_ERROR'
|
|
16
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
17
|
+
ALL: str = 'ALL'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class InstanceTypeEnumDto(str, Enum):
|
|
5
|
-
RENTABLE: str = 'RENTABLE'
|
|
6
|
-
SELF_HOSTED: str = 'SELF_HOSTED'
|
|
7
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class InstanceTypeEnumDto(str, Enum):
|
|
5
|
+
RENTABLE: str = 'RENTABLE'
|
|
6
|
+
SELF_HOSTED: str = 'SELF_HOSTED'
|
|
7
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class LocationRegionEnumDto(str, Enum):
|
|
5
|
-
NORTH_AMERICA: str = 'NORTH_AMERICA'
|
|
6
|
-
EUROPE: str = 'EUROPE'
|
|
7
|
-
ASIA: str = 'ASIA'
|
|
8
|
-
AFRICA: str = 'AFRICA'
|
|
9
|
-
OCEANIA: str = 'OCEANIA'
|
|
10
|
-
SOUTH_AMERICA: str = 'SOUTH_AMERICA'
|
|
11
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class LocationRegionEnumDto(str, Enum):
|
|
5
|
+
NORTH_AMERICA: str = 'NORTH_AMERICA'
|
|
6
|
+
EUROPE: str = 'EUROPE'
|
|
7
|
+
ASIA: str = 'ASIA'
|
|
8
|
+
AFRICA: str = 'AFRICA'
|
|
9
|
+
OCEANIA: str = 'OCEANIA'
|
|
10
|
+
SOUTH_AMERICA: str = 'SOUTH_AMERICA'
|
|
11
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class PowerStatusEnumDto(str, Enum):
|
|
5
|
-
ON: str = 'ON'
|
|
6
|
-
OFF: str = 'OFF'
|
|
7
|
-
POWERING_ON: str = 'POWERING_ON'
|
|
8
|
-
POWERING_OFF: str = 'POWERING_OFF'
|
|
9
|
-
REBOOTING: str = 'REBOOTING'
|
|
10
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class PowerStatusEnumDto(str, Enum):
|
|
5
|
+
ON: str = 'ON'
|
|
6
|
+
OFF: str = 'OFF'
|
|
7
|
+
POWERING_ON: str = 'POWERING_ON'
|
|
8
|
+
POWERING_OFF: str = 'POWERING_OFF'
|
|
9
|
+
REBOOTING: str = 'REBOOTING'
|
|
10
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class ProviderNameEnumDto(str, Enum):
|
|
5
|
-
Amazon: str = 'Amazon'
|
|
6
|
-
DigitalOcean: str = 'DigitalOcean' # old
|
|
7
|
-
Exoscale: str = 'Exoscale' # old
|
|
8
|
-
Vultr: str = 'Vultr' # old
|
|
9
|
-
Nebius: str = 'Nebius'
|
|
10
|
-
Azure: str = 'Azure'
|
|
11
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ProviderNameEnumDto(str, Enum):
|
|
5
|
+
Amazon: str = 'Amazon'
|
|
6
|
+
DigitalOcean: str = 'DigitalOcean' # old
|
|
7
|
+
Exoscale: str = 'Exoscale' # old
|
|
8
|
+
Vultr: str = 'Vultr' # old
|
|
9
|
+
Nebius: str = 'Nebius'
|
|
10
|
+
Azure: str = 'Azure'
|
|
11
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class SelfhostedBusinessStatus(str, Enum):
|
|
5
|
-
AWAITING_CONFIGURATION: str = 'AWAITING_CONFIGURATION'
|
|
6
|
-
RUNNING: str = 'RUNNING'
|
|
7
|
-
UNREACHABLE_DAEMON: str = 'UNREACHABLE_DAEMON'
|
|
8
|
-
DELETED: str = 'DELETED'
|
|
9
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
10
|
-
ALL: str = 'ALL'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SelfhostedBusinessStatus(str, Enum):
|
|
5
|
+
AWAITING_CONFIGURATION: str = 'AWAITING_CONFIGURATION'
|
|
6
|
+
RUNNING: str = 'RUNNING'
|
|
7
|
+
UNREACHABLE_DAEMON: str = 'UNREACHABLE_DAEMON'
|
|
8
|
+
DELETED: str = 'DELETED'
|
|
9
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
10
|
+
ALL: str = 'ALL'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class TaskExecutionStatusEnumDto(str, Enum):
|
|
5
|
-
NEW: str = 'NEW'
|
|
6
|
-
RUNNING: str = 'RUNNING'
|
|
7
|
-
FINISHED: str = 'FINISHED'
|
|
8
|
-
CANCELED: str = 'CANCELED'
|
|
9
|
-
CANCELING: str = 'CANCELING'
|
|
10
|
-
SCHEDULED: str = 'SCHEDULED'
|
|
11
|
-
FAILED: str = 'FAILED'
|
|
12
|
-
UNKNOWN: str = 'UNKNOWN'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class TaskExecutionStatusEnumDto(str, Enum):
|
|
5
|
+
NEW: str = 'NEW'
|
|
6
|
+
RUNNING: str = 'RUNNING'
|
|
7
|
+
FINISHED: str = 'FINISHED'
|
|
8
|
+
CANCELED: str = 'CANCELED'
|
|
9
|
+
CANCELING: str = 'CANCELING'
|
|
10
|
+
SCHEDULED: str = 'SCHEDULED'
|
|
11
|
+
FAILED: str = 'FAILED'
|
|
12
|
+
UNKNOWN: str = 'UNKNOWN'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from enum import Enum
|
|
2
|
-
from typing import List
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class TaskStatus(str, Enum):
|
|
6
|
-
NEW: str = 'NEW'
|
|
7
|
-
SCHEDULED: str = 'SCHEDULED'
|
|
8
|
-
RUNNING: str = 'RUNNING'
|
|
9
|
-
FINISHED: str = 'FINISHED'
|
|
10
|
-
CANCELING: str = 'CANCELING'
|
|
11
|
-
CANCELED: str = 'CANCELED'
|
|
12
|
-
FAILED: str = 'FAILED'
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class TaskStatus(str, Enum):
|
|
6
|
+
NEW: str = 'NEW'
|
|
7
|
+
SCHEDULED: str = 'SCHEDULED'
|
|
8
|
+
RUNNING: str = 'RUNNING'
|
|
9
|
+
FINISHED: str = 'FINISHED'
|
|
10
|
+
CANCELING: str = 'CANCELING'
|
|
11
|
+
CANCELED: str = 'CANCELED'
|
|
12
|
+
FAILED: str = 'FAILED'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from typing import Optional
|
|
2
|
-
|
|
3
|
-
from pydantic import ConfigDict, BaseModel, Field
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class FrontendStatusDto(BaseModel):
|
|
7
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
8
|
-
|
|
9
|
-
status_key: Optional[str] = Field(None, alias='statusKey')
|
|
10
|
-
status_translation: Optional[str] = Field(None, alias='statusTranslation')
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from pydantic import ConfigDict, BaseModel, Field
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FrontendStatusDto(BaseModel):
|
|
7
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
8
|
+
|
|
9
|
+
status_key: Optional[str] = Field(None, alias='statusKey')
|
|
10
|
+
status_translation: Optional[str] = Field(None, alias='statusTranslation')
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
from typing import Optional, List
|
|
2
|
-
|
|
3
|
-
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
-
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class DeployInferenceModelToInstanceRequest(BaseModel):
|
|
9
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
-
|
|
11
|
-
modelSlug: Optional[str] = Field(None, alias='modelSlug')
|
|
12
|
-
instanceRentedSlug: Optional[str] = Field(None, alias='instanceRentedSlug')
|
|
13
|
-
selfhostedInstanceSlug: Optional[str] = Field(None, alias='selfhostedInstanceSlug')
|
|
1
|
+
from typing import Optional, List
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
+
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeployInferenceModelToInstanceRequest(BaseModel):
|
|
9
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
+
|
|
11
|
+
modelSlug: Optional[str] = Field(None, alias='modelSlug')
|
|
12
|
+
instanceRentedSlug: Optional[str] = Field(None, alias='instanceRentedSlug')
|
|
13
|
+
selfhostedInstanceSlug: Optional[str] = Field(None, alias='selfhostedInstanceSlug')
|
|
14
14
|
inferenceSimulatorSlug: Optional[str] = Field(None, alias='inferenceSimulatorSlug')
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
from typing import Optional
|
|
2
|
-
|
|
3
|
-
from pydantic import Field, ConfigDict
|
|
4
|
-
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.base_response import TheStageBaseResponse
|
|
6
|
-
from thestage.services.project.dto.inference_simulator_model_dto import InferenceSimulatorModelDto
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class DeployInferenceModelToInstanceResponse(TheStageBaseResponse):
|
|
10
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
11
|
-
inferenceSimulatorModel: Optional[InferenceSimulatorModelDto] = Field(None, alias='inferenceSimulatorModel')
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ConfigDict
|
|
4
|
+
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.base_response import TheStageBaseResponse
|
|
6
|
+
from thestage.services.project.dto.inference_simulator_model_dto import InferenceSimulatorModelDto
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DeployInferenceModelToInstanceResponse(TheStageBaseResponse):
|
|
10
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
11
|
+
inferenceSimulatorModel: Optional[InferenceSimulatorModelDto] = Field(None, alias='inferenceSimulatorModel')
|
|
12
|
+
|
|
13
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from typing import Optional, List
|
|
2
|
-
|
|
3
|
-
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
-
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class DeployInferenceModelToSagemakerRequest(BaseModel):
|
|
9
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
-
|
|
11
|
-
modelSlug: Optional[str] = Field(None, alias='modelSlug')
|
|
12
|
-
arn: Optional[str] = Field(None, alias='arn')
|
|
1
|
+
from typing import Optional, List
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
+
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeployInferenceModelToSagemakerRequest(BaseModel):
|
|
9
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
+
|
|
11
|
+
modelSlug: Optional[str] = Field(None, alias='modelSlug')
|
|
12
|
+
arn: Optional[str] = Field(None, alias='arn')
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
from pydantic import Field, ConfigDict
|
|
2
|
-
|
|
3
|
-
from thestage.services.clients.thestage_api.dtos.base_response import TheStageBaseResponse
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class DeployInferenceModelToSagemakerResponse(TheStageBaseResponse):
|
|
7
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
8
|
-
modelId: str = Field(None, alias='modelId')
|
|
9
|
-
ecrImageUrl: str = Field(None, alias='ecrImageUrl')
|
|
10
|
-
s3ArtifactsUrl: str = Field(None, alias='s3ArtifactsUrl')
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
from pydantic import Field, ConfigDict
|
|
2
|
+
|
|
3
|
+
from thestage.services.clients.thestage_api.dtos.base_response import TheStageBaseResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeployInferenceModelToSagemakerResponse(TheStageBaseResponse):
|
|
7
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
8
|
+
modelId: str = Field(None, alias='modelId')
|
|
9
|
+
ecrImageUrl: str = Field(None, alias='ecrImageUrl')
|
|
10
|
+
s3ArtifactsUrl: str = Field(None, alias='s3ArtifactsUrl')
|
|
11
|
+
|
|
12
|
+
|
thestage/services/clients/thestage_api/dtos/inference_controller/get_inference_simulator_request.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
from typing import Optional, List
|
|
2
|
-
|
|
3
|
-
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
-
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class GetInferenceSimulatorRequest(BaseModel):
|
|
9
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
-
|
|
1
|
+
from typing import Optional, List
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
+
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetInferenceSimulatorRequest(BaseModel):
|
|
9
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
+
|
|
11
11
|
slug: Optional[str] = Field(None, alias='slug')
|
thestage/services/clients/thestage_api/dtos/inference_controller/get_inference_simulator_response.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
from typing import Optional, List
|
|
2
|
-
|
|
3
|
-
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
-
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
-
from thestage.services.project.dto.inference_simulator_dto import InferenceSimulatorDto
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class GetInferenceSimulatorResponse(BaseModel):
|
|
10
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
11
|
-
inferenceSimulator: Optional[InferenceSimulatorDto] = Field(None, alias='inferenceSimulator')
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
from typing import Optional, List
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
+
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
+
from thestage.services.project.dto.inference_simulator_dto import InferenceSimulatorDto
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class GetInferenceSimulatorResponse(BaseModel):
|
|
10
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
11
|
+
inferenceSimulator: Optional[InferenceSimulatorDto] = Field(None, alias='inferenceSimulator')
|
|
12
|
+
|
|
13
|
+
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
from typing import Optional, List
|
|
2
|
-
|
|
3
|
-
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
-
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class InferenceSimulatorListForProjectRequest(BaseModel):
|
|
9
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
-
|
|
11
|
-
entityFilterRequest: EntityFilterRequest = Field(None, alias='entityFilterRequest')
|
|
12
|
-
projectSlug: str = Field(None, alias='projectSlug')
|
|
13
|
-
statuses: Optional[List[str]] = Field(None, alias='statuses')
|
|
14
|
-
|
|
1
|
+
from typing import Optional, List
|
|
2
|
+
|
|
3
|
+
from pydantic import Field, ConfigDict, BaseModel
|
|
4
|
+
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.entity_filter_request import EntityFilterRequest
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InferenceSimulatorListForProjectRequest(BaseModel):
|
|
9
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
10
|
+
|
|
11
|
+
entityFilterRequest: EntityFilterRequest = Field(None, alias='entityFilterRequest')
|
|
12
|
+
projectSlug: str = Field(None, alias='projectSlug')
|
|
13
|
+
statuses: Optional[List[str]] = Field(None, alias='statuses')
|
|
14
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
from pydantic import Field, ConfigDict
|
|
3
|
-
|
|
4
|
-
from thestage.services.clients.thestage_api.dtos.base_response import TheStageBaseResponse
|
|
5
|
-
from thestage.services.clients.thestage_api.dtos.paginated_entity_list import PaginatedEntityList
|
|
6
|
-
from thestage.services.project.dto.inference_simulator_dto import InferenceSimulatorDto
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class InferenceSimulatorListForProjectResponse(TheStageBaseResponse):
|
|
10
|
-
model_config = ConfigDict(use_enum_values=True)
|
|
11
|
-
|
|
12
|
-
inferenceSimulators: PaginatedEntityList[InferenceSimulatorDto] = Field(None, alias='inferenceSimulators')
|
|
1
|
+
|
|
2
|
+
from pydantic import Field, ConfigDict
|
|
3
|
+
|
|
4
|
+
from thestage.services.clients.thestage_api.dtos.base_response import TheStageBaseResponse
|
|
5
|
+
from thestage.services.clients.thestage_api.dtos.paginated_entity_list import PaginatedEntityList
|
|
6
|
+
from thestage.services.project.dto.inference_simulator_dto import InferenceSimulatorDto
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class InferenceSimulatorListForProjectResponse(TheStageBaseResponse):
|
|
10
|
+
model_config = ConfigDict(use_enum_values=True)
|
|
11
|
+
|
|
12
|
+
inferenceSimulators: PaginatedEntityList[InferenceSimulatorDto] = Field(None, alias='inferenceSimulators')
|