Flask Schematics Swagger
Flask Swagger generator for Schematics models.
Install
Install library by using pip command,
$ pip3 install flask-schematics-swagger
Usage
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()
Metadata
Release files for flask-schematics-swagger 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask-schematics-swagger-0.0.6.tar.gz | 2.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_schematics_swagger-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 MB
Release files / flask-schematics-swagger-0.0.6.tar.gz
| Download URL | flask-schematics-swagger-0.0.6.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4901d3c663c588596bcf0fc51efa2cd4e29616154aca1eb0a79ee516396c8b2b
|
|
BLAKE2b-256 checksum How to use checksums |
76da436b82dadc0c0b9a1abaf013d668650f3e96378027f77a3a3e2548235cf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / flask_schematics_swagger-0.0.6-py3-none-any.whl
| Download URL | flask_schematics_swagger-0.0.6-py3-none-any.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ac8075344f0a7a37976e5fb7aa632b436dfc744bc665895e024fd1053bef6c1
|
|
BLAKE2b-256 checksum How to use checksums |
c5452c50520fce3e76c0169dd1df5c55f3a83eeba867c896b277b80fc1193551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|