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.26.1.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

pgtoolkit-0.26.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.26.1.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pgtoolkit-0.26.1.tar.gz
Algorithm Hash digest
SHA256 33881e5d106c85aa2c03ac9b51cf55e5c2a00131b12afb5e2df56a522e1e4c5a
MD5 438e498180af2029a0564ac72b51028a
BLAKE2b-256 3b25b6d09d9f60fa7445e7ff8e1d44ec80aec4e174c72bb8a21f86d14cc6ca3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.26.1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pgtoolkit-0.26.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a674f99bec35f204d5d160ef1acd3fabda47054a01791f043e146083885bb8a
MD5 3f26fc31742f17391c2f64a4fb462c50
BLAKE2b-256 ef1626b66c4b638361df814ea127ccc0e2feb3e62660a631d51ea3a7fa495320

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