semvec/pypi-packages huggingface dataset:
context_tools 0.2
Utility functions for context managers
License: MIT License
Keywords: context managers decorators generators tests

Python 2.5's contextlib provides some handy functions for dealing with context managers, but it's pretty limited. The code in context_tools allows you to use context managers as decorators, as setUp and tearDown functions in unittest tests, and as decorators for generators.

In addition to Python 2.5 and 3.0, context_tools is available for Python 2.4.