Metadata-Version: 2.4
Name: aftercare
Version: 0.1.0
Summary: Teardown orchestration: reverse-order cleanup with success logging.
Project-URL: Homepage, https://github.com/coldbricks/aftercare
Project-URL: Repository, https://github.com/coldbricks/aftercare
Project-URL: Issues, https://github.com/coldbricks/aftercare/issues
Author-email: Coldbricks <coldbricks@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: cleanup,exit-stack,lifecycle,teardown
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
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: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# aftercare

Teardown orchestration for Python. Register cleanup steps, then run them in
reverse order on exit — logging each one's success or failure without
short-circuiting the rest.

## Install

```bash
pip install aftercare
```

## Usage

```python
from aftercare import Aftercare

order = []
with Aftercare() as ac:
    ac.add(lambda: order.append("close_db"), name="close_db")
    ac.add(lambda: order.append("flush_cache"), name="flush_cache")
    # main work...

assert order == ["flush_cache", "close_db"]
assert all(r.ok for r in ac.results)
```

## Roadmap

This is an early **0.1.0** release with active development planned:

- Async cleanup support
- Timeout and cancel policies
- Structured result export for ops tooling

## Author

Coldbricks — coldbricks@gmail.com
