Skip to main content

a simple connection manager for connecting to various rdbms (mostly legacy)

Project description

a connection manager for python for connecting to various databases.

supported databases:

  • oracle

  • netsuite

  • mssql

  • mysql

  • vertica

  • redshift

  • postgres

  • db2 i-series

overview

concentric is based off of waddle for secrets management, which means it is strongly coupled to aws kms for its key management.

quick start

  1. create a waddle configuration file

oracle:
  host: localhost
  user: scott
  password: tiger
  sid: xe
  1. waddle in the password for security

waddle add-secret -f /path/to/config.yml oracle.password
  1. use it

from concentric.managers import setup_concentric
from concentric.managers import CachingConnectionManager as ccm

setup_concentric('/path/to/waddle_config.yml', '/path/to/another_config.yml')
conn = ccm.connect('oracle')
with conn.cursor() as cursor:
    cursor.execute('select sysdate as dt from dual')
    results = cursor.fetchall()

contributing

Sample configuration files:

  1. db2

  2. hp3000

  3. mysql

  4. netsuite

  5. oracle

  6. postgres

  7. redshift

  8. snowflake

  9. sql server

  10. vertica

Download files

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

Source Distribution

concentric-1.2.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file concentric-1.2.tar.gz.

File metadata

  • Download URL: concentric-1.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.20

File hashes

Hashes for concentric-1.2.tar.gz
Algorithm Hash digest
SHA256 6728c773f4dfa6c935083ccf5cd4090ba0cef9ae26fc2310d2d29043856e7558
MD5 5fa3dddd0fab8d7a126fb9a1e6687a11
BLAKE2b-256 7ff338a49bb538295d4d596d6bef88324df1f9d1351edfcce33e30d50ee243ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page