Skip to main content

Backports and enhancements for the contextlib module

Project description

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

Project details


Download files

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

Source Distribution

contextlib2-0.6.0.post1.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

contextlib2-0.6.0.post1-py2.py3-none-any.whl (9.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file contextlib2-0.6.0.post1.tar.gz.

File metadata

  • Download URL: contextlib2-0.6.0.post1.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for contextlib2-0.6.0.post1.tar.gz
Algorithm Hash digest
SHA256 01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e
MD5 d634281c2e61e575d8a68b9c56f8303a
BLAKE2b-256 0254669207eb72e3d8ae8b38aa1f0703ee87a0e9f88f30d3c0a47bebdb6de242

See more details on using hashes here.

File details

Details for the file contextlib2-0.6.0.post1-py2.py3-none-any.whl.

File metadata

  • Download URL: contextlib2-0.6.0.post1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for contextlib2-0.6.0.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3355078a159fbb44ee60ea80abd0d87b80b78c248643b49aa6d94673b413609b
MD5 3cbfdffaa11f340df1ea6345013bcbd4
BLAKE2b-256 8560370352f7ef6aa96c52fb001831622f50f923c1d575427d021b8ab3311236

See more details on using hashes here.

Supported by

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