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

Uploaded Source

Built Distribution

pgtoolkit-0.20.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.20.1.tar.gz
  • Upload date:
  • Size: 54.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pgtoolkit-0.20.1.tar.gz
Algorithm Hash digest
SHA256 b419deb8e43a24a302158a0d04b5cf45acb4a30d5dfa6de58c0c4a1e1bc0ce03
MD5 db3e54a0c35a9a39adcf60b52a1a3531
BLAKE2b-256 304b14ec6e3965922df4c703428126a0c716ec3a3b62b879495e5b9fcf15fba3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.20.1-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pgtoolkit-0.20.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a553def9716ef00f9db562e863c5b8f73afb6c37ad4aa1d8e25793350c7a9a35
MD5 c97f23670c5a59331d8e71d1197a141c
BLAKE2b-256 1d335491c48642ba3afdab59748e56d9c738733026682faace3d10514bbf4cdc

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