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.2.0.tar.gz
(9.6 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.2.0-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file vaulboros-0.2.0.tar.gz.
File metadata
- Download URL: vaulboros-0.2.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2168d76402dfa7b77f1fcc7cba24592eef6511ef89bc92e5b5dd66c14137b8c6
|
|
| MD5 |
5627c889c4ae754c988491cf0c637b0b
|
|
| BLAKE2b-256 |
47dd9edd61244a404a5d252bbedf622413cfa3ff59937f1d2dd4b899f59d6598
|
File details
Details for the file vaulboros-0.2.0-py3-none-any.whl.
File metadata
- Download URL: vaulboros-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d23450d810ae9b1f7d7978be5da03b85164ff7d7bd01325936af9e345435dc
|
|
| MD5 |
f9fc301590dc651ae1f760c4c2f2ea1d
|
|
| BLAKE2b-256 |
aaac0e8ba4f5b1a83d1adc32dd1e5bff78bfc3271108ad44920aa39b92ee720f
|