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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.4.0.tar.gz
  • Upload date:
  • Size: 17.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 1bd021be21e7e08bcf34f0a71710700b81c2c78486517fe4a53b929ee1e0ad8e
MD5 7100c5d10b1893522cc55598d603b6c8
BLAKE2b-256 48614051d744bd491b547c5780dcc56744b600e370376e6ac7f1144a86f8134f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.1 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.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b68220f3b0972de52584bc14a897f59066ba6086ee88427020efed5b5fcd92b5
MD5 1d35687cb80138c4fb8f56ab99f1d8fa
BLAKE2b-256 53e342fe456d9277d95cff24b303430dc188be7e739c33023d904698e11a7816

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