Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dlax/pgtoolkit

 
 

Repository files navigation

Postgres Cluster Support in Python

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.

About

Postgres Support from Python

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.3%
  • Shell 2.0%
  • Makefile 0.7%