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.1.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.1-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file vaulboros-0.1.1.tar.gz.
File metadata
- Download URL: vaulboros-0.1.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d508f7fe1cff4817297018a6f1488a13225f26a52e8f251c3ce8ba778af220
|
|
| MD5 |
3d4646c864749037b266c63978eeb3be
|
|
| BLAKE2b-256 |
bb584a07d1fb5b57f2ae81e7eb9c5f4bd13b11870cdfe445679ef1d0e65c0238
|
File details
Details for the file vaulboros-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vaulboros-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed6936b9346e590c37789774d86298feef8a48f8145260b3620b1c26c1ab15ee
|
|
| MD5 |
d108876a4f9f27c98a52042cc1a47843
|
|
| BLAKE2b-256 |
7989dad76b39211a63f38792959a702ec622fc6467c292bda5fbcb119132e18c
|