Skip to content

vimc/vault-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vault-dev

PyPI - Version PyPI - Python Version

Use vault server in development mode in tests, from python

Installation:

Install with pip

pip3 install --user vault_dev

Usage:

import vault_dev
vault_dev.ensure_installed()
# Did not find system vault, installing one for tests
# installing vault to '/tmp/tmpkzvlyw5c'
with vault_dev.server(verbose=True) as server:
  vault = server.client()
  vault.write("secret/key", value="password")
# Starting vault server on port 37355
# Waiting for server to become active
# .
# Connection made
# Configuring old-style kv engine at /secret
# Stopping vault server

License

vault-dev is distributed under the terms of the MIT license.

About

Use vault server in development mode in tests, from python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages