You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Volcengine SDK for Python. This document explains how to obtain and use the SDK.
7
+
8
+
## Prerequisites
9
+
10
+
### Enable the service
11
+
12
+
Make sure the service you want to access is enabled. Go to the [Volcengine Console](https://console.volcengine.com/), select the service from the left navigation (or search it from the top bar), and complete the activation process in the service console.
13
+
14
+
### Obtain security credentials
15
+
16
+
Access Key is the credential used to access Volcengine services. It consists of Access Key ID (AK) and Secret Access Key (SK).
17
+
18
+
Log in to the [Volcengine Console](https://console.volcengine.com/), then go to [IAM](https://console.volcengine.com/iam) -> [Access Keys](https://console.volcengine.com/iam/keymanage/) to create and manage your Access Keys. For more information, see the [Access Key documentation](https://www.volcengine.com/docs/6291/65568).
19
+
20
+
### Environment check
21
+
22
+
Python version must be **3.7** or later.
23
+
24
+
## Install
25
+
26
+
Install the SDK via pip:
27
+
28
+
```bash
29
+
pip install --user volcengine
30
+
```
31
+
32
+
If `volcengine` is already installed, upgrade it with:
33
+
34
+
```bash
35
+
pip install --upgrade volcengine
36
+
```
37
+
38
+
## Configuration
39
+
40
+
### Credential configuration
41
+
42
+
Volcengine SDK for Python supports the following credential loading methods.
43
+
44
+
*Note: Replace `Your AK` and `Your SK` in the code with your actual AK and SK.*
45
+
46
+
**Method 1**: Set AK/SK on the client **(recommended)**
47
+
48
+
```python
49
+
iam_service = IamService()
50
+
iam_service.set_ak('Your AK')
51
+
iam_service.set_sk('Your SK')
52
+
```
53
+
54
+
**Method 2**: Load AK/SK from environment variables
0 commit comments