8000 GitHub - philpep/pgtoolkit: Postgres Support from Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

philpep/pgtoolkit

 
 

Repository files navigation

Postgres Cluster Support in Python

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

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

It also provides a Python API for calling pg_ctl commands.

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.4%
  • Shell 1.4%
  • Makefile 0.2%
0