Metadata-Version: 1.1
Name: pgdumplib
Version: 2.0.1
Summary: Python3 library for working with pg_dump files
Home-page: https://github.com/gmr/pgdumplib
Author: Gavin M. Roy
Author-email: gavinmroy@gmail.com
License: BSD 3-Clause License
Description: pgdumplib
        =========
        
        Python3 library for reading and writing pg_dump files using the custom format.
        
        |Version| |Status| |Coverage| |License| |Docs|
        
        Installation
        ------------
        
        .. code-block:: bash
        
            pip install pgdumplib
        
        Example Usage
        -------------
        
        The following example shows how to create a dump and then read it in, and
        iterate through the data of one of the tables.
        
        .. code-block:: python
        
            pg_dump -d pgbench -Fc -f pgbench.dump
        
        .. code-block:: python
        
            import pgdumplib
        
            dump = pgdumplib.load('pgbench.dump')
        
            print('Database: {}'.format(dump.toc.dbname))
            print('Archive Timestamp: {}'.format(dump.toc.timestamp))
            print('Server Version: {}'.format(dump.toc.server_version))
            print('Dump Version: {}'.format(dump.toc.dump_version))
        
            for line in dump.table_data('public', 'pgbench_accounts'):
                print(line)
        
        .. |Version| image:: https://img.shields.io/pypi/v/pgdumplib.svg?
           :target: https://pypi.python.org/pypi/pgdumplib
           :alt: Package Version
        
        .. |Status| image:: https://github.com/gmr/pgdumplib/workflows/Testing/badge.svg?
           :target: https://codecov.io/github/gmr/pgdumplib?branch=master
           :alt: Build Status
        
        .. |Coverage| image:: https://codecov.io/gh/gmr/pgdumplib/branch/master/graph/badge.svg
           :target: https://codecov.io/github/gmr/pgdumplib?branch=master
           :alt: Code Coverage
        
        .. |License| image:: https://img.shields.io/pypi/l/pgdumplib.svg?
           :target: https://github.com/gmr/pgdumplib/blob/master/LICENSE
           :alt: BSD
        
        .. |Docs| image:: https://img.shields.io/readthedocs/pgdumplib.svg?
           :target: https://pgdumplib.readthedocs.io/
           :alt: Documentation Status
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
