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

Metadata

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 Provenance Actions
contextlib2-0.6.0.post1.tar.gz 29.7 kB Without provenance Details for contextlib2-0.6.0.post1.tar.gz

Built distribution (wheel)

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

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

Security for contextlib2 0.6.0.post1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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