Run vault in dev mode from python scripts
Project description
vault-dev
Use vault server in development mode in tests, from python
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vault_dev-0.0.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for vault_dev-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1e313dc8d2108a444486e8339bf5c4188e46f93a9a0a515d7fc8dde68296e2 |
|
MD5 | 03ca2dc8f9357b5abfb4d19418e51417 |
|
BLAKE2b-256 | a1256cb0b412cba0abd427a94a67654b4bdbc4b81e889753dff6b890fa020c6b |