Manage Postgres cluster files from Python
Project description
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.
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.0.1a1.tar.gz
(13.9 kB
view details)
Built Distribution
File details
Details for the file pgtoolkit-0.0.1a1.tar.gz
.
File metadata
- Download URL: pgtoolkit-0.0.1a1.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099aaf26aa0233393d901f11051ce06259f7747c6bea14dc5be351df558231fe |
|
MD5 | 97ca81c426b30576243c40909bc4eb60 |
|
BLAKE2b-256 | 8b4a7773a51f0869bd46375099639c743d512cc3cc425e6972ac209ad3f844a2 |
File details
Details for the file pgtoolkit-0.0.1a1-py2.py3-none-any.whl
.
File metadata
- Download URL: pgtoolkit-0.0.1a1-py2.py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e05998a747115c5f58e2a4af175764a31b8ec8e0d69aecc5dedf2af410ed7015 |
|
MD5 | 1a972410858525c143b7e31f07e38e4c |
|
BLAKE2b-256 | 5b8102b145a8606af8ec39095503a8195bbea493ed2322eca9a586af8823c805 |