一覧へ戻る
dalibo/pgtoolkit(新しいタブで開きます)
主要言語: Python
Postgres Support from Python
- star 数
- 22
- watcher 数
- 12
- fork 数
- 11
- issue 数
- 12
- 最終更新
- 2025/04/15
主要言語: Python
Postgres Support from Python
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.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:
pgtoolkit home on GitHub is the unique way of interacting with developers. Feel free to open an issue to get support.