flake8-fastapi-route-case-0.1.0
توضیحات
Flake8 extension to check FastAPI routes all use the same case
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flake8-fastapi-route-case-0.1.0 |
| نام | flake8-fastapi-route-case |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Harry Lees |
| ایمیل نویسنده | harry.lees@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/flake8-fastapi-route-case/ |
| مجوز | MIT |
# Flake8 FastAPI Route Case
A Flake8 FastAPI plugin to ensure all FastAPI routes follow the same case.
## Rationale
In a project, you may have many FastAPI endpoints, this plugin will ensure
all FastAPI routes follow the same case so you don't end up with mismatched
case.
```python
@router.get("/users/user_info")
def get_user_info():
...
# should be /users/user_info to follow naming convention
@router.post("/users/userInfo")
def post_user_info():
...
```
نیازمندی
| مقدار | نام |
|---|---|
| >=6.0.0 | importlib-metadata |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.1 | Python |
نحوه نصب
نصب پکیج whl flake8-fastapi-route-case-0.1.0:
pip install flake8-fastapi-route-case-0.1.0.whl
نصب پکیج tar.gz flake8-fastapi-route-case-0.1.0:
pip install flake8-fastapi-route-case-0.1.0.tar.gz