datacrunch 1.16.0__py3-none-any.whl → 1.17.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.
Files changed (37) hide show
  1. datacrunch/__init__.py +52 -2
  2. datacrunch/datacrunch.py +44 -81
  3. datacrunch-1.17.1.dist-info/METADATA +30 -0
  4. datacrunch-1.17.1.dist-info/RECORD +5 -0
  5. {datacrunch-1.16.0.dist-info → datacrunch-1.17.1.dist-info}/WHEEL +1 -1
  6. datacrunch/InferenceClient/__init__.py +0 -3
  7. datacrunch/InferenceClient/inference_client.py +0 -514
  8. datacrunch/_version.py +0 -6
  9. datacrunch/authentication/__init__.py +0 -0
  10. datacrunch/authentication/authentication.py +0 -105
  11. datacrunch/balance/__init__.py +0 -0
  12. datacrunch/balance/balance.py +0 -50
  13. datacrunch/constants.py +0 -109
  14. datacrunch/containers/__init__.py +0 -33
  15. datacrunch/containers/containers.py +0 -1109
  16. datacrunch/exceptions.py +0 -29
  17. datacrunch/helpers.py +0 -18
  18. datacrunch/http_client/__init__.py +0 -0
  19. datacrunch/http_client/http_client.py +0 -241
  20. datacrunch/images/__init__.py +0 -0
  21. datacrunch/images/images.py +0 -93
  22. datacrunch/instance_types/__init__.py +0 -0
  23. datacrunch/instance_types/instance_types.py +0 -195
  24. datacrunch/instances/__init__.py +0 -0
  25. datacrunch/instances/instances.py +0 -259
  26. datacrunch/locations/__init__.py +0 -0
  27. datacrunch/locations/locations.py +0 -15
  28. datacrunch/ssh_keys/__init__.py +0 -0
  29. datacrunch/ssh_keys/ssh_keys.py +0 -111
  30. datacrunch/startup_scripts/__init__.py +0 -0
  31. datacrunch/startup_scripts/startup_scripts.py +0 -115
  32. datacrunch/volume_types/__init__.py +0 -0
  33. datacrunch/volume_types/volume_types.py +0 -68
  34. datacrunch/volumes/__init__.py +0 -0
  35. datacrunch/volumes/volumes.py +0 -385
  36. datacrunch-1.16.0.dist-info/METADATA +0 -182
  37. datacrunch-1.16.0.dist-info/RECORD +0 -35
datacrunch/constants.py DELETED
@@ -1,109 +0,0 @@
1
- class Actions:
2
- START = 'start'
3
- SHUTDOWN = 'shutdown'
4
- DELETE = 'delete'
5
- HIBERNATE = 'hibernate'
6
- RESTORE = 'restore'
7
-
8
- def __init__(self):
9
- return
10
-
11
-
12
- class VolumeActions:
13
- ATTACH = 'attach'
14
- DETACH = 'detach'
15
- RENAME = 'rename'
16
- INCREASE_SIZE = 'resize'
17
- DELETE = 'delete'
18
- CLONE = 'clone'
19
-
20
- def __init__(self):
21
- return
22
-
23
-
24
- class InstanceStatus:
25
- ORDERED = 'ordered'
26
- RUNNING = 'running'
27
- PROVISIONING = 'provisioning'
28
- OFFLINE = 'offline'
29
- STARTING_HIBERNATION = 'starting_hibernation'
30
- HIBERNATING = 'hibernating'
31
- RESTORING = 'restoring'
32
- ERROR = 'error'
33
-
34
- def __init__(self):
35
- return
36
-
37
-
38
- class VolumeStatus:
39
- ORDERED = 'ordered'
40
- CREATING = 'creating'
41
- ATTACHED = 'attached'
42
- DETACHED = 'detached'
43
- DELETING = 'deleting'
44
- DELETED = 'deleted'
45
- CLONING = 'cloning'
46
-
47
- def __init__(self):
48
- return
49
-
50
-
51
- class VolumeTypes:
52
- NVMe = 'NVMe'
53
- HDD = 'HDD'
54
-
55
- def __init__(self):
56
- return
57
-
58
-
59
- class Locations:
60
- FIN_01: str = 'FIN-01'
61
- FIN_02: str = 'FIN-02'
62
- FIN_03: str = 'FIN-03'
63
- ICE_01: str = 'ICE-01'
64
-
65
- def __init__(self):
66
- return
67
-
68
-
69
- class ErrorCodes:
70
- INVALID_REQUEST = 'invalid_request'
71
- UNAUTHORIZED_REQUEST = 'unauthorized_request'
72
- INSUFFICIENT_FUNDS = 'insufficient_funds'
73
- FORBIDDEN_ACTION = 'forbidden_action'
74
- NOT_FOUND = 'not_found'
75
- SERVER_ERROR = 'server_error'
76
- SERVICE_UNAVAILABLE = 'service_unavailable'
77
-
78
- def __init__(self):
79
- return
80
-
81
-
82
- class Constants:
83
- def __init__(self, base_url, version):
84
- self.instance_actions: Actions = Actions()
85
- """Available actions to perform on an instance"""
86
-
87
- self.volume_actions: VolumeActions = VolumeActions()
88
- """Available actions to perform on a volume"""
89
-
90
- self.instance_status: InstanceStatus = InstanceStatus()
91
- """Possible instance statuses"""
92
-
93
- self.volume_status: VolumeStatus = VolumeStatus()
94
- """Possible volume statuses"""
95
-
96
- self.volume_types: VolumeTypes = VolumeTypes()
97
- """Available volume types"""
98
-
99
- self.locations: Locations = Locations()
100
- """Available locations"""
101
-
102
- self.error_codes: ErrorCodes = ErrorCodes()
103
- """Available error codes"""
104
-
105
- self.base_url: str = base_url
106
- """DataCrunch's Public API URL"""
107
-
108
- self.version: str = version
109
- """Current SDK Version"""
@@ -1,33 +0,0 @@
1
- from .containers import (
2
- EnvVar,
3
- EnvVarType,
4
- ContainerRegistryType,
5
- ContainerDeploymentStatus,
6
- HealthcheckSettings,
7
- EntrypointOverridesSettings,
8
- VolumeMount,
9
- SecretMount,
10
- SharedFileSystemMount,
11
- GeneralStorageMount,
12
- VolumeMountType,
13
- Container,
14
- ContainerRegistryCredentials,
15
- ContainerRegistrySettings,
16
- ComputeResource,
17
- ScalingPolicy,
18
- QueueLoadScalingTrigger,
19
- UtilizationScalingTrigger,
20
- ScalingTriggers,
21
- ScalingOptions,
22
- Deployment,
23
- ReplicaInfo,
24
- Secret,
25
- RegistryCredential,
26
- ContainersService,
27
- BaseRegistryCredentials,
28
- DockerHubCredentials,
29
- GithubCredentials,
30
- GCRCredentials,
31
- AWSECRCredentials,
32
- CustomRegistryCredentials,
33
- )