Skip to main content

Backport of functools.lru_cache

Project description

https://img.shields.io/pypi/v/backports.functools_lru_cache.svg https://img.shields.io/pypi/pyversions/backports.functools_lru_cache.svg tests Ruff Code style: Black https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest https://img.shields.io/badge/skeleton-2023-informational https://tidelift.com/badges/package/pypi/backports.functools_lru_cache

Backport of functools.lru_cache from Python 3.3 as published at ActiveState.

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.

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

backports.functools_lru_cache-2.0.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

backports.functools_lru_cache-2.0.0-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file backports.functools_lru_cache-2.0.0.tar.gz.

File metadata

File hashes

Hashes for backports.functools_lru_cache-2.0.0.tar.gz
Algorithm Hash digest
SHA256 dcbfa5e0dae8a014168807c9e026d33eead71df5af76c1fb78fd248bf07f6f99
MD5 6865f5fb15673829b11207dfca4ceee6
BLAKE2b-256 c0dca1962ae19f83d2a92b8ac76ad2dfdeccf2748464f1560a51d343b9e2609a

See more details on using hashes here.

File details

Details for the file backports.functools_lru_cache-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for backports.functools_lru_cache-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0a754323a46847735a112677fb8807b45f6d824d02a5795a50905218ac56a0d6
MD5 b0be5532a80eeda81bceffd50ba79408
BLAKE2b-256 c6c64761a2ccb03d650ca803b11a7cdd69ff0696926d3fea218c8ca22c808448

See more details on using hashes here.

Supported by

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