Catalog PyPI
PACKAGE EXPLORERView in registry

aftercare

PyPI

Teardown orchestration: reverse-order cleanup with success logging.

cleanupexit-stacklifecycleteardown
Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 21:14 UTC

README

Version 0.1.0 documentation

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

pip install aftercare

Usage

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.022 Jul 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
coldbricks/aftercare

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:71f8a064259fd823a542ea7623ec7a4a18b17d637c15a807621b39520369e795