Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 1.37 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.37 KB

Simplru

FOSSA Status

A backport of Python 3 LRU Cache functionality for Python 2

Installation

To install simplru, you can use setuptools (install from source) or another python package manager (e.g. pip or easy_install).

  • To install from source code, clone the repository (you should have git installed) and then run setup.py:
$ git clone https://github.com/mostafa/simplru.git
$ cd simplru
$ python setup.py install
  • To install using a python package manager via binary package, simply run this command (in this case we've used pip, but any package manager is accepted as long as it uses PyPI):
$ pip install simplru

Edit mode installation

$ cd path/to/project
$ pip install -e .

Tests

You can find an tests in tests directory.

Examples

Refer to Python 3 documentation for examples of LRU cache usage.

License

FOSSA Status