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.3.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.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vaulboros-0.1.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for vaulboros-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e097d826d73d124ab6c3e7fee532bf4b5bcdd9c4b8a840490e252a48270b6bc2
MD5 b135d1e78f97fb9c427a2ef4a0a772b5
BLAKE2b-256 42d72c830adab3d613e09252281ad0312fe843b0b827b63a13d00fbded193c7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vaulboros-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for vaulboros-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 520e0ca66aca7df906e26c4e1a2f9309b681efe57c1ba214e4baf3f6310f5dea
MD5 aa5f032855f65ccb6df2b00fdf2a2ce7
BLAKE2b-256 5e9ecf8a7656420cdbb69bc5bd346558aed7b0f3ac9fcf9eb363bdeca9042d84

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