Skip to main content

Manage Postgres cluster files from Python

Project description

Continuous Integration report Code coverage report Documentation

pgtoolkit provides implementations to manage various file formats in Postgres cluster. Currently:

  • 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.5.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

pgtoolkit-0.5.0-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.5.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

File hashes

Hashes for pgtoolkit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fc81b5ab6775344fd501d2bde2b06341acd0f0dd19cf285f97fb07ab0c23f4ea
MD5 2f1de3d0f8b16e4fad98997a74a31a5c
BLAKE2b-256 baf6948316beb13eaef75584ac2c082ae70a1cab9f09beed04d8909a4991f25c

See more details on using hashes here.

File details

Details for the file pgtoolkit-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pgtoolkit-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.2

File hashes

Hashes for pgtoolkit-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6fabf4b88b9065082d0886b1e2aebf0e2f4c8b06a69c32c02a94296842506e41
MD5 bf07fd2d75ffc22960e658a71bd3f619
BLAKE2b-256 3c899f91824f3c8dde368416351d7489e14c5af0a91c56b6664ada082cc47de6

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