Skip to main content
Jazzband Latest Docs https://img.shields.io/travis/jazzband/contextlib2/master.svg https://coveralls.io/repos/github/jazzband/contextlib2/badge.svg?branch=master https://landscape.io/github/jazzband/contextlib2/master/landscape.svg

contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions.

It also serves as a real world proving ground for possible future enhancements to the standard library version.

Development

contextlib2 has no runtime dependencies, but requires unittest2 for testing on Python 2.x, as well as setuptools and wheel to generate universal wheel archives.

Local testing is just a matter of running python test_contextlib2.py.

You can test against multiple versions of Python with tox:

pip install tox
tox

Versions currently tested in both tox and Travis CI are:

  • CPython 2.7

  • CPython 3.4

  • CPython 3.5

  • CPython 3.6

  • CPython 3.7

  • PyPy

  • PyPy3

Release files for contextlib2 0.6.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contextlib2 0.6.0.post1
File Size Uploaded
contextlib2-0.6.0.post1.tar.gz 29.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for contextlib2 0.6.0.post1
File Interpreter ABI Platform
contextlib2-0.6.0.post1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 39.4 kB

Release files / contextlib2-0.6.0.post1.tar.gz

Download URL contextlib2-0.6.0.post1.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e
BLAKE2b-256 checksum
How to use checksums
0254669207eb72e3d8ae8b38aa1f0703ee87a0e9f88f30d3c0a47bebdb6de242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / contextlib2-0.6.0.post1-py2.py3-none-any.whl

Download URL contextlib2-0.6.0.post1-py2.py3-none-any.whl
Size 9.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3355078a159fbb44ee60ea80abd0d87b80b78c248643b49aa6d94673b413609b
BLAKE2b-256 checksum
How to use checksums
8560370352f7ef6aa96c52fb001831622f50f923c1d575427d021b8ab3311236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

21.6.0

2 release files

This release

0.6.0.post1 This release

2 release files

0.6.0

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

3 release files

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page