Skip to main content

Flask Schematics Swagger

PR PyPI version

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)

Source distribution for flask-schematics-swagger 0.0.6
File Size Uploaded
flask-schematics-swagger-0.0.6.tar.gz 2.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-schematics-swagger 0.0.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page