fastapiccache-0.1.1
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fastapiccache-0.1.1 |
| نام | fastapiccache |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Sonbolian |
| ایمیل نویسنده | dsal3389@gmail.com |
| آدرس صفحه اصلی | https://github.com/dsal3389/fastapicache |
| آدرس اینترنتی | https://pypi.org/project/fastapiccache/ |
| مجوز | MIT |
# fastapicache
fastapicache is a package that privde simple and fast caching system for the fastapi package
## install
note for the double C in the name
```sh
pip install fastapiccache
```
## usage
### fast and simple
```py
import time
from fastapi import FastAPI
from fastapicache import fastapicache
app = FastAPI()
@app.get('/')
@fastapicache(revalidate=0)
async def index(name: str = "unknown"):
time.sleep(4)
return f"{name}: hello world"
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl fastapiccache-0.1.1:
pip install fastapiccache-0.1.1.whl
نصب پکیج tar.gz fastapiccache-0.1.1:
pip install fastapiccache-0.1.1.tar.gz