{"id":16892991,"url":"https://github.com/gmr/pgdumplib","last_synced_at":"2025-04-09T14:14:49.369Z","repository":{"id":53587380,"uuid":"137374775","full_name":"gmr/pgdumplib","owner":"gmr","description":"Python3 library for reading and writing pg_dump files using the custom format","archived":false,"fork":false,"pushed_at":"2025-03-16T22:42:11.000Z","size":161,"stargazers_count":32,"open_issues_count":8,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T13:03:19.504Z","etag":null,"topics":["backup","library","pg-dump","pg-restore","postgresql","python3"],"latest_commit_sha":null,"homepage":"https://pgdumplib.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmr.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","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-14T15:12:41.000Z","updated_at":"2025-03-16T22:42:15.000Z","dependencies_parsed_at":"2025-02-18T21:01:48.686Z","dependency_job_id":"fe6bdeae-254e-4565-8b42-4f59df028fc6","html_url":"https://github.com/gmr/pgdumplib","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fpgdumplib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fpgdumplib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fpgdumplib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmr%2Fpgdumplib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmr","download_url":"https://codeload.github.com/gmr/pgdumplib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054193,"owners_count":21039952,"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":["backup","library","pg-dump","pg-restore","postgresql","python3"],"created_at":"2024-10-13T17:13:09.170Z","updated_at":"2025-04-09T14:14:49.336Z","avatar_url":"https://github.com/gmr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pgdumplib\n=========\n\nPython3 library for reading and writing pg_dump files using the custom format.\n\n|Version| |Status| |Coverage| |License| |Docs|\n\nInstallation\n------------\n\n.. code-block:: bash\n\n    pip install pgdumplib\n\nExample Usage\n-------------\n\nThe following example shows how to create a dump and then read it in, and\niterate through the data of one of the tables.\n\n.. code-block:: python\n\n    pg_dump -d pgbench -Fc -f pgbench.dump\n\n.. code-block:: python\n\n    import pgdumplib\n\n    dump = pgdumplib.load('pgbench.dump')\n\n    print('Database: {}'.format(dump.toc.dbname))\n    print('Archive Timestamp: {}'.format(dump.toc.timestamp))\n    print('Server Version: {}'.format(dump.toc.server_version))\n    print('Dump Version: {}'.format(dump.toc.dump_version))\n\n    for line in dump.table_data('public', 'pgbench_accounts'):\n        print(line)\n\n.. |Version| image:: https://img.shields.io/pypi/v/pgdumplib.svg\n   :target: https://pypi.python.org/pypi/pgdumplib\n   :alt: Package Version\n\n.. |Status| image:: https://github.com/gmr/pgdumplib/workflows/Testing/badge.svg\n   :target: https://github.com/gmr/pgdumplib/actions\n   :alt: Build Status\n\n.. |Coverage| image:: https://codecov.io/gh/gmr/pgdumplib/branch/master/graph/badge.svg\n   :target: https://codecov.io/github/gmr/pgdumplib?branch=master\n   :alt: Code Coverage\n\n.. |License| image:: https://img.shields.io/pypi/l/pgdumplib.svg\n   :target: https://github.com/gmr/pgdumplib/blob/master/LICENSE\n   :alt: BSD\n\n.. |Docs| image:: https://img.shields.io/readthedocs/pgdumplib.svg\n   :target: https://pgdumplib.readthedocs.io/\n   :alt: Documentation Status\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmr%2Fpgdumplib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmr%2Fpgdumplib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmr%2Fpgdumplib/lists"}