File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ This client is a simple library for working with **[Yandex Lockbox](https://clo
2323Installing with PIP:
2424
2525```
26- pip3 install yc-lockbox
26+ pip install yc-lockbox
2727```
2828
2929Also, you can install from source with:
@@ -103,7 +103,11 @@ lockbox = YandexLockboxClient("oauth_or_iam_token")
103103secret: Secret = lockbox.get_secret(" e6qxxxxxxxxxx" )
104104print (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+
107111entry = payload[" secret_entry_1" ] # or payload.get("secret_entry_1")
108112
109113print (entry.text_value) # return MASKED value like ***********
You can’t perform that action at this time.
0 commit comments