Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Helper classes to integrate psycopg2 with Vault

Project description

Build Status PyPI version


Helper classes to integrate psycopg2 with Vault


pip install vault-psycopg2
from vault_psycopg2 import VaultPsycopg

vp = VaultPsycopg(
        'host': 'localhost',
        'dbname': 'name_of_database'
        'server': '',
        'connection_mode': 'ec2',
        'nonce': '5daa3d21-4e21-4bd5-8978-fcb81e658d8b',
        'role': 'some-instance'

# An instance of psycopg2.Connection that is properly authenticated
Other examples of vault config:
    'server': '',
    'connection_mode': 'token',
    'token': '5daa3d21-4e21-4bd5-8978-fcb81e658d8b'
    'server': '',
    'connection_mode': 'userpass',
    'username': 'john.doe',
    'password': 'xyzzyabc'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vault-psycopg2, version 0.1.11
Filename, size File type Python version Upload date Hashes
Filename, size vault_psycopg2-0.1.11-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size vault-psycopg2-0.1.11.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page