Skip to content

Commit 87b9e82

Browse files
authored
Merge pull request #57 from verda-cloud/rename-to-verda
Rename DataCrunch to Verda
2 parents 53716ff + ae21fba commit 87b9e82

113 files changed

Lines changed: 998 additions & 720 deletions

File tree

Some content is hidden

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

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Publish verda to PyPI"
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-24.04
10+
11+
environment:
12+
name: pypi
13+
14+
permissions:
15+
id-token: write
16+
contents: read
17+
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
23+
with:
24+
version: "0.9.11"
25+
26+
- name: Set up Python
27+
run: uv python install
28+
29+
- name: Build
30+
run: uv build
31+
32+
# check that basic features work and we didn't miss to include crucial files
33+
- name: Smoke test (wheel)
34+
run: uv run --isolated --no-project --with dist/*.whl --with "responses==0.25.8" tests/smoke.py
35+
36+
- name: Smoke test (source distribution)
37+
run: uv run --isolated --no-project --with dist/*.tar.gz --with "responses==0.25.8" tests/smoke.py
38+
39+
# we use Trusted publishing, no keys necessary: https://docs.astral.sh/uv/guides/integration/github/#publishing-to-pypi
40+
- name: Publish
41+
run: uv publish

.github/workflows/publish_package.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-24.04
1515
strategy:
1616
matrix:
17-
python-version: ['3.11', '3.12', '3.13', '3.14']
17+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
1818

1919
steps:
2020
- uses: actions/checkout@v5

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,51 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Highlights
11+
12+
- `datacrunch` package is now `verda`, because the company [changed the name to Verda](https://verda.com/blog/datacrunch-is-changing-its-name-to-verda). Original `datacrunch` package does not go anywhere and would continue tracking `verda` releases.
13+
14+
### Deprecated
15+
16+
- `DataCrunchClient` and `datacrunch` are deprecated, please change your imports to `VerdaClient` and `verda`.
17+
18+
Was:
19+
20+
```shell
21+
uv add datacrunch
22+
pip3 install datacrunch
23+
```
24+
25+
```python
26+
from datacrunch import DataCrunchClient
27+
28+
datacrunch = DataCrunchClient(...)
29+
datacrunch.instances.create(...)
30+
```
31+
32+
Now:
33+
34+
```shell
35+
uv add verda
36+
pip3 install verda
37+
```
38+
39+
```python
40+
from verda import VerdaClient
41+
42+
verda = VerdaClient(...)
43+
verda.instances.create(...)
44+
```
45+
1046
### Added
1147

1248
- Added shared filesystem (SFS) type constant and example
1349

1450
### Changed
1551

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

1856
## [1.16.0] - 2025-10-27
1957

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/verda/) via [GitHub action](https://github.com/verda-cloud/sdk-python/actions/workflows/publish_package.yml).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 DataCrunch Oy
3+
Copyright (c) 2025 Verda Cloud Oy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
# 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)
5-
[<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)
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)
5+
[<img src="https://codecov.io/gh/verda-cloud/sdk-python/branch/master/graph/badge.svg?token=5X5KTYSSPK">](https://codecov.io/gh/verda-cloud/sdk-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)
8-
[<img src='https://img.shields.io/pypi/v/datacrunch?logo=python'>](https://pypi.org/project/datacrunch/)
9-
[<img src='https://img.shields.io/pypi/pyversions/datacrunch'>](https://pypi.org/project/datacrunch/)
7+
[<img src='https://img.shields.io/github/license/verda-cloud/sdk-python'>](https://github.com/verda-cloud/sdk-python/blob/master/LICENSE)
8+
[<img src='https://img.shields.io/pypi/v/verda?logo=python'>](https://pypi.org/project/verda/)
9+
[<img src='https://img.shields.io/pypi/pyversions/verda'>](https://pypi.org/project/verda/)
1010

11-
The official [DataCrunch.io](https://datacrunch.io) Python SDK.
11+
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-
DataCrunch's 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

1919
- Install:
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

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):
3333

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

41-
- To enable sending inference requests from SDK you must generate an inference key - [Instructions on inference authorization](https://docs.datacrunch.io/inference/authorization)
41+
- To enable sending inference requests from SDK you must generate an inference key - [Instructions on inference authorization](https://docs.verda.com/inference/authorization)
4242

4343

4444
- Add your inference key to an environment variable
4545

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,27 +58,27 @@ DataCrunch's Public API documentation [is available here](https://api.datacrunch
5858

5959
```python
6060
import os
61-
from datacrunch import DataCrunchClient
61+
from verda import VerdaClient
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

67-
# Create datcrunch client
68-
datacrunch = DataCrunchClient(CLIENT_ID, CLIENT_SECRET)
67+
# Create client
68+
verda = VerdaClient(CLIENT_ID, CLIENT_SECRET)
6969

7070
# Get all SSH keys
71-
ssh_keys = [key.id for key in datacrunch.ssh_keys.get()]
71+
ssh_keys = [key.id for key in verda.ssh_keys.get()]
7272

7373
# Create a new instance
74-
instance = datacrunch.instances.create(instance_type='1V100.6V',
75-
image='ubuntu-24.04-cuda-12.8-open-docker',
76-
ssh_key_ids=ssh_keys,
77-
hostname='example',
78-
description='example instance')
74+
instance = verda.instances.create(instance_type='1V100.6V',
75+
image='ubuntu-24.04-cuda-12.8-open-docker',
76+
ssh_key_ids=ssh_keys,
77+
hostname='example',
78+
description='example instance')
7979

8080
# Delete instance
81-
datacrunch.instances.action(instance.id, datacrunch.constants.instance_actions.DELETE)
81+
verda.instances.action(instance.id, verda.constants.instance_actions.DELETE)
8282
```
8383

8484
More examples can be found in the `/examples` folder or in the [documentation](https://datacrunch-python.readthedocs.io/en/latest/).
@@ -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,13 +117,13 @@ 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.verda import VerdaClient
121121

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

125-
# Create datacrunch client
126-
datacrunch = DataCrunchClient(CLIENT_ID, CLIENT_SECRET, base_url='http://localhost:3001/v1')
125+
# Create client
126+
verda = VerdaClient(CLIENT_ID, CLIENT_SECRET, base_url='http://localhost:3001/v1')
127127
```
128128

129129
Run it:
@@ -153,4 +153,4 @@ uv run ruff format
153153

154154
## Contact
155155

156-
You can [contact us here](https://datacrunch.io/contact), or open an issue in the repo.
156+
You can [contact us here](https://verda.com/contact), or open an issue in the repo.

datacrunch/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/source/API.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
API Reference
22
=============
33

4-
Main DataCrunch Client
5-
----------------------
4+
Main Verda Client
5+
-----------------
66

7-
.. autoclass:: datacrunch.DataCrunchClient
7+
.. autoclass:: verda.VerdaClient
88
:members:
99

1010
API Exception
1111
-------------
1212

13-
.. autoclass:: datacrunch.exceptions.APIException
13+
.. autoclass:: verda.exceptions.APIException
1414
:members:
1515

1616
Constants
1717
---------
1818

19-
.. autoclass:: datacrunch.constants.Constants
19+
.. autoclass:: verda.constants.Constants
2020
:members:
2121

2222
Services API
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Balance
22
=======
33

4-
.. autoclass:: datacrunch.balance.balance.BalanceService
4+
.. autoclass:: verda.balance.balance.BalanceService
55
:members:
66

7-
.. autoclass:: datacrunch.balance.balance.Balance
7+
.. autoclass:: verda.balance.balance.Balance
88
:members:

0 commit comments

Comments
 (0)