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.
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.3.0.tar.gz
(16.0 kB
view details)
Built Distribution
File details
Details for the file pgtoolkit-0.3.0.tar.gz
.
File metadata
- Download URL: pgtoolkit-0.3.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354e7b9db5cf9d55be01e82c2661741a78a377345f268d5804847d3b0349e927 |
|
MD5 | 534a710d25f22b43a4b0e88f25a1d3b8 |
|
BLAKE2b-256 | 0f84c11b01a8a48042b153d2284bf21945f84cd2b57a7cbf82c2461a58ecb96c |
File details
Details for the file pgtoolkit-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pgtoolkit-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290d906b3331797570e3df93e48b3e8099b604aa1e191b5cafdf6b30167b271f |
|
MD5 | 903ac925e60603199a019b6ee920c7a7 |
|
BLAKE2b-256 | 680f5f29970efa0533bdc14a2cb9f3c1d73ba4a62639a3c906a44332230e4dfe |