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.
It also provides a Python API for calling pg_ctl commands.
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.
Metadata
Release files for pgtoolkit 0.33.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pgtoolkit-0.33.0.tar.gz | 57.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pgtoolkit-0.33.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 124.0 kB
Release files / pgtoolkit-0.33.0.tar.gz
| Download URL | pgtoolkit-0.33.0.tar.gz |
|---|---|
| Size | 57.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccadbce37bccedb82ab2c098e30618a502ecb60f1ec294752395c1058eaf8aca
|
|
BLAKE2b-256 checksum How to use checksums |
24ad1aae7d54fd54520714b1f80217280809677b7a2c2cd11e874fd25fbe0415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / pgtoolkit-0.33.0-py3-none-any.whl
| Download URL | pgtoolkit-0.33.0-py3-none-any.whl |
|---|---|
| Size | 66.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eeb6a24e2fcf40e795aa5a14ad8df6eca03176cca08c067735076bfb50a0aac6
|
|
BLAKE2b-256 checksum How to use checksums |
bd4f5f0a803da8eb276eafc6e9f05aa0f92b187e97b53b909ffc0d4f1be2f694
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|