PostgreSQL Support from Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pgtoolkit-0.33.0.tar.gz.
File metadata
- Download URL: pgtoolkit-0.33.0.tar.gz
- Upload date:
- Size: 57.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccadbce37bccedb82ab2c098e30618a502ecb60f1ec294752395c1058eaf8aca
|
|
| MD5 |
cadc99e7f8da08380bb80ff262d90552
|
|
| BLAKE2b-256 |
24ad1aae7d54fd54520714b1f80217280809677b7a2c2cd11e874fd25fbe0415
|
File details
Details for the file pgtoolkit-0.33.0-py3-none-any.whl.
File metadata
- Download URL: pgtoolkit-0.33.0-py3-none-any.whl
- Upload date:
- Size: 66.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeb6a24e2fcf40e795aa5a14ad8df6eca03176cca08c067735076bfb50a0aac6
|
|
| MD5 |
7bcc6a6ee6fde742d6fd290facc98d2b
|
|
| BLAKE2b-256 |
bd4f5f0a803da8eb276eafc6e9f05aa0f92b187e97b53b909ffc0d4f1be2f694
|