verda 0.2.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.
verda/__init__.py CHANGED
@@ -1,22 +1,4 @@
1
- import warnings
2
-
1
+ from verda._verda import VerdaClient
3
2
  from verda._version import __version__
4
- from verda.verda import VerdaClient
5
-
6
-
7
- class _DataCrunchClientAlias:
8
- def __call__(self, *args, **kwargs):
9
- warnings.warn(
10
- 'DataCrunchClient is deprecated; use VerdaClient instead.',
11
- DeprecationWarning,
12
- stacklevel=2,
13
- )
14
- return VerdaClient(*args, **kwargs)
15
-
16
-
17
- # creates a callable that behaves like the class
18
- DataCrunchClient = _DataCrunchClientAlias()
19
- DataCrunchClient.__name__ = 'DataCrunchClient'
20
- DataCrunchClient.__doc__ = VerdaClient.__doc__
21
3
 
22
- __all__ = ['DataCrunchClient', 'VerdaClient', '__version__']
4
+ __all__ = ['VerdaClient']
@@ -21,7 +21,7 @@ class VerdaClient:
21
21
  self,
22
22
  client_id: str,
23
23
  client_secret: str,
24
- base_url: str = 'https://api.datacrunch.io/v1',
24
+ base_url: str = 'https://api.verda.com/v1',
25
25
  inference_key: str | None = None,
26
26
  ) -> None:
