backports.functools-lru-cache

Backport of functools.lru_cache

18 个版本 Python >=3.8
Raymond Hettinger <raymond.hettinger@gmail.com>
安装
pip install backports.functools-lru-cache
poetry add backports.functools-lru-cache
pipenv install backports.functools-lru-cache
conda install backports.functools-lru-cache
描述

.. image:: https://img.shields.io/pypi/v/backports.functools_lru_cache.svg :target: https://pypi.org/project/backports.functools_lru_cache

.. image:: https://img.shields.io/pypi/pyversions/backports.functools_lru_cache.svg

.. image:: https://github.com/jaraco/backports.functools_lru_cache/actions/workflows/main.yml/badge.svg :target: https://github.com/jaraco/backports.functools_lru_cache/actions?query=workflow%3A%22tests%22 :alt: tests

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json :target: https://github.com/astral-sh/ruff :alt: Ruff

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black :alt: Code style: Black

.. image:: https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest :target: https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2023-informational :target: https://blog.jaraco.com/skeleton

.. image:: https://tidelift.com/badges/package/pypi/backports.functools_lru_cache :target: https://tidelift.com/subscription/pkg/pypi-backports.functools_lru_cache?utm_source=pypi-backports.functools_lru_cache&utm_medium=readme

Backport of functools.lru_cache from Python 3.3 as published at ActiveState <http://code.activestate.com/recipes/578078/>_.

Usage

Consider using this technique for importing the 'lru_cache' function::

try:
    from functools import lru_cache
except ImportError:
    from backports.functools_lru_cache import lru_cache

For Enterprise

Available as part of the Tidelift Subscription.

This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.

Learn more <https://tidelift.com/subscription/pkg/pypi-backports.functools_lru_cache?utm_source=pypi-backports.functools_lru_cache&utm_medium=referral&utm_campaign=github>_.

版本列表
2.0.0 2023-12-13
1.6.6 2023-07-09
1.6.5 2023-06-24
1.6.4 2021-04-11
1.6.3 2021-03-24
1.6.2 2021-03-24
1.6.1 2019-11-02
1.6.0 2019-11-02
1.5 2018-02-04
1.4 2017-05-13
1.3 2016-09-30
1.2.1 2016-01-01
1.2 2015-12-26
1.1 2015-12-08
1.0.3 2015-08-13
1.0.2 2015-07-31
1.0.1 2014-06-22
1.0 2014-05-14