Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

aftercare

Teardown orchestration: reverse-order cleanup with success logging.

cleanupexit-stacklifecycleteardown
Published22 Jul 2026
Direct dependencies0
Transitive dependenciesNot calculated

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.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

2 collected
aftercare-0.1.0-py3-none-any.whl

bdist_wheel · 3.5 KB · Python py3

Source file
aftercare-0.1.0.tar.gz

sdist · 2.89 KB · Python source

Source file

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_version:00e6954dcffb2f014fbab45e09e0e29e8a256696b991b5b2a25c934816da548c

Other collected versions

View all collected versions →