27
27
  """Verda client.
@@ -30,7 +30,7 @@ class VerdaClient:
30
30
  :type client_id: str
31
31
  :param client_secret: client secret
32
32
  :type client_secret: str
33
- :param base_url: base url for all the endpoints, optional, defaults to "https://api.datacrunch.io/v1"
33
+ :param base_url: base url for all the endpoints, optional, defaults to "https://api.verda.com/v1"
34
34
  :type base_url: str, optional
35
35
  :param inference_key: inference key, optional
36
36
  :type inference_key: str, optional
@@ -235,8 +235,8 @@ class HTTPClient:
235
235
 
236
236
  Example:
237
237
  if the relative url is '/balance'
238
- and the base url is 'https://api.datacrunch.io/v1'
239
- then this method will return 'https://api.datacrunch.io/v1/balance'
238
+ and the base url is 'https://api.verda.com/v1'
239
+ then this method will return 'https://api.verda.com/v1/balance'
240
240
 
241
241
  :param url: a relative url path
242
242
  :type url: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: verda
3
- Version: 0.2.0
3
+ Version: 1.17.1
4
4
  Summary: Official Python SDK for Verda (formerly DataCrunch) Public API
5
5
  Author: Verda Cloud Oy
6
6
  Author-email: Verda Cloud Oy <info@verda.com>
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.14
18
18
  Requires-Dist: requests>=2.25.1,<3
19
19
  Requires-Dist: dataclasses-json>=0.6.7
20
20
  Requires-Python: >=3.10
21
- Project-URL: Changelog, https://datacrunch-python.readthedocs.io/en/latest/changelog.html
21
+ Project-URL: Changelog, https://github.com/verda-cloud/sdk-python/blob/master/CHANGELOG.md
22
22
  Project-URL: Documentation, https://datacrunch-python.readthedocs.io/
23
23
  Project-URL: Homepage, https://github.com/verda-cloud
24
24
  Project-URL: Repository, https://github.com/verda-cloud/sdk-python
@@ -38,7 +38,7 @@ The official [Verda](https://verda.com) (formerly DataCrunch) Python SDK.
38
38
 
39
39
  The SDK's documentation is available on [ReadTheDocs](https://datacrunch-python.readthedocs.io/en/latest/)
40
40
 
41
- Verda Public API documentation [is available here](https://api.datacrunch.io/v1/docs).
41
+ Verda Public API documentation [is available here](https://api.verda.com/v1/docs).
42
42
 
43
43
  ## Getting Started - Using the SDK:
44
44
 
@@ -46,13 +46,13 @@ Verda Public API documentation [is available here](https://api.datacrunch.io/v1/
46
46
 
47
47
  ```bash
48
48
  # via pip
49
- pip3 install verda
49
+ pip install verda
50
50
 
51
51
  # via uv
52
52
  uv add verda
53
53
  ```
54
54
 
55
- - Generate your client credentials - [instructions in the public API docs](https://api.datacrunch.io/v1/docs#description/quick-start-guide).
55
+ - Generate your client credentials - [instructions in the public API docs](https://api.verda.com/v1/docs#description/quick-start-guide).
56
56
 
57
57
 
58
58
  - Add your client id and client secret to an environment variable (don't want it to be hardcoded):
@@ -143,7 +143,7 @@ Create a file in the root directory of the project:
143
143
 
144
144
  ```python
145
145
  # example.py
146
- from verda.verda import VerdaClient
146
+ from verda import VerdaClient
147
147
 
148
148
  CLIENT_SECRET = 'secret'
149
149
  CLIENT_ID = 'your-id'
@@ -1,6 +1,7 @@
1
1
  verda/InferenceClient/__init__.py,sha256=oe7RQfoKbKJnIFWOt6TNtdzjXk5Gcl4-smO5DjLE6M0,117
2
2
  verda/InferenceClient/inference_client.py,sha256=Lqq7NxpisZdRauThoJCNOnRLdh2UdQGUpnFSAy5eqL4,17209
3
- verda/__init__.py,sha256=b-GHju7CuRktp2jbyQ0b-HOh1LrgXE5fa_fAvRJtl4k,623
3
+ verda/__init__.py,sha256=GyYkf1YXGf8vGsFeaAqIBS5zTXS6Tn8iZjzArPLiFdc,103
4
+ verda/_verda.py,sha256=Ki7jl4459g2Tz_3fG3vWIs1OsfECy--o3DiTD50Mg_g,3391
4
5
  verda/_version.py,sha256=T11BBcYkWMV48TEHtEI08YyNekJT7iKT6JgY-3Xg6Ws,160
5
6
  verda/authentication/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
7
  verda/authentication/authentication.py,sha256=rCp46zoQNMoNyJZRIcfXLphZNk18LzMh8a4PgO9-A6Q,3506
@@ -9,11 +10,10 @@ verda/balance/balance.py,sha256=tMuulgL7U4pSPG2hIts1UkB9KShdqLcrjnR3uhYj7KM,1221
9
10
  verda/constants.py,sha256=cL0rj35X1VS-IHisqxwDgn8PXUjGjfuqUqotS4GB98E,2687
10
11
  verda/containers/__init__.py,sha256=I6_H8w90MzlHi4MQ-Oo3R7kUopgU4yLRkaSjOAB6jWI,744
11
12
  verda/containers/containers.py,sha256=0wgviFHMdO0O0fzZNz5bIgjWhbuL3R17lQmDToBnmSY,35666
12
- verda/datacrunch.py,sha256=m1AiQbAm3rCBfDnJesuRzD_NA1IiqGWW73V4dd7493I,1376
13
13
  verda/exceptions.py,sha256=B0GD8nHDDvBT8meFnrott8kEZtn8PF6eID6Xcdb8RQE,786
14
14
  verda/helpers.py,sha256=qvpWNoh1jqfBGxsYPFTNs_fDeF_H7WsalKeCXTH-bDw,657
15
15
  verda/http_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- verda/http_client/http_client.py,sha256=hfzzt0EwPKM6GWZGIZAnkJD-GY3_ZtnuExQXY25R6Xk,8350
16
+ verda/http_client/http_client.py,sha256=ywyJK-PBfHRbatKTl2uqp8UHcpLBrqwyMRL-0tKXv7s,8342
17
17
  verda/images/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  verda/images/images.py,sha256=mmuvubOTdnkvVeWX3wkOjm2sQXTpQ0Z-kBqQUL0t5xo,2156
19
19
  verda/instance_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -26,11 +26,10 @@ verda/ssh_keys/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  verda/ssh_keys/ssh_keys.py,sha256=5K9UYiNUtKNaUuRb_wGNVMgOJj40YLXlkZaOGoROxio,2868
27
27
  verda/startup_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  verda/startup_scripts/startup_scripts.py,sha256=Q5i5NESB_DOJ9PjCNQFYQubn1CsankMudD217TbfMB8,3129
29
- verda/verda.py,sha256=etnsfrgJ7JfUxUTpDBgVhDEsogXO7oDMdX6G4SrgaVg,3399
30
29
  verda/volume_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
30
  verda/volume_types/volume_types.py,sha256=unvFrhWONbOPcsFzf2Oo29IZ8cC5czNRxuAO0dNiVko,1833
32
31
  verda/volumes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
32
  verda/volumes/volumes.py,sha256=V_W51f25HkLrr_PTJwfH4Z532xEZlHaG3MxOpNAoy7Q,11536
34
- verda-0.2.0.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
35
- verda-0.2.0.dist-info/METADATA,sha256=DfNeWfgCJzCQaa7w7XGj3a6a8dRvDbfspy9XD7fgP1M,5434
36
- verda-0.2.0.dist-info/RECORD,,
33
+ verda-1.17.1.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
34
+ verda-1.17.1.dist-info/METADATA,sha256=fGC0WSBizIOatrKRszAoJcTWoiaJjDCgIjcRzO5TtPw,5421
35
+ verda-1.17.1.dist-info/RECORD,,
verda/datacrunch.py DELETED
@@ -1,43 +0,0 @@
1
- # Frozen, minimal compatibility layer for old DataCrunch API
2
-
3
- from verda import 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
- __all__ = [
20
- 'AuthenticationService',
21
- 'BalanceService',
22
- 'Constants',
23
- 'ContainersService',
24
- 'DataCrunchClient',
25
- 'HTTPClient',
26
- 'ImagesService',
27
- 'InstanceTypesService',
28
- 'InstancesService',
29
- 'LocationsService',
30
- 'SSHKeysService',
31
- 'StartupScriptsService',
32
- 'VolumeTypesService',
33
- 'VolumesService',
34
- '__version__',
35
- ]
36
-
37
- import warnings
38
-
39
- warnings.warn(
40
- 'datacrunch.datacrunch is deprecated; use `from verda` instead.',
41
- DeprecationWarning,
42
- stacklevel=2,
43
- )
File without changes