Skip to main content

PostgreSQL Support from Python

Project description

Continuous Integration report Code coverage report Documentation

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.

Project details


Download files

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

Source Distribution

pgtoolkit-0.31.1.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

pgtoolkit-0.31.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file pgtoolkit-0.31.1.tar.gz.

File metadata

  • Download URL: pgtoolkit-0.31.1.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for pgtoolkit-0.31.1.tar.gz
Algorithm Hash digest
SHA256 99daac22d72335d1db4731b24b22e23f2437fc945fcc01bb81d965e3afeed154
MD5 06264a2486c3e75c5a23cd8c6dc7a3a7
BLAKE2b-256 5958372d7417d3cf573af14f34fc38dd2a3df6e642f45e55114a828eef26f446

See more details on using hashes here.

File details

Details for the file pgtoolkit-0.31.1-py3-none-any.whl.

File metadata

  • Download URL: pgtoolkit-0.31.1-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for pgtoolkit-0.31.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c59d2bfe90b0760528868744e69eacb9a92e3553fef7a4a72a254c991a06ad8
MD5 bdd84f295e7c97ab0d7ed5d77f67de11
BLAKE2b-256 d16339d1fe596e9570a72fa471bbbb9f137a68df5a482e230310dda07d67e643

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