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)
| 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
|