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/__init__.py CHANGED
@@ -1,3 +1,53 @@
1
- from datacrunch.datacrunch import DataCrunchClient
1
+ # Compatibility layer for deprecated `datacrunch` package
2
2
 
3
- from datacrunch._version import __version__
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
- from datacrunch.authentication.authentication import AuthenticationService
2
- from datacrunch.balance.balance import BalanceService
3
- from datacrunch.http_client.http_client import HTTPClient
4
- from datacrunch.images.images import ImagesService
5
- from datacrunch.instance_types.instance_types import InstanceTypesService
6
- from datacrunch.instances.instances import InstancesService
7
- from datacrunch.ssh_keys.ssh_keys import SSHKeysService
8
- from datacrunch.startup_scripts.startup_scripts import StartupScriptsService
9
- from datacrunch.volume_types.volume_types import VolumeTypesService
10
- from datacrunch.volumes.volumes import VolumesService
11
- from datacrunch.containers.containers import ContainersService
12
- from datacrunch.constants import Constants
13
- from datacrunch.locations.locations import LocationsService
14
- from datacrunch._version import __version__
15
-
16
-
17
- class DataCrunchClient:
18
- """Client for interacting with DataCrunch's public API"""
19
-
20
- def __init__(
21
- self,
22
- client_id: str,
23
- client_secret: str,
24
- base_url: str = 'https://api.datacrunch.io/v1',
25
- inference_key: str = None,
26
- ) -> None:
27
- """The DataCrunch client
28
-
29
- :param client_id: client id
30
- :type client_id: str
31
- :param client_secret: client secret
32
- :type client_secret: str
33
- :param base_url: base url for all the endpoints, optional, defaults to "https://api.datacrunch.io/v1"
34
- :type base_url: str, optional
35
- :param inference_key: inference key, optional
36
- :type inference_key: str, optional
37
- """
38
-
39
- # Validate that client_id and client_secret are not empty
40
- if not client_id or not client_secret:
41
- raise ValueError('client_id and client_secret must be provided')
42
-
43
- # Constants
44
- self.constants: Constants = Constants(base_url, __version__)
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,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.9.5
2
+ Generator: uv 0.9.11
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,3 +0,0 @@
1
- from .inference_client import InferenceClient, InferenceResponse
2
-
3
- __all__ = ['InferenceClient', 'InferenceResponse']