Skip to content

Commit 6189ce4

Browse files
committed
docs: updated readme
1 parent dd70df6 commit 6189ce4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This client is a simple library for working with **[Yandex Lockbox](https://clo
2323
Installing with PIP:
2424

2525
```
26-
pip3 install yc-lockbox
26+
pip install yc-lockbox
2727
```
2828

2929
Also, you can install from source with:
@@ -103,7 +103,11 @@ lockbox = YandexLockboxClient("oauth_or_iam_token")
103103
secret: Secret = lockbox.get_secret("e6qxxxxxxxxxx")
104104
print(secret.status, secret.name)
105105

106-
payload = secret.payload(version_id=secret.current_version.id) # version_id is optional, by default using current version
106+
payload = secret.payload(version_id=secret.current_version.id) # id is optional, by default using current version
107+
print(payload.entries) # list of SecretPayloadEntry objects
108+
109+
# Direct access
110+
107111
entry = payload["secret_entry_1"] # or payload.get("secret_entry_1")
108112

109113
print(entry.text_value) # return MASKED value like ***********

0 commit comments

Comments
 (0)