Metadata-Version: 2.4
Name: tba-provider-replay-memory
Version: 0.4.0.dev3
Summary: Non-durable single-process replay reservation provider.
License-Expression: Apache-2.0
Requires-Python: >=3.10,<3.16
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 :: 3.15
Requires-Dist: tba-bases-replay (==0.4.0.dev2)
Requires-Dist: tba-contracts-identity (==0.4.0.dev2)
Requires-Dist: tba-contracts-security-trust (==0.1.0)
Requires-Dist: tba-provider-security-proof-pkce (==0.1.0)
Description-Content-Type: text/markdown

# tba-provider-replay-memory

<!-- BEGIN TBA README HEADER -->
<p align="center">
<a href="https://github.com/tigrbl/tigrbl_auth#readme"><img src="https://raw.githubusercontent.com/tigrbl/tigrbl_auth/master/docs/assets/tba-brand.png" alt="TBA · Tigrbl Auth" width="240"></a>
</p>
<p align="center">
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/20-providers/tba-provider-replay-memory/pyproject.toml"><img alt="Checkout: 0.4.0.dev2" src="https://img.shields.io/badge/Checkout-0.4.0.dev2-1f6feb"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/20-providers/tba-provider-replay-memory/pyproject.toml"><img alt="Python: &gt;=3.10,&lt;3.16" src="https://img.shields.io/badge/Python-%3E%3D3.10%2C%3C3.16-3776ab"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/20-providers/tba-provider-replay-memory/pyproject.toml"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-525252"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/20-providers"><img alt="Layer: 20 providers" src="https://img.shields.io/badge/Layer-20%20providers-0a7f5a"></a>
<a href="https://pypi.org/project/tba-provider-replay-memory/"><img alt="PyPI version for tba-provider-replay-memory" src="https://img.shields.io/pypi/v/tba-provider-replay-memory?label=tba-provider-replay-memory%20PyPI"></a>
</p>
<p align="center">
<a href="https://pepy.tech/project/tba-provider-replay-memory"><img alt="Monthly PyPI downloads for tba-provider-replay-memory" src="https://static.pepy.tech/badge/tba-provider-replay-memory/month"></a>
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/20-providers/tba-provider-replay-memory/README.md#verification"><img alt="Evidence: verification" src="https://img.shields.io/badge/Evidence-verification-8250df"></a>
</p>
<!-- END TBA README HEADER -->

Atomic process-local replay reservations for tests, development, and explicit
single-process deployments. State is lost on restart and is not shared across
workers, so this provider is not suitable for horizontally scaled production.

## Quick start

With [uv](https://docs.astral.sh/uv/) available, save the example as `quickstart.py`. This command uses the published package in an isolated Python 3.12 environment.

```python
from tba_provider_replay_memory import MemoryReplayProvider

assert callable(MemoryReplayProvider)
```

```bash
uv run --isolated --no-project --python 3.12 --with "tba-provider-replay-memory==0.4.0.dev2" python quickstart.py
```

The import and assertion succeed when the MemoryReplayProvider entry point is available.

## Verification

The quick start was run with the pinned distribution from PyPI and its declared dependencies. See the [public package entry point](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/20-providers/tba-provider-replay-memory/src/tba_provider_replay_memory/__init__.py).

