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 currently has no dependencies.
Local testing is currently 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.6
CPython 2.7
CPython 3.4
CPython 3.5
CPython 3.6 (CPython development branch)
PyPy
tox also has a PyPy3 configuration, but it is not configured in Travis due to a known incompatibility.
To install several of the relevant runtimes on Fedora 23:
sudo dnf install python python3 pypy pypy3 sudo dnf copr enable -y mstuchli/Python3.5 sudo dnf install python35-python3
Metadata
Release files for contextlib2 0.5.2
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.5.2.tar.gz | 25.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| contextlib2-0.5.2-py3-none-any.whl | Python 3 | none | any | Details |
| contextlib2-0.5.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 41.4 kB
Release files / contextlib2-0.5.2.tar.gz
| Download URL | contextlib2-0.5.2.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83c8d5e75c1b372a5e1fbd267cd37a392cc53f13a0f74933075bff8213dc581e
|
|
BLAKE2b-256 checksum How to use checksums |
9de1812f0722bbfcff1ef7a8bb15abefe27a93bab04de00f8ebc93f2fe51fa5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / contextlib2-0.5.2-py3-none-any.whl
| Download URL | contextlib2-0.5.2-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6271717cdbfbe12e6aa3dde1bb8389f454f58100cb5615a2802ca1ab8e599702
|
|
BLAKE2b-256 checksum How to use checksums |
43334cf6eacba5e4f36c3753845b66ce9c6a27b790e9c9a932f9c942d93adbd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / contextlib2-0.5.2-py2-none-any.whl
| Download URL | contextlib2-0.5.2-py2-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
f446cafc2da6b6bebf2a9adc9779510772f398aa1b24711876652799e9db5984
|
|
BLAKE2b-256 checksum How to use checksums |
d34b38b1d2c7e16842481592fb041e72c57362199532bfb6b43f3cc43f780f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |