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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.31.0.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.0.tar.gz
Algorithm Hash digest
SHA256 be7c6f277078a8feca62aab9cd159b7309ce6b932641e67cfe45039db4190174
MD5 7db698fd0e47a8b2a8f364cb43674b49
BLAKE2b-256 10c7b5fd9f0fb6f936f06600488f6a1e1f267a32aeae7cb44b02de94a94c6389

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.31.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86f15d88bec874297e1dbdec4b6804b3aa5796c4f3d2b0edc07d518768aa2357
MD5 fa3503b0645f2b9083eaed5266aeb0c1
BLAKE2b-256 d2d450b89ae352583bf6d67d27d5be75a1899dd914fe82d2a4075699f766913d

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