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

Uploaded Source

Built Distribution

pgtoolkit-0.29.0-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pgtoolkit-0.29.0.tar.gz
Algorithm Hash digest
SHA256 c42e9728be70fb759e6db9c42b0cc7abf30a546dacc35be19b5eb78261e26ece
MD5 3ac142656292823de79de3d527c1a737
BLAKE2b-256 36b5602693ffd77e5466dd2e29632d176bf6e4cac80d26e1f97052317efec277

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pgtoolkit-0.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 267c60dcc3dc71c73a5ae4231e4f090f9c509f8f0bde3f514e2987137780d779
MD5 1dbd119c216b13d62f7a811dc2599104
BLAKE2b-256 e3e9b5197f985b349ab1d1881ce2c15b574462fe38a7c7ed744a047a64589776

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