Get started
Listing · doc · versions

Every version keeps its own digest, source commit and signed report.

Compare two versions claim by claim, or subscribe and get a notice with the diff when the source changes. Back to the listing.

All versions

VersionArtifact digestSourceReportClaims verifiedSignedStatus
v2sha256:6cd24611c6894d0f…sha256:e044c…sha256:a758adecb…114 of 1152026-11-19latest at floor
v1sha256:28ea9ead98f146b6…sha256:e044c…sha256:fbf0655c2…93 of 992026-11-18superseded

Address any version by number or digest: 07fc75c1-8f18-4764-bc81-9c92c0664777@latest, 07fc75c1-8f18-4764-bc81-9c92c0664777@v1 or sha256:… in get_artifact. @latest is the newest version whose report meets its floor.

Claim-level diff

v1 to v2: 68 added, 40 changed, 52 removed, 7 unchanged (hidden).

ChangeClaimSourceMatch
changed (source, entailment)
CLM-0032 request_tearing_down is always sent, even if an exception is raised.
CLM-0030 request_tearing_down is always sent, even if an exception is raised.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstsame text
changed (text, entailment)
CLM-0014 Flask bridges to Werkzeug for WSGI and to Jinja for templating, and everything else is left to extensions.
CLM-0115 Flask bridges to Werkzeug for WSGI and Jinja for templating, and everything else is left to extensions.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rstsimilarity 0.985
changed (text)
CLM-0030 A CLI command or plain app context follows the same teardown order, omitting the steps that refer to the request.
CLM-0028 A CLI command or plain app context follows the same teardown sequence order, omitting the steps that refer to the request.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rstsimilarity 0.981
changed (text)
CLM-0060 The most common extension pattern is a class with an init_app method that applies the extension to a given app.
CLM-0052 The most common extension pattern is a class with an init_app method that applies the extension to a given application.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstsimilarity 0.965
changed (text)
CLM-0065 By default in production mode, when an exception is raised Flask displays a very simple page and logs the exception to Flask.logger.
CLM-0074 In production mode, if an exception is raised, Flask by default displays a very simple page and logs the exception to Flask.logger.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rstsimilarity 0.963
changed (text)
CLM-0050 Flask's default cookie implementation validates that the cryptographic signature is not older than PERMANENT_SESSION_LIFETIME.
CLM-0043 Flask's default cookie implementation validates that the cryptographic signature is not older than the PERMANENT_SESSION_LIFETIME value.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.953
changed (text)
CLM-0062 Not storing the app on the extension supports the application factory pattern, avoids circular imports, and makes testing with different configurations easier.
CLM-0055 Not storing the app on the extension supports the application factory pattern, avoids circular imports, and eases testing with different configurations.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstsimilarity 0.946
changed (text)
CLM-0043 Config.from_prefixed_env loads all environment variables starting with a specific prefix into the config.
CLM-0046 Config.from_prefixed_env loads all environment variables starting with a given prefix into the config.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.944
changed (text)
CLM-0057 Inside a blueprint view or a rendered template, url_for('.index') links to another endpoint of the same blueprint.
CLM-0064 Inside a blueprint's view or template, url_for('.index') links to another endpoint of the same blueprint.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rstsimilarity 0.933
changed (text)
CLM-0073 By default a new view-class instance is created for every request.
CLM-0070 By default a new instance of the view class is created for every request.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstsimilarity 0.926
changed (text, source, entailment, state)
CLM-0072 A view class cannot be decorated with @app.route() the way a basic view function can.
CLM-0069 A view class cannot be decorated with @app.route() as a basic view function can.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstsimilarity 0.923
changed (text)
CLM-0021 Importing the app instance into project modules is prone to circular imports.
CLM-0019 Importing the app instance in project modules is prone to circular imports.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstsimilarity 0.917
changed (text, source)
CLM-0018 In an app context, current_app and g are available.
CLM-0016 During an app context, current_app and g are available.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstsimilarity 0.917
changed (text)
CLM-0042 Config.from_file loads configuration from a file in a format of your choice, with examples showing TOML via tomllib.load with text=False and JSON via json.load.
CLM-0045 Config.from_file loads configuration from a file in a format of your choice, for example TOML via tomllib.load with text=False, or JSON via json.load.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.916
changed (text)
CLM-0081 The flask command accepts options as environment variables named like FLASK_OPTION or FLASK_COMMAND_OPTION, such as FLASK_APP or FLASK_RUN_PORT.
CLM-0090 The flask command accepts options via environment variables named FLASK_OPTION or FLASK_COMMAND_OPTION, for example FLASK_APP or FLASK_RUN_PORT.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rstsimilarity 0.911
changed (text)
CLM-0067 An error handler is passed the error instance, most likely an HTTPException.
CLM-0076 An error handler receives the error instance, most likely an HTTPException.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rstsimilarity 0.904
changed (text)
CLM-0069 If logging is not configured by the user, Flask adds a StreamHandler to app.logger automatically.
CLM-0079 If logging is not configured, Flask adds a StreamHandler to app.logger automatically.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rstsimilarity 0.901
changed (text)
CLM-0068 The response status code is not set to the error handler's code, so the appropriate status must be provided when returning a response.
CLM-0077 The response's status code is not set to the handler's code, so the correct code must be set when returning a response.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rstsimilarity 0.9
changed (text)
CLM-0036 appcontext_pushed is sent when an application context is pushed, with the application as sender.
CLM-0033 appcontext_pushed is sent when an application context is pushed, and its sender is the application.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstsimilarity 0.899
changed (text)
CLM-0074 Setting View.init_every_request to False creates one instance for all requests, in which case writing to self is not safe and g should be used instead.
CLM-0071 Setting View.init_every_request to False creates a single instance, in which case writing to self is not safe and g should be used instead.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstsimilarity 0.897
changed (text)
CLM-0064 Per-application configuration keys should start with the extension's name so they don't interfere with other extensions.
CLM-0058 Configuration keys in app.config should start with the extension's name so they don't interfere with other extensions.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstsimilarity 0.884
changed (text)
CLM-0079 flask shell starts an interactive Python shell with an application context active and the app instance imported, and shell_context_processor adds other automatic imports.
CLM-0087 flask shell starts an interactive shell with an application context active and the app instance imported.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rstsimilarity 0.882
changed (text)
CLM-0022 With the app factory pattern, or with reusable blueprints or extensions, there is no app instance to import at all.
CLM-0020 With the app factory pattern, or in reusable blueprints and extensions, there is no app instance to import.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstsimilarity 0.877
changed (text)
CLM-0031 A blueprint can add handlers for lifecycle events, which run if the blueprint owns the route that matches the request.
CLM-0029 A blueprint's handlers run if the blueprint owns the route that matches the request.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rstsimilarity 0.867
changed (text, state)
CLM-0028 In the documented teardown order, step 5 is that the app context is popped, and current_app, g, request, and session are no longer available.
CLM-0026 In the teardown sequence, the app context is popped as the fifth step, and current_app, g, request, and session are no longer available.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstsimilarity 0.866
changed (text)
CLM-0092 mod_wsgi can be run as root to bind privileged ports like 80 and 443, but must be configured to drop permissions to a different user and group for the workers.
CLM-0104 Unlike the other WSGI servers in the Flask docs, mod_wsgi can be run as root to bind to privileged ports, but it must be configured to drop permissions to a different user and group for workers.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/mod_wsgi.rstsimilarity 0.863
changed (text)
CLM-0095 Flask has configuration options to set Secure, HttpOnly, and SameSite on the session cookie: SESSION_COOKIE_SECURE, SESSION_COOKIE_HTTPONLY, and SESSION_COOKIE_SAMESITE.
CLM-0109 Flask has configuration options to set Secure, HttpOnly and SameSite on the session cookie.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rstsimilarity 0.857
changed (text)
CLM-0075 View decorators must be applied to the function returned by as_view, not the class, and setting View.decorators to a list of decorators applies them.
CLM-0072 View decorators must be applied to the function returned by as_view, not to the class.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstsimilarity 0.855
changed (text)
CLM-0061 The app should not be stored on the extension (self.app = app); the extension should access an app directly only during init_app, and otherwise use current_app.
CLM-0053 An extension should not store the app (self.app = app).
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstsimilarity 0.849
changed (text)
CLM-0045 The default value of PERMANENT_SESSION_LIFETIME is timedelta(days=31) (2678400 seconds).
CLM-0036 The documented default for PERMANENT_SESSION_LIFETIME is timedelta(days=31) (2678400 seconds).
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.846
changed (text)
CLM-0048 The default value of SEND_FILE_MAX_AGE_DEFAULT is None.
CLM-0039 The documented default for SEND_FILE_MAX_AGE_DEFAULT is None.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.846
changed (text)
CLM-0058 Enabling the EXPLAIN_TEMPLATE_LOADING config variable makes Flask print the steps it goes through to locate templates on every render_template call.
CLM-0066 Setting EXPLAIN_TEMPLATE_LOADING makes Flask print the steps it takes to locate templates on every render_template call.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rstsimilarity 0.84
changed (text, source, entailment, state)
CLM-0093 The tutorial's deploy step notes that SECRET_KEY should be changed to random bytes in production, or otherwise attackers could use the public 'dev' key to modify the session cookie.
CLM-0105 The tutorial says to replace the 'dev' SECRET_KEY with random bytes in production, because otherwise attackers could use the public key to modify the session cookie.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/tutorial/deploy.rstsimilarity 0.834
changed (text)
CLM-0084 The development server, debugger, and reloader should not be used in production; a dedicated WSGI server or hosting platform should be used instead.
CLM-0095 The development server, debugger, and reloader should not be used in production.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/index.rstsimilarity 0.83
changed (text)
CLM-0071 View.as_view creates a view function that can be registered with add_url_rule, and its first argument is the name used to refer to the view with url_for.
CLM-0068 The first argument to View.as_view is the name used to refer to the view with url_for.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstsimilarity 0.829
changed (text)
CLM-0040 Configuration should be loaded very early so that extensions can access it at startup or in init_app.
CLM-0047 Configuration should be loaded very early, so that extensions can access it when calling init_app.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.825
changed (text, source, entailment)
CLM-0019 In a request context, request and session are also available in addition to current_app and g.
CLM-0017 During a request context, request and session are also available alongside current_app and g.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstsimilarity 0.813
changed (text)
CLM-0011 python-dotenv is an optional dependency of Flask that enables dotenv support when running flask commands.
CLM-0012 python-dotenv enables dotenv support when running flask commands.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstsimilarity 0.809
changed (text)
CLM-0046 The default value of SESSION_REFRESH_EACH_REQUEST is True.
CLM-0037 The documented default for SESSION_REFRESH_EACH_REQUEST is True.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstsimilarity 0.8
changed (text)
CLM-0094 The SameSite option restricts how cookies are sent with requests from external sites: Lax prevents sending cookies with CSRF-prone requests such as form submissions, and Strict prevents sending cookies with all external requests, including regular links.
CLM-0107 SameSite=Lax prevents sending cookies with CSRF-prone requests from external sites, such as form submissions.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rstsimilarity 0.8
addedCLM-0002 Werkzeug is installed automatically with Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0005, similarity 0.544, below the match threshold
addedCLM-0003 Jinja is installed automatically with Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0005, similarity 0.544, below the match threshold
addedCLM-0004 MarkupSafe is installed automatically with Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0005, similarity 0.68, below the match threshold
addedCLM-0005 ItsDangerous is installed automatically with Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0007, similarity 0.68, below the match threshold
addedCLM-0006 Click is installed automatically with Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0009, similarity 0.612, below the match threshold
addedCLM-0007 Blinker is installed automatically with Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0010, similarity 0.566, below the match threshold
addedCLM-0008 Blinker provides support for signals.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0010, similarity 0.372, below the match threshold
addedCLM-0009 Click provides the flask command.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0009, similarity 0.671, below the match threshold
addedCLM-0010 python-dotenv and Watchdog are optional and are not installed automatically.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0039, similarity 0.415, below the match threshold
addedCLM-0011 Flask detects and uses python-dotenv and Watchdog if they are present.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0039, similarity 0.307, below the match threshold
addedCLM-0013 Watchdog provides a faster, more efficient reloader for the development server.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest removed claim CLM-0012, similarity 0.782, below the match threshold
addedCLM-0015 Code accesses the context through the current_app, g, request, and session proxies.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest removed claim CLM-0016, similarity 0.669, below the match threshold
addedCLM-0018 The context pattern addresses circular imports and the burden of passing request data through every function.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest removed claim CLM-0020, similarity 0.541, below the match threshold
addedCLM-0022 After the response is returned to the WSGI server, the first step in the teardown sequence is that teardown_request functions are called.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rstclosest removed claim CLM-0024, similarity 0.681, below the match threshold
addedCLM-0023 In the teardown sequence, the request_tearing_down signal is sent as the second step, after teardown_request functions are called.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rstclosest removed claim CLM-0025, similarity 0.723, below the match threshold
addedCLM-0024 In the teardown sequence, teardown_appcontext functions are called as the third step, after the request_tearing_down signal is sent.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rstclosest removed claim CLM-0025, similarity 0.706, below the match threshold
addedCLM-0025 In the teardown sequence, the appcontext_tearing_down signal is sent as the fourth step, after teardown_appcontext functions are called.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest removed claim CLM-0027, similarity 0.723, below the match threshold
addedCLM-0027 In the teardown sequence, the appcontext_popped signal is sent as the sixth step, after the app context is popped.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest removed claim CLM-0029, similarity 0.765, below the match threshold
addedCLM-0031 Listeners for request_tearing_down currently run after the regular teardown handlers, but the docs say this cannot be relied on.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest removed claim CLM-0033, similarity 0.718, below the match threshold
addedCLM-0032 Both teardown signals are passed an exc keyword argument referencing the causing exception, if there was one.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest removed claim CLM-0034, similarity 0.534, below the match threshold
addedCLM-0034 The docs call appcontext_pushed usually useful for unit tests, for example to set a resource early onto g.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest removed claim CLM-0037, similarity 0.794, below the match threshold
addedCLM-0035 The documented default for SESSION_COOKIE_SAMESITE is None.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0044, similarity 0.778, below the match threshold
addedCLM-0038 The documented default for USE_X_SENDFILE is False.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0047, similarity 0.778, below the match threshold
addedCLM-0041 PERMANENT_SESSION_LIFETIME applies when session.permanent is true.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0096, similarity 0.578, below the match threshold
addedCLM-0042 PERMANENT_SESSION_LIFETIME can be a timedelta or an int.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0096, similarity 0.33, below the match threshold
addedCLM-0044 Only uppercase values in a config file are stored in the config object.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0039, similarity 0.668, below the match threshold
addedCLM-0048 Code that needs configuration at import time should be avoided.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0041, similarity 0.553, below the match threshold
addedCLM-0049 Creating the application in a function and registering blueprints on it makes it possible to create multiple instances with different configurations, which eases unit testing.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0054, similarity 0.444, below the match threshold
addedCLM-0050 When an instance_path is provided to Flask(...), it must be absolute.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0052, similarity 0.5, below the match threshold
addedCLM-0051 The instance_relative_config switch flips relative config-file paths from "relative to the application root" (the default) to "relative to instance folder".https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest removed claim CLM-0053, similarity 0.751, below the match threshold
addedCLM-0054 An extension should access an app directly only during init_app, and otherwise use current_app.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstclosest removed claim CLM-0078, similarity 0.392, below the match threshold
addedCLM-0056 Flask.extensions can store a reference to the extension or application-specific state.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstclosest removed claim CLM-0063, similarity 0.52, below the match threshold
addedCLM-0057 Flask.extensions is a single namespace, so the key should be unique to the extension.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstclosest removed claim CLM-0063, similarity 0.556, below the match threshold
addedCLM-0059 Extensions can use before_request to set up data or a connection, and teardown_request to clean it up.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstclosest removed claim CLM-0002, similarity 0.367, below the match threshold
addedCLM-0060 An extension that adds views can define a Blueprint and call register_blueprint during init_app.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstclosest removed claim CLM-0056, similarity 0.295, below the match threshold
addedCLM-0061 Creating the app in a function allows multiple instances, for testing or for running different versions in one process.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/appfactories.rstclosest removed claim CLM-0054, similarity 0.401, below the match threshold
addedCLM-0062 With a factory, the app object cannot be used in blueprints at import time, and current_app should be used within a request instead.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/appfactories.rstclosest removed claim CLM-0055, similarity 0.601, below the match threshold
addedCLM-0063 Build blueprint URLs by prefixing the endpoint with the blueprint name and a dot, for example url_for('admin.index').https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rstclosest removed claim CLM-0056, similarity 0.736, below the match threshold
addedCLM-0065 Blueprint templates are best placed in a folder named after the blueprint, for example admin/index.html, so they are not overridden by an application template of the same name.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rstclosest removed claim CLM-0059, similarity 0.703, below the match threshold
addedCLM-0067 View.as_view creates a view function that is registered with add_url_rule.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstclosest removed claim CLM-0056, similarity 0.28, below the match threshold
addedCLM-0073 Set View.decorators to a list of decorators to apply.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rstclosest removed claim CLM-0002, similarity 0.327, below the match threshold
addedCLM-0075 An error handler is a function that returns a response when a type of error is raised.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rstclosest removed claim CLM-0066, similarity 0.481, below the match threshold
addedCLM-0078 Register handlers with Flask.errorhandler, or with Flask.register_error_handler to register later.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rstclosest removed claim CLM-0066, similarity 0.707, below the match threshold
addedCLM-0080 During requests, Flask's default StreamHandler writes to the stream in environ['wsgi.errors'].https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rstclosest removed claim CLM-0085, similarity 0.408, below the match threshold
addedCLM-0081 Outside a request, Flask's default StreamHandler logs to sys.stderr.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rstclosest removed claim CLM-0008, similarity 0.261, below the match threshold
addedCLM-0082 The default handler can be removed by importing flask.logging.default_handler and calling app.logger.removeHandler.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rstclosest removed claim CLM-0070, similarity 0.748, below the match threshold
addedCLM-0083 Flask.test_cli_runner creates a FlaskCliRunner.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rstclosest removed claim CLM-0077, similarity 0.575, below the match threshold
addedCLM-0084 FlaskCliRunner runs CLI commands in isolation and captures output in a Click Result object.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rstclosest removed claim CLM-0077, similarity 0.592, below the match threshold
addedCLM-0085 For functions that expect an active context, use with app.app_context() to push an app context.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rstclosest removed claim CLM-0078, similarity 0.759, below the match threshold
addedCLM-0086 with app.test_request_context() pushes a request context and takes the same arguments as the test client's request methods.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rstclosest removed claim CLM-0017, similarity 0.613, below the match threshold
addedCLM-0088 With debug mode, the reloader triggers when Python code or imported modules change.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rstclosest removed claim CLM-0080, similarity 0.684, below the match threshold
addedCLM-0089 --extra-files adds watched files to the reloader, and --exclude-patterns ignores files by fnmatch pattern.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rstclosest removed claim CLM-0080, similarity 0.491, below the match threshold
addedCLM-0091 Flask.run starts the development server from Python.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rstclosest removed claim CLM-0083, similarity 0.468, below the match threshold
addedCLM-0092 Unlike the CLI, the server started with Flask.run crashes if there are errors when reloading.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rstclosest removed claim CLM-0083, similarity 0.535, below the match threshold
addedCLM-0093 The Flask.run call belongs in an if __name__ == "__main__": block.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rstclosest removed claim CLM-0083, similarity 0.57, below the match threshold
addedCLM-0094 With flask run and the reloader, the server keeps running after syntax errors are introduced, and the interactive debugger is shown on access.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rstclosest removed claim CLM-0082, similarity 0.785, below the match threshold
addedCLM-0096 Flask is a WSGI application, and a WSGI server runs it.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/index.rstclosest removed claim CLM-0085, similarity 0.709, below the match threshold
addedCLM-0097 Gunicorn takes {module_import}:{app_variable}, for example gunicorn -w 4 'hello:app'.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rstclosest removed claim CLM-0087, similarity 0.658, below the match threshold
addedCLM-0098 For a factory with Gunicorn, use 'hello:create_app()'.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rstclosest removed claim CLM-0087, similarity 0.476, below the match threshold
addedCLM-0099 Gunicorn does not support Windows but does run on WSL.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rstclosest removed claim CLM-0086, similarity 0.56, below the match threshold
addedCLM-0100 Waitress takes {module}:{app}, and --call {module}:{factory} for a factory.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rstclosest removed claim CLM-0091, similarity 0.621, below the match threshold
addedCLM-0101 Waitress supports Windows directly.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rstclosest removed claim CLM-0088, similarity 0.603, below the match threshold
addedCLM-0106 When Flask detects it is installed rather than in editable mode, it uses a different instance folder, for example .venv/var/flaskr-instance in the tutorial.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/tutorial/deploy.rstclosest removed claim CLM-0009, similarity 0.265, below the match threshold
addedCLM-0108 SameSite=Strict prevents sending cookies with all external requests, including regular links.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rstclosest removed claim CLM-0080, similarity 0.142, below the match threshold
addedCLM-0110 Lowering PERMANENT_SESSION_LIFETIME may help mitigate replay attacks.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rstclosest removed claim CLM-0096, similarity 0.765, below the match threshold
addedCLM-0111 Flask supports async view functions by running the coroutine on a separate thread rather than an event loop on the main thread.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rstclosest removed claim CLM-0098, similarity 0.655, below the match threshold
addedCLM-0112 Running async view functions on a separate thread preserves backwards compatibility with extensions and code that predate async in Python.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rstclosest removed claim CLM-0098, similarity 0.643, below the match threshold
addedCLM-0113 The docs note that Flask's async support carries a performance cost compared with ASGI frameworks.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rstclosest removed claim CLM-0099, similarity 0.417, below the match threshold
removedCLM-0001 Flask is a lightweight WSGI web application framework.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/index.rstclosest added claim CLM-0096, similarity 0.639
removedCLM-0002 Flask is designed to make getting started quick and easy while able to scale up to complex applications.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/index.rstclosest added claim CLM-0059, similarity 0.367
removedCLM-0003 Flask depends on the Werkzeug WSGI toolkit, the Jinja template engine, and the Click CLI toolkit.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/index.rstclosest added claim CLM-0094, similarity 0.477
removedCLM-0005 MarkupSafe is installed automatically as a dependency of Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0004, similarity 0.68
removedCLM-0006 MarkupSafe escapes untrusted input when rendering templates.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0004, similarity 0.154
removedCLM-0007 ItsDangerous is installed automatically as a dependency of Flask.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0005, similarity 0.68
removedCLM-0008 ItsDangerous signs data and is used to protect Flask's session cookie.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0005, similarity 0.354
removedCLM-0009 Click is installed automatically as a dependency of Flask and provides the flask command.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0009, similarity 0.671
removedCLM-0010 Blinker is installed automatically as a dependency of Flask and provides signal support.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0007, similarity 0.566
removedCLM-0012 Watchdog is an optional dependency of Flask that provides a faster, more efficient reloader for the development server.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rstclosest added claim CLM-0013, similarity 0.782
removedCLM-0016 The current_app, g, request, and session proxies are accessed instead of passing the data around.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest added claim CLM-0015, similarity 0.669
removedCLM-0017 During a request the context is called the "request context", and otherwise (for example during a CLI command) the "app context".https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest added claim CLM-0086, similarity 0.613
removedCLM-0020 The context and proxies address two problems: circular imports and passing around global data during a request.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest added claim CLM-0018, similarity 0.541
removedCLM-0024 In the documented teardown order, step 1 is that teardown_request functions are called.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest added claim CLM-0022, similarity 0.681
removedCLM-0025 In the documented teardown order, step 2 is that the request_tearing_down signal is sent.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/viewdecorators.rstclosest added claim CLM-0023, similarity 0.723
removedCLM-0026 In the documented teardown order, step 3 is that teardown_appcontext functions are called.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rstclosest added claim CLM-0025, similarity 0.674
removedCLM-0027 In the documented teardown order, step 4 is that the appcontext_tearing_down signal is sent.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/viewdecorators.rstclosest added claim CLM-0025, similarity 0.723
removedCLM-0029 In the documented teardown order, step 6 is that the appcontext_popped signal is sent.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest added claim CLM-0027, similarity 0.765
removedCLM-0033 request_tearing_down listeners currently run after the regular teardown handlers, but this is not something to rely on.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest added claim CLM-0031, similarity 0.718
removedCLM-0034 As of Flask 0.9, request_tearing_down is passed an exc keyword argument referencing the exception that caused the teardown, if any.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest added claim CLM-0032, similarity 0.534
removedCLM-0035 appcontext_tearing_down is always sent and also receives the exc keyword argument.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest added claim CLM-0025, similarity 0.448
removedCLM-0037 appcontext_pushed is usually useful in unit tests, for example to set a resource early on g.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rstclosest added claim CLM-0034, similarity 0.794
removedCLM-0038 Database sessions can be cleaned up with @app.teardown_appcontext, where the SQLAlchemy pattern calls db_session.remove().https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/sqlalchemy.rstclosest added claim CLM-0025, similarity 0.296
removedCLM-0039 Configuration files are Python files, and only uppercase values are stored in the config object.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0044, similarity 0.668
removedCLM-0041 The docs advise not to write code that needs the configuration at import time.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0048, similarity 0.553
removedCLM-0044 The default value of SESSION_COOKIE_SAMESITE is None.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0035, similarity 0.778
removedCLM-0047 The default value of USE_X_SENDFILE is False.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0038, similarity 0.778
removedCLM-0051 The instance folder is designed to not be under version control and to be deployment specific.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0050, similarity 0.387
removedCLM-0052 A path passed explicitly as instance_path must be absolute.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0050, similarity 0.5
removedCLM-0053 Passing instance_relative_config=True to the application constructor makes relative config filenames resolve against the instance folder instead of the application root (the default).https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rstclosest added claim CLM-0051, similarity 0.751
removedCLM-0054 Moving application creation into a function lets you create multiple instances of the app, which helps testing and running multiple differently configured instances.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/appfactories.rstclosest added claim CLM-0049, similarity 0.444
removedCLM-0055 With application factories, blueprints cannot use the application object at import time, and can use current_app within a request instead.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/appfactories.rstclosest added claim CLM-0062, similarity 0.601
removedCLM-0056 Prefixing an endpoint with the blueprint name and a dot builds a URL, as in url_for('admin.index').https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rstclosest added claim CLM-0063, similarity 0.736
removedCLM-0059 The docs advise namespacing blueprint templates under a folder named for the blueprint (such as admin/index.html) to avoid being overridden by an application template of the same name.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rstclosest added claim CLM-0065, similarity 0.703
removedCLM-0063 Flask.extensions can store per-application state and is a single namespace, so extensions should use a unique name.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rstclosest added claim CLM-0057, similarity 0.556
removedCLM-0066 An error handler is registered by decorating a function with Flask.errorhandler, or later with Flask.register_error_handler.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rstclosest added claim CLM-0078, similarity 0.707
removedCLM-0070 If logging is configured after accessing app.logger, the default handler can be removed with app.logger.removeHandler(default_handler) imported from flask.logging.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rstclosest added claim CLM-0082, similarity 0.748
removedCLM-0076 The testing docs use pytest, with fixtures for the app, test client, and CLI runner, placed in tests/conftest.py.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rstclosest added claim CLM-0086, similarity 0.371
removedCLM-0077 Flask.test_cli_runner creates a FlaskCliRunner that runs CLI commands in isolation and captures output, and its invoke method calls commands as the flask command would.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rstclosest added claim CLM-0084, similarity 0.592
removedCLM-0078 For code that needs an active context during testing, with app.app_context() pushes an application context, and with app.test_request_context() pushes a request context.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rstclosest added claim CLM-0085, similarity 0.759
removedCLM-0080 With debug mode, the reloader triggers when Python code or imported modules change, additional files can be watched with --extra-files, and patterns ignored with --exclude-patterns.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rstclosest added claim CLM-0088, similarity 0.684
removedCLM-0082 With the reloader under flask run, the server keeps running after syntax or initialization errors are introduced and shows the interactive debugger on access, but if a syntax error is present at startup, it fails immediately.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rstclosest added claim CLM-0094, similarity 0.785
removedCLM-0083 Flask.run can start the server from Python, crashes on errors during reload unlike the CLI, and should be put in an if __name__ == "__main__": block.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/debugging.rstclosest added claim CLM-0093, similarity 0.57
removedCLM-0085 Flask is a WSGI application, and a WSGI server converts incoming HTTP requests to the WSGI environ and WSGI responses back to HTTP.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/index.rstclosest added claim CLM-0096, similarity 0.709
removedCLM-0086 Gunicorn is a pure Python WSGI server that does not support Windows (though it runs on WSL).https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rstclosest added claim CLM-0099, similarity 0.56
removedCLM-0087 Gunicorn's required argument uses the syntax {module_import}:{app_variable}, where the variable can be a function call when using the app factory pattern, for example gunicorn -w 4 'hello:create_app()'.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rstclosest added claim CLM-0097, similarity 0.658
removedCLM-0088 Waitress is a pure Python WSGI server that supports Windows directly.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rstclosest added claim CLM-0101, similarity 0.603
removedCLM-0091 With the app factory pattern in Waitress, --call {module}:{factory} is used.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rstclosest added claim CLM-0100, similarity 0.621
removedCLM-0096 If session.permanent is set, PERMANENT_SESSION_LIFETIME sets the expiration, and lowering it may help mitigate replay attacks.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rstclosest added claim CLM-0110, similarity 0.765
removedCLM-0097 itsdangerous.TimedSerializer can sign and validate other cookie values.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rstclosest added claim CLM-0011, similarity 0.178
removedCLM-0098 Flask runs async view coroutines on a separate thread rather than an event loop on the main thread as an ASGI-first framework would, keeping backward compatibility with extensions and code that predate async in Python.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rstclosest added claim CLM-0111, similarity 0.655
removedCLM-0099 Running async view coroutines on a separate thread carries a performance cost versus ASGI frameworks, due to thread overhead.https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rstclosest added claim CLM-0111, similarity 0.473

Claims match by cited source and text, then by similarity at or above the match threshold (0.8, an Example value). A weaker pair shows as one removed and one added claim, with its score.

The same diff, for agents

{
  "method": "tools/call",
  "params": {
    "name": "get_changes",
    "arguments": {
      "artifact_id": "07fc75c1-8f18-4764-bc81-9c92c0664777",
      "from": 1,
      "to": 2
    }
  }
}

Also GET /v1/artifacts/07fc75c1-8f18-4764-bc81-9c92c0664777/changes?from=&to=. See the MCP reference.

Update notices

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/subscribe",
  "params": {
    "uri": "contextfile://artifact/07fc75c1-8f18-4764-bc81-9c92c0664777"
  }
}

When a new version passes verification, a subscribed session gets notifications/resources/updated and the subscriber's webhooks get artifact.version_published with the diff summary.