Skip to content

Commit a4b05f7

Browse files
committed
DataCrunch -> Verda where backwards compatibility is not needed
1 parent 5dadb21 commit a4b05f7

File tree

61 files changed

+224
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+224
-224
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
Any contributions are welcome!
44

5-
Open new issues at https://github.com/DataCrunch-io/datacrunch-python/issues.
5+
Open new issues at https://github.com/verda-cloud/sdk-python/issues.
66

77
You can open pull requests by following the steps:
88

99
## Code Contribution
1010

1111
Prerequisite: install [`uv`](https://docs.astral.sh/uv/).
1212

13-
1. Fork the `datacrunch-python` repo on GitHub.
13+
1. Fork this repo on GitHub.
1414

1515
2. Clone your fork locally:
1616

1717
```bash
18-
git clone git@github.com:{your_username}/datacrunch-python.git
19-
cd datacrunch-python
18+
git clone git@github.com:{your_username}/sdk-python.git
19+
cd sdk-python
2020
```
2121

2222
3. Set up local environment and install dependencies:
@@ -80,6 +80,6 @@ To release a new version:
8080
git push --tags
8181
```
8282

83-
4. [Draft and publish](https://github.com/DataCrunch-io/datacrunch-python/releases) a new release.
83+
4. [Draft and publish](https://github.com/verda-cloud/sdk-python/releases) a new release.
8484

85-
5. Check that package is automatically published to [PyPI](https://pypi.org/project/datacrunch/) via [GitHub action](https://github.com/DataCrunch-io/datacrunch-python/actions/workflows/publish_package.yml).
85+
5. Check that package is automatically published to [PyPI](https://pypi.org/project/datacrunch/) via [GitHub action](https://github.com/verda-cloud/sdk-python/actions/workflows/publish_package.yml).

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Verda (formerly DataCrunch) Python SDK
1+
# Verda Python SDK
22

3-
[<img src='https://github.com/DataCrunch-io/datacrunch-python/workflows/Unit%20Tests/badge.svg'>](https://github.com/DataCrunch-io/datacrunch-python/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amaster)
4-
[<img src='https://github.com/DataCrunch-io/datacrunch-python/workflows/Code%20Style/badge.svg'>](https://github.com/DataCrunch-io/datacrunch-python/actions?query=workflow%3A%22Code+Style%22+branch%3Amaster)
3+
[<img src='https://github.com/verda-cloud/sdk-python/workflows/Unit%20Tests/badge.svg'>](https://github.com/verda-cloud/sdk-python/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amaster)
4+
[<img src='https://github.com/verda-cloud/sdk-python/workflows/Code%20Style/badge.svg'>](https://github.com/verda-cloud/sdk-python/actions?query=workflow%3A%22Code+Style%22+branch%3Amaster)
55
[<img src="https://codecov.io/gh/DataCrunch-io/datacrunch-python/branch/master/graph/badge.svg?token=5X5KTYSSPK">](https://codecov.io/gh/DataCrunch-io/datacrunch-python)
66
[<img src='https://readthedocs.org/projects/datacrunch-python/badge/?version=latest'>](https://datacrunch-python.readthedocs.io/en/latest/)
7-
[<img src='https://img.shields.io/github/license/DataCrunch-io/datacrunch-python'>](https://github.com/DataCrunch-io/datacrunch-python/blob/master/LICENSE)
7+
[<img src='https://img.shields.io/github/license/DataCrunch-io/datacrunch-python'>](https://github.com/verda-cloud/sdk-python/blob/master/LICENSE)
88
[<img src='https://img.shields.io/pypi/v/datacrunch?logo=python'>](https://pypi.org/project/datacrunch/)
99
[<img src='https://img.shields.io/pypi/pyversions/datacrunch'>](https://pypi.org/project/datacrunch/)
1010

@@ -20,10 +20,10 @@ Verda Public API documentation [is available here](https://api.datacrunch.io/v1/
2020

2121
```bash
2222
# via pip
23-
pip3 install datacrunch
23+
pip3 install verda
2424

2525
# via uv
26-
uv add datacrunch
26+
uv add verda
2727
```
2828

2929
- Generate your client credentials - [instructions in the public API docs](https://api.datacrunch.io/v1/docs#description/quick-start-guide).
@@ -34,8 +34,8 @@ Verda Public API documentation [is available here](https://api.datacrunch.io/v1/
3434
Linux (bash):
3535

3636
```bash
37-
export DATACRUNCH_CLIENT_ID=YOUR_ID_HERE
38-
export DATACRUNCH_CLIENT_SECRET=YOUR_SECRET_HERE
37+
export VERDA_CLIENT_ID=YOUR_ID_HERE
38+
export VERDA_CLIENT_SECRET=YOUR_SECRET_HERE
3939
```
4040

4141
- To enable sending inference requests from SDK you must generate an inference key - [Instructions on inference authorization](https://docs.datacrunch.io/inference/authorization)
@@ -46,7 +46,7 @@ Verda Public API documentation [is available here](https://api.datacrunch.io/v1/
4646
Linux (bash):
4747

4848
```bash
49-
export DATACRUNCH_INFERENCE_KEY=YOUR_API_KEY_HERE
49+
export VERDA_INFERENCE_KEY=YOUR_API_KEY_HERE
5050
```
5151

5252
Other platforms:
@@ -58,11 +58,11 @@ Verda Public API documentation [is available here](https://api.datacrunch.io/v1/
5858

5959
```python
6060
import os
61-
from datacrunch import DataCrunchClient
61+
from verda import DataCrunchClient
6262

6363
# Get credentials from environment variables
64-
CLIENT_ID = os.environ.get('DATACRUNCH_CLIENT_ID')
65-
CLIENT_SECRET = os.environ['DATACRUNCH_CLIENT_SECRET']
64+
CLIENT_ID = os.environ.get('VERDA_CLIENT_ID')
65+
CLIENT_SECRET = os.environ['VERDA_CLIENT_SECRET']
6666

6767
# Create datcrunch client
6868
datacrunch = DataCrunchClient(CLIENT_ID, CLIENT_SECRET)
@@ -92,8 +92,8 @@ Prerequisite: install [`uv`](https://docs.astral.sh/uv/).
9292
Clone the repository, create local environment and install dependencies:
9393

9494
```bash
95-
git clone git@github.com:DataCrunch-io/datacrunch-python.git
96-
cd datacrunch-python
95+
git clone git@github.com:verda-cloud/sdk-python.git
96+
cd sdk-python
9797
uv sync
9898
```
9999

@@ -117,7 +117,7 @@ Create a file in the root directory of the project:
117117

118118
```python
119119
# example.py
120-
from datacrunch.datacrunch import DataCrunchClient
120+
from verda.datacrunch import DataCrunchClient
121121

122122
CLIENT_SECRET = 'secret'
123123
CLIENT_ID = 'your-id'

datacrunch/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from datacrunch._version import __version__
2-
from datacrunch.datacrunch import DataCrunchClient
1+
from verda._version import __version__
2+
from verda.datacrunch import DataCrunchClient

datacrunch/authentication/authentication.py

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

33
import requests
44

5-
from datacrunch.http_client.http_client import handle_error
5+
from verda.http_client.http_client import handle_error
66

77
TOKEN_ENDPOINT = '/oauth2/token'
88

datacrunch/containers/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
from dataclasses_json import Undefined, dataclass_json # type: ignore
1414

15-
from datacrunch.http_client.http_client import HTTPClient
16-
from datacrunch.InferenceClient import InferenceClient, InferenceResponse
15+
from verda.http_client.http_client import HTTPClient
16+
from verda.InferenceClient import InferenceClient, InferenceResponse
1717

1818
# API endpoints
1919
CONTAINER_DEPLOYMENTS_ENDPOINT = '/container-deployments'

datacrunch/datacrunch.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
from datacrunch._version import __version__
2-
from datacrunch.authentication.authentication import AuthenticationService
3-
from datacrunch.balance.balance import BalanceService
4-
from datacrunch.constants import Constants
5-
from datacrunch.containers.containers import ContainersService
6-
from datacrunch.http_client.http_client import HTTPClient
7-
from datacrunch.images.images import ImagesService
8-
from datacrunch.instance_types.instance_types import InstanceTypesService
9-
from datacrunch.instances.instances import InstancesService
10-
from datacrunch.locations.locations import LocationsService
11-
from datacrunch.ssh_keys.ssh_keys import SSHKeysService
12-
from datacrunch.startup_scripts.startup_scripts import StartupScriptsService
13-
from datacrunch.volume_types.volume_types import VolumeTypesService
14-
from datacrunch.volumes.volumes import VolumesService
1+
from verda._version import __version__
2+
from verda.authentication.authentication import AuthenticationService
3+
from verda.balance.balance import BalanceService
4+
from verda.constants import Constants
5+
from verda.containers.containers import ContainersService
6+
from verda.http_client.http_client import HTTPClient
7+
from verda.images.images import ImagesService
8+
from verda.instance_types.instance_types import InstanceTypesService
9+
from verda.instances.instances import InstancesService
10+
from verda.locations.locations import LocationsService
11+
from verda.ssh_keys.ssh_keys import SSHKeysService
12+
from verda.startup_scripts.startup_scripts import StartupScriptsService
13+
from verda.volume_types.volume_types import VolumeTypesService
14+
from verda.volumes.volumes import VolumesService
1515

1616

1717
class DataCrunchClient:

datacrunch/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class APIException(Exception):
2-
"""This exception is raised if there was an error from datacrunch's API.
2+
"""This exception is raised if there was an error from verda's API.
33
44
Could be an invalid input, token etc.
55

datacrunch/http_client/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import requests
44

5-
from datacrunch._version import __version__
6-
from datacrunch.exceptions import APIException
5+
from verda._version import __version__
6+
from verda.exceptions import APIException
77

88

99
def handle_error(response: requests.Response) -> None:

datacrunch/images/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datacrunch.helpers import stringify_class_object_properties
1+
from verda.helpers import stringify_class_object_properties
22

33
IMAGES_ENDPOINT = '/images'
44

datacrunch/instances/instances.py

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

66
from dataclasses_json import dataclass_json
77

8-
from datacrunch.constants import InstanceStatus, Locations
8+
from verda.constants import InstanceStatus, Locations
99

1010
INSTANCES_ENDPOINT = '/instances'
1111

0 commit comments

Comments
 (0)