Metadata-Version: 2.4
Name: Products.ZPsycopgDA
Version: 5.0
Summary: Zope database adapter for PostGreSQL
Home-page: https://github.com/dataflake/Products.ZPsycopgDA
Author: Federico Di Gregorio
Author-email: fog@initd.org
Maintainer: Jens Vagelpohl
Maintainer-email: jens@dataflake.org
License: ZPL-2.1
Project-URL: Documentation, https://zpsycopgda.readthedocs.io
Project-URL: Issue Tracker, https://github.com/dataflake/Products.ZPsycopgDA/issues
Project-URL: Sources, https://github.com/dataflake/Products.ZPsycopgDA
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Zope
Classifier: Framework :: Zope :: 5
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Database
Classifier: Topic :: Database :: Front-Ends
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
License-File: LICENSE_OLD.txt
Requires-Dist: psycopg2>=2.4.2
Requires-Dist: Zope>=5
Requires-Dist: Products.ZSQLMethods
Provides-Extra: docs
Requires-Dist: Sphinx; extra == "docs"
Requires-Dist: furo; extra == "docs"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

.. image:: https://github.com/dataflake/Products.ZPsycopgDA/actions/workflows/tests.yml/badge.svg
   :target: https://github.com/dataflake/Products.ZPsycopgDA/actions/workflows/tests.yml

.. image:: https://coveralls.io/repos/github/dataflake/Products.ZPsycopgDA/badge.svg?branch=master
   :target: https://coveralls.io/github/dataflake/Products.ZPsycopgDA?branch=master

.. image:: https://readthedocs.org/projects/zpsycopgda/badge/?version=latest
   :target: https://zpsycopgda.readthedocs.io
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/Products.ZPsycopgDA.svg
   :target: https://pypi.org/project/Products.ZPsycopgDA/
   :alt: Latest stable release on PyPI

.. image:: https://img.shields.io/pypi/pyversions/Products.ZPsycopgDA.svg
   :target: https://pypi.org/project/Products.ZPsycopgDA/
   :alt: Stable release supported Python versions


=====================
 Products.ZPsycopgDA
=====================

This is a Zope database adapter for PostGreSQL based on psycopg2__ for Zope 4
and up on all Python versions supported by Zope 4 and 5.

The code was forked from the original project at
https://github.com/psycopg/ZPsycopgDA because it appears to be dead. The old
code is not compatible with Zope 4/5 and Python 3.

.. __: https://pypi.org/project/psycopg2/

Contributors
============

- Federico Di Georgio: Original Author
- Daniele Varrazzo: Separate ZPsycopgDA project
- Rijk Stofberg: Eggifying
- Jens Vagelpohl: Compatibility with Zope 4 and up; drop Zope 2 and Zope 3

Changelog
=========

5.0 (2025-11-19)
----------------

- Convert to PEP 420-style namespace package.


4.4 (2025-10-30)
----------------

- Reverted connection reconnect patch from version 4.3. It did not work as
  expected.

- Add support for Python 3.14.

- Drop support for Python 3.9.


4.3 (2025-10-07)
----------------

- Ensure connections always reconnect deterministically after a server
  disconnect (or crash).
  Previously the pool may have harboured long-running connections that only
  got reconnected when the pool felt like returning it to the application.
  Those connections can easily have lingered for a long time, causing
  user-visible errors long after the original problem was fixed, e.g. when
  the server has restarted a couple of hours ago.
  (`#7 <https://github.com/dataflake/Products.ZPsycopgDA/pull/7>`_)

- Add support for Python 3.13.

- Drop support for Python 3.7 and 3.8.


4.2 (2023-12-07)
----------------

- Add support for Python 3.12.

- Ensure connection always get properly initialized.

- Add support for PostgreSQL 13.


4.1 (2023-10-04)
----------------

- Add support for reading the connection string from an environment variable.
  Use ``ENV:DB_CONN`` as connection string to look up the actual connection
  string in the environment variable ``DB_CONN``.


4.0 (2023-02-02)
----------------

- Drop support for Python 2.7, 3.5, 3.6.


3.1 (2023-01-16)
----------------

- Update to latest meta/config


3.0 (2023-01-05)
----------------

- Add support for Python 3.11


3.0b1 (2022-08-31)
------------------

- Re-released under the Zope Public License (ZPL) version 2.1

- Updated package layout and name to conform to current Zope standards

- Added compatibility with Zope 4 and Zope 5

- Removed compatibility with Zope 2 and Zope 3

- Added unit and functional tests


2.4.7
-----

- Removed ZPsycopgDA dependencies on deprecated (Python or Zope) features.


2.4.6
-----

- Added all the supported isolation level options
- Fixed pool bugs (psycopg issues #123, #125, #142)


2.4.4
-----

- Make this and egg.

