Registry / web-framework / flask-openapi3-scalar

flask-openapi3-scalar

JSON →
library1.44.15pypypiunverified

Provides Scalar UI integration for flask-openapi3, allowing OpenAPI documentation to be rendered with Scalar's modern UI. Current version: 1.44.15. Release cadence: frequent updates.

pip install flask-openapi3-scalar
INSTALL
IMPORT
SIG · FLASK-OPENAPI3-SCA
F
flask-openapi3-scalar
web-frameworkpythonv1.44.15
Install
4.0s avg
Import
Disk
35MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.44.15 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 36.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.0s · import 0.000s · 36MB
35MB installed
● package 35MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ScalarUI
from flask_openapi3_scalar import ScalarUI
from flask_openapi3_scalar import ScalarUI

Quickstart: create a Flask app with OpenAPI and register ScalarUI to serve interactive documentation at /scalar.

from flask import Flask from flask_openapi3 import OpenAPI from flask_openapi3_scalar import ScalarUI app = Flask(__name__) api = OpenAPI(app) spec = api.get_spec() ScalarUI(spec, url_prefix='/scalar').register(app) @app.route('/') def home(): return 'Hello, World!' if __name__ == '__main__': app.run()
Debug
Known issues
breakingThe package was originally named 'flask-openapi3-scalar' but the import path may change. Ensure you use the correct module name 'flask_openapi3_scalar' (underscores).
fix
Use 'from flask_openapi3_scalar import ScalarUI' instead of hyphens.
affects: all
gotchaThe OpenAPI spec must be passed to ScalarUI. If you don't pass the spec, it may fail silently or show an empty UI.
fix
Always pass the spec object: ScalarUI(spec, ...) where spec is obtained from api.get_spec().
affects: all
deprecatedThe 'url_prefix' parameter may be renamed or deprecated in future versions. Check changelog.
fix
Use the current parameter name as per documentation; if deprecated, use the new name.
affects: <=1.44.15
Upgrade
Version history
1.44.15latest on PyPI · released Feb 7, 2026
Audit
Dependencies
flask-openapi3requiredCore dependency for OpenAPI specification generation
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
flask-openapi3-scalar — pip install flask-openapi3-scalar · libregistry