asyncio-cache-0.0.1
توضیحات
A python library for asyncio caches (like functools cache and lru_cache)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | asyncio-cache-0.0.1 |
| نام | asyncio-cache |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matan Perelman |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/matan1008/asyncio-cache |
| آدرس اینترنتی | https://pypi.org/project/asyncio-cache/ |
| مجوز | - |
[](https://github.com/matan1008/asyncio-cache/actions/workflows/python-app.yml "Python application action")
[](https://pypi.org/project/asyncio-cache/ "PyPi package")
[](https://lgtm.com/projects/g/matan1008/asyncio-cache/context:python)
# asyncio-cache
A python library for asyncio caches (like functools cache and lru_cache)
# Installation
Install the last released version using `pip`:
```shell
python3 -m pip install --user -U asyncio-cache
```
Or install the latest version from sources:
```shell
git clone git@github.com:matan1008/asyncio-cache.git
cd asyncio-cache
python3 -m pip install --user -U -e .
```
# Usage
The usage is similar to `functools.cache` and `functools.lru_cache` usage:
```python
from asyncio_cache import cache
@cache
async def cached_read(reader):
return await reader.read(100)
```
نحوه نصب
نصب پکیج whl asyncio-cache-0.0.1:
pip install asyncio-cache-0.0.1.whl
نصب پکیج tar.gz asyncio-cache-0.0.1:
pip install asyncio-cache-0.0.1.tar.gz