Skip to content

Commit ae21fba

Browse files
committed
change default base url to api.verda.com
1 parent 9c63fe6 commit ae21fba

File tree

10 files changed

+15
-14
lines changed

10 files changed

+15
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ verda.instances.create(...)
5151

5252
- Refactor `instance_types.py` to use dataclass
5353
- Put back support for Python 3.10
54+
- Default API base URL is now `https://api.verda.com/v1`
5455

5556
## [1.16.0] - 2025-10-27
5657

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The official [Verda](https://verda.com) (formerly DataCrunch) Python SDK.
1212

1313
The SDK's documentation is available on [ReadTheDocs](https://datacrunch-python.readthedocs.io/en/latest/)
1414

15-
Verda Public API documentation [is available here](https://api.datacrunch.io/v1/docs).
15+
Verda Public API documentation [is available here](https://api.verda.com/v1/docs).
1616

1717
## Getting Started - Using the SDK:
1818

@@ -26,7 +26,7 @@ Verda Public API documentation [is available here](https://api.datacrunch.io/v1/
2626
uv add verda
2727
```
2828

29-
- Generate your client credentials - [instructions in the public API docs](https://api.datacrunch.io/v1/docs#description/quick-start-guide).
29+
- Generate your client credentials - [instructions in the public API docs](https://api.verda.com/v1/docs#description/quick-start-guide).
3030

3131

3232
- Add your client id and client secret to an environment variable (don't want it to be hardcoded):

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Verda Python SDK
88

99
Welcome to the documentation for the official Verda (formerly Datacrunch) Python SDK.
1010

11-
The Public API documentation is `available here <https://api.datacrunch.io/v1/docs>`_
11+
The Public API documentation is `available here <https://api.verda.com/v1/docs>`_
1212

1313
The Python SDK is open-sourced and can be `found here <https://github.com/verda-cloud/sdk-python>`_
1414

1515
Basic Examples:
1616
---------------
1717

18-
First, get your client credentials - `instructions available here <https://api.datacrunch.io/v1/docs#description/quick-start-guide>`_.
18+
First, get your client credentials - `instructions available here <https://api.verda.com/v1/docs#description/quick-start-guide>`_.
1919

2020
Deploy a new instance:
2121

tests/unit_tests/authentication/test_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
INVALID_REQUEST = 'invalid_request'
1111
INVALID_REQUEST_MESSAGE = 'Your existence is invalid'
1212

13-
BASE_URL = 'https://api-testing.datacrunch.io/v1'
13+
BASE_URL = 'https://api.example.com/v1'
1414
CLIENT_ID = '0123456789xyz'
1515
CLIENT_SECRET = 'zyx987654321'
1616

tests/unit_tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from verda.http_client.http_client import HTTPClient
66

7-
BASE_URL = 'https://api-testing.datacrunch.io/v1'
7+
BASE_URL = 'https://api.example.com/v1'
88
ACCESS_TOKEN = 'test-token'
99
CLIENT_ID = '0123456789xyz'
1010
CLIENT_SECRET = '0123456789xyz'

tests/unit_tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from verda.exceptions import APIException
55
from verda.verda import VerdaClient
66

7-
BASE_URL = 'https://api-testing.datacrunch.io/v1'
7+
BASE_URL = 'https://api.example.com/v1'
88

99
response_json = {
1010
'access_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJoZXkiOiJ5b3UgYWN1YWxseSBjaGVja2VkIHRoaXM_In0.0RjcdKQ1NJP9gbRyXITE6LFFLwKGzeeshuubnkkfkb8',
@@ -28,7 +28,7 @@ def test_client(self):
2828

2929
def test_client_with_default_base_url(self):
3030
# arrange - add response mock
31-
DEFAULT_BASE_URL = 'https://api.datacrunch.io/v1'
31+
DEFAULT_BASE_URL = 'https://api.verda.com/v1'
3232
responses.add(
3333
responses.POST,
3434
DEFAULT_BASE_URL + '/oauth2/token',

tests/unit_tests/test_datacrunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
import responses # https://github.com/getsentry/responses
55

6-
BASE_URL = 'https://api-testing.datacrunch.io/v1'
6+
BASE_URL = 'https://api.example.com/v1'
77

88
response_json = {
99
'access_token': 'SECRET',

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

verda/http_client/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def _add_base_url(self, url: str) -> str:
235235
236236
Example:
237237
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'
240240
241241
:param url: a relative url path
242242
:type url: str

verda/verda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(
2121
self,
2222
client_id: str,
2323
client_secret: str,
24-
base_url: str = 'https://api.datacrunch.io/v1',
24+
base_url: str = 'https://api.verda.com/v1',
2525
inference_key: str | None = None,
2626
) -> None:
2727
"""Verda client.
@@ -30,7 +30,7 @@ def __init__(
3030
:type client_id: str
3131
:param client_secret: client secret
3232
: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"
3434
:type base_url: str, optional
3535
:param inference_key: inference key, optional
3636
:type inference_key: str, optional

0 commit comments

Comments
 (0)