Skip to main content

aws_flask_lambda_swagger_ui

Version 0.1.3 includes the templates folder and uses Flask v3.0.3 and werkzeug v3.0.3

Installation

Install the package using pip:

pip install aws-flask-lambda-swagger-ui

Usage

from flask import Flask
from aws_flask_lambda_swagger_ui import get_swaggerui_blueprint

app = Flask(__name__)

SWAGGER_URL = '/aws/test/docs' 
API_URL = 'https://petstore.swagger.io/v2/swagger.json' 

swaggerui_blueprint = get_swaggerui_blueprint(
    SWAGGER_URL,  
    API_URL,
    config={  
        'app_name': "AWS Lambda application"
    }
)

app.register_blueprint(swaggerui_blueprint, url_prefix=SWAGGER_URL)

if __name__ == '__main__':
    app.run(debug=True)

When the Flask app is running, just access the swagger url:

http://localhost:5000/aws/test/docs/

Metadata

Release files for aws-flask-lambda-swagger-ui 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-flask-lambda-swagger-ui 0.1.4
File Size Uploaded
aws_flask_lambda_swagger_ui-0.1.4.tar.gz 3.4 kB Details

Release files / aws_flask_lambda_swagger_ui-0.1.4.tar.gz

Download URL aws_flask_lambda_swagger_ui-0.1.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
13b324081d8fac42a83ad3dc62f1a44df9f826aa9a0e42dc6b87a3832d9968a9
BLAKE2b-256 checksum
How to use checksums
cc03adfa95ac4059f917dd93094307624289f551dd5cee6cb351aba685ec11a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.2

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