Skip to main content

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

Project description

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

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.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaulboros-0.1.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file vaulboros-0.1.0.tar.gz.

File metadata

  • Download URL: vaulboros-0.1.0.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

Hashes for vaulboros-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd434fe0e6488d02fdd991297d4449e435e306b9d67469a498a6c59140112c5a
MD5 c14b1a58165343c0b996dd1e72427f97
BLAKE2b-256 b0073799ff07c66084668c7f7c697be9a3b481f5445e9e14ebb4e5b1b7a70cd7

See more details on using hashes here.

File details

Details for the file vaulboros-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vaulboros-0.1.0-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

Hashes for vaulboros-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef2bafc075e76b28546c610d905deb50400896cdaedb014ac6eb4a1480755d89
MD5 133fbc67b22cb2f778e7228c05900796
BLAKE2b-256 49465a6e8c24844f20f50d03973bdbb715fb83b120de8fcd6f2f765e2899809d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page