YC Secret
Library for interaction with the Yandex Cloud Lockbox service
Installing YC Secret
YC Secret is available on PyPI:
$ python -m pip install yc-secret
YC Secret officially supports Python 3.7+.
Key Features
- Unlimited number of secret ids (limited by system only)
- Getting the list of keys by secrete ids
- Getting particular key without using a secret id
Getting started
You need to define all secret ids in one line and put it into environment You also need to use YCSECRET as variable
Please note that symbol | is being used as separator
Code example
How to get the content of the secret
secret = Secret(token)
secret_value = secret.get_secret("yg854tgreg9ger")
How to get the content of the key
secret = Secret(token)
key_value = secret.get_key("yg854tgreg9ger")
Requirements
- Python >= 3.7
- aiohttp
License
YC Secret is offered under the Apache 2 license.
Metadata
Release files for yc-secret 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yc-secret-0.1.2.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yc_secret-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / yc-secret-0.1.2.tar.gz
| Download URL | yc-secret-0.1.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad6c143feff3da3d92468d804f35e06e91cbb1c7970821feeb95ec5bea56b7ed
|
|
BLAKE2b-256 checksum How to use checksums |
b12ac4bc1d82a3bc246e456f4eb0f7c4e295a45697551cc144b3919af1834cf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
|
Release files / yc_secret-0.1.2-py3-none-any.whl
| Download URL | yc_secret-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
372a0922b319d51567cc8084fa459bc694affd111675019d062d57cbc8420fb0
|
|
BLAKE2b-256 checksum How to use checksums |
e9cdc8fbfba9f51c3fa576f0889a35b7dcf145ab3549514c002803b9b61afb48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
|