Skip to content

High level API library for HashiCorp Vault with sync / async support

Notifications You must be signed in to change notification settings

nevermonk/vaulboros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vauloborous

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

About

High level API library for HashiCorp Vault with sync / async support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages