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
pgtoolkit-0.25.0.tar.gz
(55.2 kB
view hashes)
Built Distribution
pgtoolkit-0.25.0-py3-none-any.whl
(35.3 kB
view hashes)
Close
Hashes for pgtoolkit-0.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e826d37919bbc17ca4cc8f55048fb87b5e0ee8653390aefc3b4714c853eef0d |
|
MD5 | 4b6d84697400d4dce1eb29bfa2d315cd |
|
BLAKE2b-256 | 58ad68aab1a945ed4c620bedd6092d410b419b245d849f8bf1036aa678e2fd8c |