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

Uploaded Source

Built Distribution

pgtoolkit-0.13.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgtoolkit-0.13.0.tar.gz
  • Upload date:
  • Size: 18.5 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.13.0.tar.gz
Algorithm Hash digest
SHA256 a89d090cced7792e650e43731eee17918d46b65503254587e51b155324b65d4f
MD5 974e0ce424702d685a3e7c67d68897bd
BLAKE2b-256 c691e0b11e814b246117f7bdab6865c694c0b9d2bd8b9160ef5f308aa63d1b02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgtoolkit-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45c17dc13ea09adc683b7c537e75d5377c423013e17501fa5ccb067d338bb48c
MD5 d23ef4c6a7a26dcdefb436b6bc301c2c
BLAKE2b-256 90688aa74e3b5ac61c3fd60175eee97c4e3d72f0b7d3bdfd4537cde22aea51a5

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