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.
- datacrunch/__init__.py +52 -2
- datacrunch/datacrunch.py +44 -81
- datacrunch-1.17.1.dist-info/METADATA +30 -0
- datacrunch-1.17.1.dist-info/RECORD +5 -0
- {datacrunch-1.16.0.dist-info → datacrunch-1.17.1.dist-info}/WHEEL +1 -1
- datacrunch/InferenceClient/__init__.py +0 -3
- datacrunch/InferenceClient/inference_client.py +0 -514
- datacrunch/_version.py +0 -6
- datacrunch/authentication/__init__.py +0 -0
- datacrunch/authentication/authentication.py +0 -105
- datacrunch/balance/__init__.py +0 -0
- datacrunch/balance/balance.py +0 -50
- datacrunch/constants.py +0 -109
- datacrunch/containers/__init__.py +0 -33
- datacrunch/containers/containers.py +0 -1109
- datacrunch/exceptions.py +0 -29
- datacrunch/helpers.py +0 -18
- datacrunch/http_client/__init__.py +0 -0
- datacrunch/http_client/http_client.py +0 -241
- datacrunch/images/__init__.py +0 -0
- datacrunch/images/images.py +0 -93
- datacrunch/instance_types/__init__.py +0 -0
- datacrunch/instance_types/instance_types.py +0 -195
- datacrunch/instances/__init__.py +0 -0
- datacrunch/instances/instances.py +0 -259
- datacrunch/locations/__init__.py +0 -0
- datacrunch/locations/locations.py +0 -15
- datacrunch/ssh_keys/__init__.py +0 -0
- datacrunch/ssh_keys/ssh_keys.py +0 -111
- datacrunch/startup_scripts/__init__.py +0 -0
- datacrunch/startup_scripts/startup_scripts.py +0 -115
- datacrunch/volume_types/__init__.py +0 -0
- datacrunch/volume_types/volume_types.py +0 -68
- datacrunch/volumes/__init__.py +0 -0
- datacrunch/volumes/volumes.py +0 -385
- datacrunch-1.16.0.dist-info/METADATA +0 -182
- datacrunch-1.16.0.dist-info/RECORD +0 -35
datacrunch/__init__.py
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
# Compatibility layer for deprecated `datacrunch` package
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from verda import (
|
|
4
|
+
InferenceClient,
|
|
5
|
+
__version__,
|
|
6
|
+
authentication,
|
|
7
|
+
balance,
|
|
8
|
+
constants,
|
|
9
|
+
containers,
|
|
10
|
+
exceptions,
|
|
11
|
+
helpers,
|
|
12
|
+
http_client,
|
|
13
|
+
images,
|
|
14
|
+
instance_types,
|
|
15
|
+
instances,
|
|
16
|
+
locations,
|
|
17
|
+
ssh_keys,
|
|
18
|
+
startup_scripts,
|
|
19
|
+
volume_types,
|
|
20
|
+
volumes,
|
|
21
|
+
)
|
|
22
|
+
from verda import VerdaClient as DataCrunchClient
|
|
23
|
+
|
|
24
|
+
# For old `from datacrunch import *``
|
|
25
|
+
__all__ = [
|
|
26
|
+
'DataCrunchClient',
|
|
27
|
+
'InferenceClient',
|
|
28
|
+
'__version__',
|
|
29
|
+
'authentication',
|
|
30
|
+
'balance',
|
|
31
|
+
'constants',
|
|
32
|
+
'containers',
|
|
33
|
+
'datacrunch',
|
|
34
|
+
'exceptions',
|
|
35
|
+
'helpers',
|
|
36
|
+
'http_client',
|
|
37
|
+
'images',
|
|
38
|
+
'instance_types',
|
|
39
|
+
'instances',
|
|
40
|
+
'locations',
|
|
41
|
+
'ssh_keys',
|
|
42
|
+
'startup_scripts',
|
|
43
|
+
'volume_types',
|
|
44
|
+
'volumes',
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
import warnings
|
|
48
|
+
|
|
49
|
+
warnings.warn(
|
|
50
|
+
'datacrunch is deprecated; use verda package instead: https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md#1170---2025-11-26',
|
|
51
|
+
DeprecationWarning,
|
|
52
|
+
stacklevel=2,
|
|
53
|
+
)
|
datacrunch/datacrunch.py
CHANGED
|
@@ -1,81 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"""Constants"""
|
|
46
|
-
|
|
47
|
-
# Services
|
|
48
|
-
self._authentication: AuthenticationService = AuthenticationService(
|
|
49
|
-
client_id, client_secret, self.constants.base_url
|
|
50
|
-
)
|
|
51
|
-
self._http_client: HTTPClient = HTTPClient(self._authentication, self.constants.base_url)
|
|
52
|
-
|
|
53
|
-
self.balance: BalanceService = BalanceService(self._http_client)
|
|
54
|
-
"""Balance service. Get client balance"""
|
|
55
|
-
|
|
56
|
-
self.images: ImagesService = ImagesService(self._http_client)
|
|
57
|
-
"""Image service"""
|
|
58
|
-
|
|
59
|
-
self.instance_types: InstanceTypesService = InstanceTypesService(self._http_client)
|
|
60
|
-
"""Instance type service"""
|
|
61
|
-
|
|
62
|
-
self.instances: InstancesService = InstancesService(self._http_client)
|
|
63
|
-
"""Instances service. Deploy, delete, hibernate (etc) instances"""
|
|
64
|
-
|
|
65
|
-
self.ssh_keys: SSHKeysService = SSHKeysService(self._http_client)
|
|
66
|
-
"""SSH keys service"""
|
|
67
|
-
|
|
68
|
-
self.startup_scripts: StartupScriptsService = StartupScriptsService(self._http_client)
|
|
69
|
-
"""Startup Scripts service"""
|
|
70
|
-
|
|
71
|
-
self.volume_types: VolumeTypesService = VolumeTypesService(self._http_client)
|
|
72
|
-
"""Volume type service"""
|
|
73
|
-
|
|
74
|
-
self.volumes: VolumesService = VolumesService(self._http_client)
|
|
75
|
-
"""Volume service. Create, attach, detach, get, rename, delete volumes"""
|
|
76
|
-
|
|
77
|
-
self.locations: LocationsService = LocationsService(self._http_client)
|
|
78
|
-
"""Locations service. Get locations"""
|
|
79
|
-
|
|
80
|
-
self.containers: ContainersService = ContainersService(self._http_client, inference_key)
|
|
81
|
-
"""Containers service. Deploy, manage, and monitor container deployments"""
|
|
1
|
+
# Compatibility layer for deprecated `datacrunch.datacrunch` package
|
|
2
|
+
|
|
3
|
+
from verda import VerdaClient as DataCrunchClient
|
|
4
|
+
from verda._version import __version__
|
|
5
|
+
from verda.authentication.authentication import AuthenticationService
|
|
6
|
+
from verda.balance.balance import BalanceService
|
|
7
|
+
from verda.constants import Constants
|
|
8
|
+
from verda.containers.containers import ContainersService
|
|
9
|
+
from verda.http_client.http_client import HTTPClient
|
|
10
|
+
from verda.images.images import ImagesService
|
|
11
|
+
from verda.instance_types.instance_types import InstanceTypesService
|
|
12
|
+
from verda.instances.instances import InstancesService
|
|
13
|
+
from verda.locations.locations import LocationsService
|
|
14
|
+
from verda.ssh_keys.ssh_keys import SSHKeysService
|
|
15
|
+
from verda.startup_scripts.startup_scripts import StartupScriptsService
|
|
16
|
+
from verda.volume_types.volume_types import VolumeTypesService
|
|
17
|
+
from verda.volumes.volumes import VolumesService
|
|
18
|
+
|
|
19
|
+
# for `from datacrunch.datacrunch import *`
|
|
20
|
+
__all__ = [
|
|
21
|
+
'AuthenticationService',
|
|
22
|
+
'BalanceService',
|
|
23
|
+
'Constants',
|
|
24
|
+
'ContainersService',
|
|
25
|
+
'DataCrunchClient',
|
|
26
|
+
'HTTPClient',
|
|
27
|
+
'ImagesService',
|
|
28
|
+
'InstanceTypesService',
|
|
29
|
+
'InstancesService',
|
|
30
|
+
'LocationsService',
|
|
31
|
+
'SSHKeysService',
|
|
32
|
+
'StartupScriptsService',
|
|
33
|
+
'VolumeTypesService',
|
|
34
|
+
'VolumesService',
|
|
35
|
+
'__version__',
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
import warnings
|
|
39
|
+
|
|
40
|
+
warnings.warn(
|
|
41
|
+
'datacrunch is deprecated; use verda package instead: https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md#1170---2025-11-26',
|
|
42
|
+
DeprecationWarning,
|
|
43
|
+
stacklevel=2,
|
|
44
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: datacrunch
|
|
3
|
+
Version: 1.17.1
|
|
4
|
+
Summary: datacrunch is now verda
|
|
5
|
+
Author: Verda Cloud Oy
|
|
6
|
+
Author-email: Verda Cloud Oy <info@verda.com>
|
|
7
|
+
Classifier: Development Status :: 7 - Inactive
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Natural Language :: English
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Requires-Dist: verda==1.17.1
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Project-URL: Changelog, https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md
|
|
21
|
+
Project-URL: Documentation, https://datacrunch-python.readthedocs.io/
|
|
22
|
+
Project-URL: Homepage, https://github.com/verda-cloud
|
|
23
|
+
Project-URL: Repository, https://github.com/verda-cloud/sdk-python
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# datacrunch is now verda
|
|
27
|
+
|
|
28
|
+
This package has been [renamed](https://verda.com/blog/datacrunch-is-changing-its-name-to-verda). Use `pip install verda` or `uv add verda` instead.
|
|
29
|
+
|
|
30
|
+
New package: https://pypi.org/project/verda/
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
datacrunch/__init__.py,sha256=LLVG36knotjujxtucyiuLyCagKOQHCtuwMxgWXPkAOg,1034
|
|
2
|
+
datacrunch/datacrunch.py,sha256=km7nY38skCriD4pfKsksTkvGeVUwWkMuQrzb-eQf0U8,1518
|
|
3
|
+
datacrunch-1.17.1.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
|
|
4
|
+
datacrunch-1.17.1.dist-info/METADATA,sha256=ur8v0nRpL7OXL5kIQBEw1rzv86xAl65MJ66eziVR1LQ,1287
|
|
5
|
+
datacrunch-1.17.1.dist-info/RECORD,,
|