Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Utility functions for context managers

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for context_tools, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size context_tools-0.2-py2.4.egg (4.6 kB) File type Egg Python version 2.4 Upload date Hashes View
Filename, size context_tools-0.2-py2.5.egg (4.6 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size context_tools-0.2-py3.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View
Filename, size context_tools-0.2.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page