Skip to main content

Postgres Support from Python

Project description

Continuous Integration report Code coverage report Documentation

pgtoolkit provides implementations to manage various file formats in Postgres cluster. Currently:

  • pg_hba.conf: render, validate and align columns.
  • .pgpass: render, validate and sort lines.
  • pg_service.conf: find, read, edit, render.
  • Cluster logs.
import sys

from pgtoolkit.hba import parse


with open('pg_hba.conf') as fo:
    hba = parse(fo)

hba.write(sys.stdout)

The API in this toolkit must:

  • Use only Python stdlib.
  • Use Postgres idioms.
  • Have full test coverage.
  • Run everywhere.

Support

pgtoolkit home on GitHub is the unique way of interacting with developers. Feel free to open an issue to get support.

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 pgtoolkit, version 0.7.3
Filename, size File type Python version Upload date Hashes
Filename, size pgtoolkit-0.7.3-py2.py3-none-any.whl (25.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pgtoolkit-0.7.3.tar.gz (20.3 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page