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

Uploaded Source

Built Distribution

pgtoolkit-0.25.1-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pgtoolkit-0.25.1.tar.gz
Algorithm Hash digest
SHA256 e8626a46989813419efd3f383e215d52c2c1b15c9adcd190ce70402ffd088a06
MD5 0384d786f6efb6260ec4966deb275bda
BLAKE2b-256 559d7802af76d55a19c65cf6fb78a8d5587b7917dcb75ecae39add888724a8a4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pgtoolkit-0.25.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07f1b4b254ab6cfef9f21d032ca260a0769161cfc73a6cc6b426fa5e35ceb79e
MD5 e493f91b40fcdb3654dd22f9b9ea2215
BLAKE2b-256 90c8692eaa813e0d80286a80f9c97fd1d141f1e8e5378aa5dff561a97bc1b9d5

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