Skip to main content

Postgres 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.9.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

pgtoolkit-0.9.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.9.2.tar.gz
  • Upload date:
  • Size: 16.4 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.9.2.tar.gz
Algorithm Hash digest
SHA256 84d5a799790fe968add18517faaad761190be8f221b50b2213966494e73092fd
MD5 6ece732949a79bf160256b32adbcd3fa
BLAKE2b-256 89bce1ebd1fc1e8612d2b995ac604a9165593fed887a945a02480778e47904a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7adf7363a74db7d54dd28382ba4384137f3fb3a2979383ce2c6f18ed0e88b28
MD5 c180a66619feaa39cfbc905cf1e16bed
BLAKE2b-256 709bb2702eec4ef968ad3cb8b865bb7640959c19543be01336fd1733ab6ec935

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