mostafa / simplru

A backport of Python 3 LRU Cache functionality for Python 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A backport of Python 3 LRU Cache functionality for Python 2

License:GNU General Public License v3.0


Languages

Language:Python 100.0%