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.

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.0.1a1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

pgtoolkit-0.0.1a1-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pgtoolkit-0.0.1a1.tar.gz.

File metadata

  • Download URL: pgtoolkit-0.0.1a1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.5

File hashes

Hashes for pgtoolkit-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 099aaf26aa0233393d901f11051ce06259f7747c6bea14dc5be351df558231fe
MD5 97ca81c426b30576243c40909bc4eb60
BLAKE2b-256 8b4a7773a51f0869bd46375099639c743d512cc3cc425e6972ac209ad3f844a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pgtoolkit-0.0.1a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e05998a747115c5f58e2a4af175764a31b8ec8e0d69aecc5dedf2af410ed7015
MD5 1a972410858525c143b7e31f07e38e4c
BLAKE2b-256 5b8102b145a8606af8ec39095503a8195bbea493ed2322eca9a586af8823c805

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