Skip to content

Commit dd70df6

Browse files
committed
docs: updated readme
1 parent aded910 commit dd70df6

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
This client is a simple library for working with **[Yandex Lockbox](https://cloud.yandex.ru/en/docs/lockbox/)** over REST API, simplifying work with secrets and allowing you to work with them in the OOP paradigm.
44

55

6+
**Supported Python versions**:
7+
8+
* 3.10
9+
* 3.11
10+
* 3.12
11+
12+
613
**Currently, the following operations are not supported by the library:**
714

815
* List secret access bindings
@@ -11,7 +18,6 @@ This client is a simple library for working with **[Yandex Lockbox](https://clo
1118
* List secret operations
1219

1320

14-
1521
## Install
1622

1723
Installing with PIP:
@@ -134,12 +140,14 @@ lockbox = YandexLockboxClient("oauth_or_iam_token")
134140

135141

136142
for secret in lockbox.list_secrets(folder_id="b1xxxxxxxxxx", iterator=True):
137-
print(secret.deactivate())
138-
print(secret.activate())
143+
print(secret.name, secret.status)
144+
145+
secret.deactivate()
146+
secret.activate()
139147

140148
for version in secret.list_versions(iterator=True):
141149
if version.id != secret.current_version.id:
142-
print(version.schedule_version_destruction())
143-
print(version.cancel_version_destruction())
150+
version.schedule_version_destruction()
151+
version.cancel_version_destruction()
144152

145153
```

0 commit comments

Comments
 (0)