Metadata-Version: 2.4
Name: pyramid_retry
Version: 2.2
Summary: An execution policy for Pyramid that supports retrying requests after certain failure exceptions.
Author-email: Michael Merickel <pylons-discuss@googlegroups.com>
License-Expression: MIT
Project-URL: Changelog, https://docs.pylonsproject.org/projects/pyramid_retry/en/latest/changes.html
Project-URL: Documentation, https://docs.pylonsproject.org/projects/pyramid_retry/en/latest/index.html
Project-URL: Homepage, https://github.com/Pylons/pyramid_retry
Project-URL: Issue Tracker, https://github.com/Pylons/pyramid_retry/issues
Keywords: attempt,pyramid,retry,wsgi
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Pyramid
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
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 :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: pyramid>=1.9
Requires-Dist: zope.interface
Dynamic: license-file

=============
pyramid_retry
=============

.. image:: https://img.shields.io/pypi/v/pyramid_retry.svg
    :target: https://pypi.python.org/pypi/pyramid_retry

.. image:: https://github.com/Pylons/pyramid_retry/actions/workflows/ci-tests.yml/badge.svg?branch=main
    :target: https://github.com/Pylons/pyramid_retry/actions/workflows/ci-tests.yml?query=branch%3Amain

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

``pyramid_retry`` is an execution policy for Pyramid that wraps requests and
can retry them a configurable number of times under certain "retryable" error
conditions before indicating a failure to the client.

See https://docs.pylonsproject.org/projects/pyramid_retry/en/latest/
or ``docs/index.rst`` in this distribution for detailed
documentation.

2.2 (2026-11-23)
================

- Drop support for Python 2.7 and 3.4 through 3.10.

- Add support for Python 3.11, 3.12, 3.13, 3.14, and 3.15.

- Stop using the deprecated ``pkg_resources`` api in the docs.

- Switch packaging metadata from ``setup.py`` to ``pyproject.toml`` and use
  an SPDX license expression. The ``testing`` and ``docs`` extras are replaced
  by dependency groups.

2.1.1 (2020-03-21)
==================

- Ensure the threadlocals are properly popped if the ``activate_hook`` throws
  an error or the request body fails to read due to a client disconnect.
  See https://github.com/Pylons/pyramid_retry/pull/20

2.1 (2019-09-30)
================

- Add ``exception`` and ``response`` attributes to the
  ``pyramid_retry.IBeforeRetry`` event.
  See https://github.com/Pylons/pyramid_retry/pull/19

2.0 (2019-06-06)
================

- No longer call ``invoke_exception_view`` if the policy catches an exception.
  If on the last attempt or non-retryable then the exception will now bubble
  out of the app and into WSGI middleware.
  See https://github.com/Pylons/pyramid_retry/pull/17

1.0 (2018-10-18)
================

- Support Python 3.7.

- Update the version we require for Pyramid to a non-prerelease so that pip and
  other tools don't accidentally install pre-release software.
  See https://github.com/Pylons/pyramid_retry/pull/13

0.5 (2017-06-19)
================

- Update the policy to to track changes in Pyramid 1.9b1. This is an
  incompatible change and requires at least Pyramid 1.9b1.
  See https://github.com/Pylons/pyramid_retry/pull/11

0.4 (2017-06-12)
================

- Add the ``mark_error_retryable`` function in order to easily mark
  certain errors as retryable for ``pyramid_retry`` to detect.
  See https://github.com/Pylons/pyramid_retry/pull/8

- Add the ``IBeforeRetry`` event that can be subscribed to be notified
  when a retry is about to occur in order to perform cleanup on the
  ``environ``. See https://github.com/Pylons/pyramid_retry/pull/9

0.3 (2017-04-10)
================

- Support a ``retry.activate_hook`` setting which can return a per-request
  number of retries. See https://github.com/Pylons/pyramid_retry/pull/4

- Configuration is deferred so that settings may be changed after
  ``config.include('pyramid_retry')`` is invoked until the configurator
  is committed. See https://github.com/Pylons/pyramid_retry/pull/4

- Rename the view predicates to ``last_retry_attempt`` and
  ``retryable_error``. See https://github.com/Pylons/pyramid_retry/pull/3

- Rename ``pyramid_retry.is_exc_retryable`` to
  ``pyramid_retry.is_error_retryable``.
  See https://github.com/Pylons/pyramid_retry/pull/3

0.2 (2017-03-02)
================

- Change the default attempts to 3 instead of 1.

- Rename the view predicates to ``is_last_attempt`` and ``is_exc_retryable``.

- Drop support for the ``tm.attempts`` setting.

- The ``retry.attempts`` setting is always set now in
  ``registry.settings['retry.attempts']`` so that apps can inspect it.

0.1 (2017-03-01)
================

- Initial release.
