Skip to main content

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
Filename, size vault-psycopg2-0.1.11.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page