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.2.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.2-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file vaulboros-0.1.2.tar.gz.
File metadata
- Download URL: vaulboros-0.1.2.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95eb4b13416a18347ef430c83c520fd01d5af36599d2de0563eceb6b127e4a87
|
|
| MD5 |
1f574bcd2c408403495816874714134b
|
|
| BLAKE2b-256 |
2a6fc5165a9e7540cfd8f97fac2c281ae32220537bbdc7e69895fda9c7340d03
|
File details
Details for the file vaulboros-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vaulboros-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c97c286ac54f33ed1d29a9b371d976722ca7ac2faad456974ed229771c465234
|
|
| MD5 |
f5323cdb5091c6aed9504068d4c66fe1
|
|
| BLAKE2b-256 |
9af3a88a30ede9eaa044c115898ad7a1465bd3a4a227cfa65cc77f98b72f15f0
|