Skip to content

Commit b81c929

Browse files
“saileshwar-skyflow”claude
andcommitted
docs: rename v2-v3 installation guide to v2-v3.md
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent bf5bd02 commit b81c929

1 file changed

Lines changed: 24 additions & 16 deletions

File tree

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@ pip install "skyflow-python==2.0.0"
1111
### Initialize client
1212

1313
```python
14-
from skyflow import SkyflowClient, SkyflowConfig, Credentials
15-
16-
client = SkyflowClient(
17-
SkyflowConfig(
18-
vault_id="<VAULT_ID>",
19-
cluster_id="<CLUSTER_ID>",
20-
credentials=Credentials(api_key="<API_KEY>"),
21-
)
14+
from skyflow import Skyflow, LogLevel
15+
16+
client = (
17+
Skyflow.builder()
18+
.add_vault_config({
19+
'vault_id': '<VAULT_ID>',
20+
'cluster_id': '<CLUSTER_ID>',
21+
'env': Env.PROD,
22+
'credentials': credentials
23+
})
24+
.set_log_level(LogLevel.INFO)
25+
.build()
2226
)
2327
```
2428

@@ -51,14 +55,18 @@ pip install "skyflow-python==3.0.0"
5155
### Initialize client
5256

5357
```python
54-
from skyflow import SkyflowClient, SkyflowConfig, Credentials
55-
56-
client = SkyflowClient(
57-
SkyflowConfig(
58-
vault_id="<VAULT_ID>",
59-
cluster_id="<CLUSTER_ID>",
60-
credentials=Credentials(api_key="<API_KEY>"),
61-
)
58+
from skyflow import Skyflow, LogLevel
59+
60+
client = (
61+
Skyflow.builder()
62+
.add_vault_config({
63+
'vault_id': '<VAULT_ID>',
64+
'cluster_id': '<CLUSTER_ID>',
65+
'env': Env.PROD,
66+
'credentials': credentials
67+
})
68+
.set_log_level(LogLevel.INFO)
69+
.build()
6270
)
6371
```
6472

0 commit comments

Comments
 (0)