futures

Backport of the concurrent.futures package from Python 3

PSF 24 个版本 Python >=2.6, <3
Brian Quinlan <brian@sweetapp.com>
安装
pip install futures
poetry add futures
pipenv install futures
conda install futures
描述

.. image:: https://travis-ci.org/agronholm/pythonfutures.svg?branch=master :target: https://travis-ci.org/agronholm/pythonfutures :alt: Build Status

This is a backport of the concurrent.futures_ standard library module to Python 2.

It does not work on Python 3 due to Python 2 syntax being used in the codebase. Python 3 users should not attempt to install it, since the package is already included in the standard library.

To conditionally require this library only on Python 2, you can do this in your setup.py:

.. code-block:: python

setup(
    ...
    extras_require={
        ':python_version == "2.7"': ['futures']
    }
)

Or, using the newer syntax:

.. code-block:: python

setup(
    ...
    install_requires={
        'futures; python_version == "2.7"'
    }
)

.. warning:: The ProcessPoolExecutor class has known (unfixable) problems on Python 2 and should not be relied on for mission critical work. Please see Issue 29 <https://github.com/agronholm/pythonfutures/issues/29>_ and upstream bug report <https://bugs.python.org/issue9205>_ for more details.

.. _concurrent.futures: https://docs.python.org/library/concurrent.futures.html

版本列表
3.4.0 2022-10-31
3.3.0 2019-07-15
3.2.0 2017-11-30
3.1.1 2017-04-14
3.1.1.post1 2021-10-09
3.1.0 2017-04-14
3.0.5 2016-02-14
3.0.4 2016-01-18
3.0.3 2015-06-12
3.0.2 2015-05-12
3.0.1 2015-05-03
3.0.0 2015-05-03
2.2.0 2014-09-25
2.1.6 2014-01-14
2.1.5 2013-11-12
2.1.4 2013-06-23
2.1.3 2012-08-25
2.1.2 2011-01-08
2.1.1 2011-01-08
2.1 2010-12-23
2.0 2010-11-13
1.0 2009-10-25
0.2 2009-06-17
0.1 2009-06-04