Skip to main content

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.

Source Distributions

context_tools-0.2.tar.gz (3.1 kB view details)

Uploaded Source

context_tools-0.2-py3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distributions

context_tools-0.2-py2.5.egg (4.6 kB view details)

Uploaded Source

context_tools-0.2-py2.4.egg (4.6 kB view details)

Uploaded Source

File details

Details for the file context_tools-0.2.tar.gz.

File metadata

File hashes

Hashes for context_tools-0.2.tar.gz
Algorithm Hash digest
SHA256 b89b69431ce24c4a37f9a88709ecc9a402ecd74000b3eb039b2825ccd71f3360
MD5 640a84d405a8f0f75c894f92dd91bd08
BLAKE2b-256 e72e7ebe343d6c08f0777dcbb850732a0de440e96caad31465d004ae2db0198d

See more details on using hashes here.

File details

Details for the file context_tools-0.2-py3.tar.gz.

File metadata

File hashes

Hashes for context_tools-0.2-py3.tar.gz
Algorithm Hash digest
SHA256 a012090bb823df412b67ef83d0f56eafbf8b2fe1f0460648bc9a09e0f57b3050
MD5 3b707d88bcb3c9b75212ca46ff50b729
BLAKE2b-256 a958a18402e53052de44c44686bcb98f385af0c7fe6c24112410c5ac41623c92

See more details on using hashes here.

File details

Details for the file context_tools-0.2-py2.5.egg.

File metadata

File hashes

Hashes for context_tools-0.2-py2.5.egg
Algorithm Hash digest
SHA256 04f6cc62c8c47ef165ff8fb20febdaca63239629061781213fd943e4b10836fa
MD5 610032b641bb87e76520a46d83a423ca
BLAKE2b-256 d291ec48cf0a47269334a17cf8e90312d0aa805c107f215488cde9125d730d7e

See more details on using hashes here.

File details

Details for the file context_tools-0.2-py2.4.egg.

File metadata

File hashes

Hashes for context_tools-0.2-py2.4.egg
Algorithm Hash digest
SHA256 8784f802acf2c5aff81eead2e1fb3b261cc88fba780c97cad630a47422221a58
MD5 c1ea11b66eb3dda4c2a3af7918df851a
BLAKE2b-256 91685dc21b10a1173673d856574aa8eb865dfec7970fbc2107a3257eec23b43d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page