Postgres Support 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.9.0.tar.gz
(16.3 kB
view details)
Built Distribution
pgtoolkit-0.9.0-py3-none-any.whl
(21.0 kB
view details)
File details
Details for the file pgtoolkit-0.9.0.tar.gz
.
File metadata
- Download URL: pgtoolkit-0.9.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 537f638dc0b073f2a8299f219379fef7faf3e961ed2ec2b707a2962dcea8d35a |
|
MD5 | 2bc56da4ea33f2a39c361f8a125ede0f |
|
BLAKE2b-256 | e57bccdfd521e27979a661ea7312d2c316e4a3aa391f7779de2e5302d3a6134f |
File details
Details for the file pgtoolkit-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: pgtoolkit-0.9.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c650b1519d498018b6afa4d2ced10d57dbeb4b2b5c9980f0c17e70abeefc81c3 |
|
MD5 | b5aa87702f4190d2b54fdcc20cb025da |
|
BLAKE2b-256 | 05f808c2a0da320b8673fe53d05110eeb875a641807802f8fce1c8e91d4e32ed |