{"id":20491730,"url":"https://github.com/dalibo/pgtoolkit","last_synced_at":"2025-04-13T16:55:13.203Z","repository":{"id":41583673,"uuid":"136604499","full_name":"dalibo/pgtoolkit","owner":"dalibo","description":"Postgres Support from Python","archived":false,"fork":false,"pushed_at":"2024-03-04T08:59:18.000Z","size":507,"stargazers_count":21,"open_issues_count":3,"forks_count":8,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-05-10T00:17:51.303Z","etag":null,"topics":["hba","pgpass","postgres","postgresql","python"],"latest_commit_sha":null,"homepage":"https://pgtoolkit.rtfd.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"postgresql","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalibo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-08T10:28:54.000Z","updated_at":"2024-07-26T14:39:48.565Z","dependencies_parsed_at":"2023-12-21T10:57:41.967Z","dependency_job_id":"b85f922b-92c4-4e5c-bd64-416fc03e55d8","html_url":"https://github.com/dalibo/pgtoolkit","commit_stats":{"total_commits":311,"total_committers":4,"mean_commits":77.75,"dds":0.4887459807073955,"last_synced_commit":"5658716619c2703e9a12bb016f949a2d615ab5a0"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpgtoolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpgtoolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpgtoolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Fpgtoolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalibo","download_url":"https://codeload.github.com/dalibo/pgtoolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750011,"owners_count":21155682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hba","pgpass","postgres","postgresql","python"],"created_at":"2024-11-15T17:25:44.868Z","updated_at":"2025-04-13T16:55:13.182Z","avatar_url":"https://github.com/dalibo.png","language":"Python","readme":"####################################\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 \u003chttps://github.com/dalibo/pgtoolkit\u003e`_ 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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalibo%2Fpgtoolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalibo%2Fpgtoolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalibo%2Fpgtoolkit/lists"}