Skip to main content

Flask Swagger Generator

Flask swagger generator is a library to create Swagger Open API definitions for Flask based applications. Swagger is an Interface Description Language for describing REST APIs expressed using JSON and YAML.

Installing

Install and update using pip:

pip install flask-swagger-init

Documentation and Examples

COMING SOON

A Simple Example

from flask import Flask
from flask_swagger_generator.generators.swagger_view import SwaggerView


# Create the flask app
app = Flask(__name__)
...
# Create all the routes for the app
...

# Note: The swagger view must be created after all the routes have been created
# Create and publish the swagger view
SwaggerView.init(app=app, 
                 application_version='1.0.0', 
                 application_name='My API', 
                 application_description='My API description')

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Based on

This application is based on the flask-swagger-generator project by Coding Kitties.

Metadata

Release files for flask-swagger-init 26.47.2

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-swagger-init 26.47.2
File Size Uploaded Provenance Actions
flask_swagger_init-26.47.2.tar.gz 17.1 kB Without provenance Details for flask_swagger_init-26.47.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flask-swagger-init 26.47.2
File Interpreter ABI Platform Actions
flask_swagger_init-26.47.2-py3-none-any.whl Python 3 none any Details for flask_swagger_init-26.47.2-py3-none-any.whl

Total release size: 46.0 kB

Release files / flask_swagger_init-26.47.2.tar.gz

Download URL flask_swagger_init-26.47.2.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8f458cf93a4606efefb0edb738ea455fdb4bf3a32316b2983f34d0372bb3286f
BLAKE2b-256 checksum
How to use checksums
af62027a384e9f524a798ded1e7ada90e3f2329989205436aad164e1d34450c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / flask_swagger_init-26.47.2-py3-none-any.whl

Download URL flask_swagger_init-26.47.2-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74c5db9e429585dccc65b7a144b428b073de896ca1fe790f1b370f25996bd1d1
BLAKE2b-256 checksum
How to use checksums
02803b46de80edf9d34c74086a86331cd03f2faa5f57ae8ed4da9cd80fde758e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for flask-swagger-init 26.47.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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