Skip to main content

A library for generating and publishing Swagger specifications for Flask applications.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-swagger-init-24.14.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_swagger_init-24.14.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file flask-swagger-init-24.14.1.tar.gz.

File metadata

  • Download URL: flask-swagger-init-24.14.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for flask-swagger-init-24.14.1.tar.gz
Algorithm Hash digest
SHA256 0a412c07dc138f06880003580f61a8000fa44f65da3530c254073eff281c8042
MD5 481d76264536e3d6c577752dd2480b0b
BLAKE2b-256 76a8507f5cd89ca99376c24416f38bc58007e7d74b78d03b56425ff488e69fa3

See more details on using hashes here.

File details

Details for the file flask_swagger_init-24.14.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_swagger_init-24.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6888a1204b71e254bced1640e1c681992c2502ebfb566a4e8337095fbfaae22
MD5 9959ab247c99ed740cf69cfaeb53445a
BLAKE2b-256 c6a45f5f4dd10bd4f0c3229032f48fb2e8c63549722296e9eba4b2ed9c82637f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page