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)
| File | Size | Uploaded | |
|---|---|---|---|
| contextlib2-0.6.0.post1.tar.gz | 29.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|