####################################
Postgres Cluster Support in Python
####################################
| |Tests status| |Codecov| |RTD|
``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.
.. _pg_ctl: https://www.postgresql.org/docs/current/app-pg-ctl.html
.. code::
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 <https://github.com/dalibo/pgtoolkit>`_ home on GitHub is the unique
way of interacting with developers. Feel free to open an issue to get support.
.. |Codecov| image:: https://codecov.io/gh/dalibo/pgtoolkit/branch/master/graph/badge.svg
:target: https://codecov.io/gh/dalibo/pgtoolkit
:alt: Code coverage report
.. |Tests status| image:: https://github.com/dalibo/pgtoolkit/actions/workflows/tests.yml/badge.svg
:target: https://github.com/dalibo/pgtoolkit/actions/workflows/tests.yml
:alt: Continuous Integration report
.. |RTD| image:: https://readthedocs.org/projects/pgtoolkit/badge/?version=latest
:target: https://pgtoolkit.readthedocs.io/en/latest/
:alt: Documentation
Raw data
{
"_id": null,
"home_page": null,
"name": "pgtoolkit",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Denis Laxalde <denis.laxalde@dalibo.com>, Pierre Giraud <pierre.giraud@dalibo.com>, Julian Vanden Broeck <julian.vandenbroeck@dalibo.com>",
"keywords": "postgresql, postgresql.conf, pg_hba, pgpass, pg_service.conf",
"author": null,
"author_email": "Dalibo <contact@dalibo.com>",
"download_url": "https://files.pythonhosted.org/packages/56/ec/d10db78c99c320dd18c6109e4e5fbf61f099ea19fa782d05b99d2773adc5/pgtoolkit-0.32.0.tar.gz",
"platform": null,
"description": "####################################\n Postgres Cluster Support in Python\n####################################\n\n| |Tests status| |Codecov| |RTD|\n\n\n``pgtoolkit`` provides implementations to manage various file formats in Postgres\ncluster. Currently:\n\n- ``postgresql.conf``: read, edit, save.\n- ``pg_hba.conf``: render, validate and align columns.\n- ``.pgpass``: render, validate and sort lines.\n- ``pg_service.conf``: find, read, edit, render.\n- Cluster logs.\n\nIt also provides a Python API for calling pg_ctl_ commands.\n\n.. _pg_ctl: https://www.postgresql.org/docs/current/app-pg-ctl.html\n\n\n.. code::\n\n import sys\n\n from pgtoolkit.hba import parse\n\n\n with open('pg_hba.conf') as fo:\n hba = parse(fo)\n\n hba.write(sys.stdout)\n\n\nThe API in this toolkit must:\n\n- Use only Python stdlib.\n- Use Postgres idioms.\n- Have full test coverage.\n- Run everywhere.\n\n\nSupport\n-------\n\n`pgtoolkit <https://github.com/dalibo/pgtoolkit>`_ home on GitHub is the unique\nway of interacting with developers. Feel free to open an issue to get support.\n\n\n.. |Codecov| image:: https://codecov.io/gh/dalibo/pgtoolkit/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/dalibo/pgtoolkit\n :alt: Code coverage report\n\n.. |Tests status| image:: https://github.com/dalibo/pgtoolkit/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/dalibo/pgtoolkit/actions/workflows/tests.yml\n :alt: Continuous Integration report\n\n.. |RTD| image:: https://readthedocs.org/projects/pgtoolkit/badge/?version=latest\n :target: https://pgtoolkit.readthedocs.io/en/latest/\n :alt: Documentation\n",
"bugtrack_url": null,
"license": "PostgreSQL",
"summary": "PostgreSQL Support from Python",
"version": "0.32.0",
"project_urls": {
"Documentation": "https://pgtoolkit.readthedocs.io/",
"Repository": "https://github.com/dalibo/pgtoolkit"
},
"split_keywords": [
"postgresql",
" postgresql.conf",
" pg_hba",
" pgpass",
" pg_service.conf"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "539b67b1257f780f5bf8df3811f66a5c52236b4af3df1b292b6e01b34d8128a0",
"md5": "76c1b4d6cde964636fe1c917e5911e35",
"sha256": "cdc51457fb845bf1f392207a63338363b7f3f64159510897d9a603e8ebd14fc8"
},
"downloads": -1,
"filename": "pgtoolkit-0.32.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "76c1b4d6cde964636fe1c917e5911e35",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 67060,
"upload_time": "2024-11-25T14:54:08",
"upload_time_iso_8601": "2024-11-25T14:54:08.736042Z",
"url": "https://files.pythonhosted.org/packages/53/9b/67b1257f780f5bf8df3811f66a5c52236b4af3df1b292b6e01b34d8128a0/pgtoolkit-0.32.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "56ecd10db78c99c320dd18c6109e4e5fbf61f099ea19fa782d05b99d2773adc5",
"md5": "6c59cf360fa4e1d88403a2e118b699e6",
"sha256": "53974f55d5ad74bc95e19d872ed9dbd9b63dd05ef58c4d6d28186b1e4fb7f368"
},
"downloads": -1,
"filename": "pgtoolkit-0.32.0.tar.gz",
"has_sig": false,
"md5_digest": "6c59cf360fa4e1d88403a2e118b699e6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 58711,
"upload_time": "2024-11-25T14:54:10",
"upload_time_iso_8601": "2024-11-25T14:54:10.087642Z",
"url": "https://files.pythonhosted.org/packages/56/ec/d10db78c99c320dd18c6109e4e5fbf61f099ea19fa782d05b99d2773adc5/pgtoolkit-0.32.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-25 14:54:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dalibo",
"github_project": "pgtoolkit",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "pgtoolkit"
}