High level API library for HashiCorp Vault with sync / async support
Project description
Basic usage example
from vaulboros.vault import Vault
import datetime, asyncio
t1 = datetime.datetime.now()
v = Vault.from_token("http://127.0.0.1", "hvs.qwerty123") # url and token
l = v.get_kv_location("testsecrets", load_location=True, load_location_recursive=True)
t2 = datetime.datetime.now()
print(f"Sync loaded {l.number_of_secrets} secrets. Time - {t2-t1}")
t1 = datetime.datetime.now()
l = asyncio.run(v.a_get_kv_location("testsecrets", load_location=True, load_location_recursive=True))
t2 = datetime.datetime.now()
print(f"Async loaded {l.number_of_secrets} secrets. Time - {t2-t1}")
Sync loaded 337 secrets. Time - 0:00:57.609791
Async loaded 337 secrets. Time - 0:00:02.802920
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vaulboros-0.1.3.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
vaulboros-0.1.3-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file vaulboros-0.1.3.tar.gz.
File metadata
- Download URL: vaulboros-0.1.3.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e097d826d73d124ab6c3e7fee532bf4b5bcdd9c4b8a840490e252a48270b6bc2
|
|
| MD5 |
b135d1e78f97fb9c427a2ef4a0a772b5
|
|
| BLAKE2b-256 |
42d72c830adab3d613e09252281ad0312fe843b0b827b63a13d00fbded193c7a
|
File details
Details for the file vaulboros-0.1.3-py3-none-any.whl.
File metadata
- Download URL: vaulboros-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
520e0ca66aca7df906e26c4e1a2f9309b681efe57c1ba214e4baf3f6310f5dea
|
|
| MD5 |
aa5f032855f65ccb6df2b00fdf2a2ce7
|
|
| BLAKE2b-256 |
5e9ecf8a7656420cdbb69bc5bd346558aed7b0f3ac9fcf9eb363bdeca9042d84
|