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.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: contextlib2-0.6.0.tar.gz
  • Upload date:
  • Size: 29.6 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.tar.gz
Algorithm Hash digest
SHA256 7197aa736777caac513dbd800944c209a49765bf1979b12b037dce0277077ed3
MD5 d03a631073b40073b5c41364ad8f5979
BLAKE2b-256 f008ac376929b2c51e2d5fd4b9fa1f72eca0162c990edc526bdd3b16449323ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: contextlib2-0.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.7 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-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9d2c67f18c1f9b6db1b46317f7f784aa82789d2ee5dea5d9c0f0f2a764eb862e
MD5 e5fd80110e7ee1c7e321ed90dd700fd3
BLAKE2b-256 cfe5989798d38831a8505d62687c94b0f2954ff0a40782e25f9add8ed675dc1f

See more details on using hashes here.

Supported by

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