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.

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

Uploaded Source

Built Distribution

pgtoolkit-0.14.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.14.0.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pgtoolkit-0.14.0.tar.gz
Algorithm Hash digest
SHA256 80fd64b82bf33ebc712091781efe351785c512c1e9bda5cc0b5c8426f5bef530
MD5 5930b8b0fb5c1c23a2f8716b229f4c87
BLAKE2b-256 98962a0f89c701a26fa6d6827e78bc7621b6eca6f448eba32012447065c95b55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pgtoolkit-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81f337a860cda35531bb59697d61d6cc4d87e3c2fbf11d1079ea1300642e27bf
MD5 bf4924748fafcdd4d499af0d93f8b308
BLAKE2b-256 53153e152530ae54d1c7726db4adc6df007607a55adf3d03214c66b1522dbfa2

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