flask-schematics-swagger-0.0.6
توضیحات
Flask Swagger generator for Schematics models.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | flask-schematics-swagger-0.0.6 |
| نام | flask-schematics-swagger |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tarik Yilmaz |
| ایمیل نویسنده | tarikyilmaz.54@gmail.com |
| آدرس صفحه اصلی | https://github.com/trk54ylmz/flask-schematics-swagger |
| آدرس اینترنتی | https://pypi.org/project/flask-schematics-swagger/ |
| مجوز | - |
### Flask Schematics Swagger
[](https://github.com/trK54Ylmz/flask-schematics-swagger/actions/workflows/pr.yaml)
[](https://badge.fury.io/py/flask-schematics-swagger)
Flask Swagger generator for Schematics models.
#### Install
Install library by using `pip` command,
```bash
$ pip3 install flask-schematics-swagger
```
#### Usage
```python
from flask import Flask, request
from fss import FlaskSchematicsSwagger
app = Flask('app')
fss = FlaskSchematicsSwagger(app)
@app.get('/users')
def get_users() -> dict:
"""
Get list of users
:parameter query integer user_id: the user id filter. default: None
:response 200 schema.user.UserGetResponse:
:return: flask response as dictionary
"""
user_id = request.args.get('user_id')
# ...
return response.to_primitive()
if __name__ == '__main__':
fss.add_route()
app.run()
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.1.1 | schematics |
| >=2.0.0 | flask |
| >=2.2 | wtforms |
| >=3.7.4.3 | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl flask-schematics-swagger-0.0.6:
pip install flask-schematics-swagger-0.0.6.whl
نصب پکیج tar.gz flask-schematics-swagger-0.0.6:
pip install flask-schematics-swagger-0.0.6.tar.gz