MCPcopy Create free account

hub / github.com/pallets/flask / functions

Functions1,195 in github.com/pallets/flask

Functionindex3
()
tests/test_basic.py:984
Functionindex_put
()
tests/test_basic.py:46
Functioninit_app
Register database functions with the Flask app. This is called by the application factory.
examples/tutorial/flaskr/db.py:51
Functioninit_db_command
Clear existing data and create new tables.
examples/tutorial/flaskr/db.py:42
Functioninner
(name)
tests/conftest.py:157
Functioninternal_server_error
(e)
tests/test_basic.py:868
Functionis_boolean
(value)
tests/test_blueprints.py:502
Functionis_boolean
(value)
tests/test_templating.py:239
Methodjinja_env
The Jinja environment used to load templates. The environment is created the first time this property is accessed. Changing :attr:`ji
src/flask/sansio/app.py:470
Methodjinja_loader
The Jinja loader for this object's templates. By default this is a class :class:`jinja2.loaders.FileSystemLoader` to :attr:`template_f
src/flask/sansio/scaffold.py:272
Methodjson_dumps
Serialize ``obj`` to a JSON-formatted string. The serialization will be configured according to the config associated with this Envir
src/flask/testing.py:87
Functionkey_error
()
tests/test_user_error_handler.py:48
Functionlate_command
()
tests/test_cli.py:668
Functionleak_detector
()
tests/conftest.py:86
Functionlimit_loader
Patch pkgutil.get_loader to give loader without get_filename or archive. This provides for tests where a system has custom loaders, e.g. Google A
tests/conftest.py:100
Methodlist_commands
(self, ctx: click.Context)
src/flask/cli.py:644
Functionload_logged_in_user
If a user id is stored in the session, load the user object from the database into ``g.user``.
examples/tutorial/flaskr/auth.py:33
Methodloads
Deserialize data as JSON from a string or bytes. :param s: Text or UTF-8 bytes. :param kwargs: Passed to :func:`json.loads`.
src/flask/json/provider.py:181
Methodlog_exception
(self, exc_info)
tests/test_subclassing.py:8
Methodlogger
A standard Python :class:`~logging.Logger` for the app, with the same name as :attr:`name`. In debug mode, the logger's :attr:`~loggi
src/flask/sansio/app.py:443
Functionlogin
()
tests/test_basic.py:576
Functionlogin
Log in a registered user by adding the user id to the session.
examples/tutorial/flaskr/auth.py:85
Functionlogin_required
View decorator that redirects anonymous users to the login page.
examples/tutorial/flaskr/auth.py:19
Functionlogout
Clear the current session, including the stored user id.
examples/tutorial/flaskr/auth.py:113
Methodmake_app
()
tests/test_cli.py:84
Functionmake_response
Sometimes it is necessary to set additional headers in a view. Because views do not have to return response objects but can return a value that
src/flask/helpers.py:139
Methodmax_content_length
The maximum number of bytes that will be read during this request. If this limit is exceeded, a 413 :exc:`~werkzeug.exceptions.RequestEntityTo
src/flask/wrappers.py:60
Methodmax_cookie_size
Read-only view of the :data:`MAX_COOKIE_SIZE` config key. See :attr:`~werkzeug.wrappers.Response.max_cookie_size` in Werkzeug's docs.
src/flask/wrappers.py:247
Methodmax_form_memory_size
The maximum size in bytes any non-file form field may be in a ``multipart/form-data`` body. If this limit is exceeded, a 413 :exc:`~we
src/flask/wrappers.py:93
Methodmax_form_parts
The maximum number of fields that may be present in a ``multipart/form-data`` body. If this limit is exceeded, a 413 :exc:`~werkzeug.e
src/flask/wrappers.py:120
Functionmerged_command
()
tests/test_cli.py:664
Functionmissing_template
()
tests/test_apps/blueprintapp/apps/frontend/__init__.py:13
Functionmodify_session
(response)
tests/test_basic.py:429
Functionmodules_tmp_path
A temporary directory added to sys.path.
tests/conftest.py:131
Functionmodules_tmp_path_prefix
(modules_tmp_path, monkeypatch)
tests/conftest.py:140
Functionmore
()
tests/test_basic.py:96
Functionmy_decorator_exception_handler
(e)
tests/test_blueprints.py:56
Functionmy_function_exception_handler
(e)
tests/test_blueprints.py:60
Functionmy_reverse
(s)
tests/test_blueprints.py:366
Functionmy_reverse
(s)
tests/test_templating.py:125
Methodname
The name of the application. This is usually the import name with the difference that it's guessed from the run file if the import na
src/flask/sansio/app.py:426
Functionnested_command
()
tests/test_cli.py:660
Functionnew_function
(*args, **kwargs)
tests/test_views.py:82
Functionno_app
()
tests/test_apps/cliapp/factory.py:12
Functionno_vary_header
()
tests/test_basic.py:551
Functionnormal_index
()
tests/test_basic.py:1753
Functionnot_answer_context_processor
()
tests/test_blueprints.py:645
Functionnot_found
(e)
tests/test_basic.py:864
Methodobject_hook
(self, obj)
tests/test_json.py:235
Methodon_json_loading_failed
(self, e: ValueError | None)
src/flask/wrappers.py:212
Methodon_update
(self: te.Self)
src/flask/sessions.py:78
Methodopen_instance_resource
Open a resource file relative to the application's instance folder :attr:`instance_path`. Unlike :meth:`open_resource`, files in the i
src/flask/app.py:363
Methodopen_resource
Open a resource file relative to :attr:`root_path` for reading. The blueprint-relative equivalent of the app's :meth:`~.Flask.open_resource`
src/flask/blueprints.py:104
Methodopen_session
(self, app: Flask, request: Request)
src/flask/sessions.py:336
Methodopen_session
(self, app, request)
tests/test_reqctx.py:210
Methodopen_session
(self, app, request)
tests/test_session_interface.py:16
Functionoptions
()
tests/test_basic.py:166
Functionother
()
tests/test_testing.py:221
Functionparent_before1
()
tests/test_blueprints.py:867
Functionparent_before2
()
tests/test_blueprints.py:875
Functionparent_ctx
()
tests/test_blueprints.py:883
Functionparent_exception_handler
(e)
tests/test_user_error_handler.py:72
Functionparent_index
()
tests/test_blueprints.py:803
Functionparent_no
()
tests/test_blueprints.py:807
Functionparent_teardown1
(e=None)
tests/test_blueprints.py:871
Functionparent_teardown2
(e=None)
tests/test_blueprints.py:879
Functionparent_test
()
tests/test_user_error_handler.py:82
Methodparse_args
(self, ctx: click.Context, args: list[str])
src/flask/cli.py:686
Methodpatch
Shortcut for :meth:`route` with ``methods=["PATCH"]``. .. versionadded:: 2.0
src/flask/sansio/scaffold.py:328
Methodpermanent
This reflects the ``'_permanent'`` key in the dict.
src/flask/sessions.py:28
Methodpop
Get and remove an attribute by name. Like :meth:`dict.pop`. :param name: Name of attribute to pop. :param default: Value to return if
src/flask/ctx.py:78
Methodpost
Shortcut for :meth:`route` with ``methods=["POST"]``. .. versionadded:: 2.0
src/flask/sansio/scaffold.py:304
Methodpost
(self)
tests/test_views.py:53
Methodpost
(self)
tests/test_views.py:232
Methodpost
(self)
tests/test_helpers.py:152
Functionpost_json
()
tests/test_json.py:20
Functionprocess
(self: Task, total: int)
examples/celery/src/task_app/tasks.py:18
Functionprocess
()
examples/celery/src/task_app/views.py:36
Methodpropfind
(self)
tests/test_views.py:197
Functionpull_lang_code
(endpoint, values)
tests/test_blueprints.py:159
Functionpull_lang_code
(endpoint, values)
tests/test_basic.py:1618
Functionraise_e1
()
tests/test_basic.py:1011
Functionraise_e3
()
tests/test_basic.py:1015
Functionread
()
tests/test_basic.py:482
Functionrecord
(sender, template, context)
tests/test_signals.py:11
Functionrecord_pop
(sender, **kwargs)
tests/test_signals.py:121
Functionrecord_push
(sender, **kwargs)
tests/test_signals.py:118
Functionrecord_teardown
(sender, exc)
tests/test_signals.py:167
Functionredirect
(location, code=302)
tests/test_helpers.py:179
Functionregister
Register a new user. Validates that the username is not already taken. Hashes the password for security.
examples/tutorial/flaskr/auth.py:47
Methodregister_template
(state: BlueprintSetupState)
src/flask/sansio/blueprints.py:472
Functionregistered_test
()
tests/test_user_error_handler.py:90
Functionrender_template_string
Render a template from the given source string with the given context. :param source: The source code of the template to render. :param c
src/flask/templating.py:153
Functionreq_ctx
(app)
tests/conftest.py:62
Functionreset_logging
(pytestconfig)
tests/test_logging.py:13
Functionreset_path
()
tests/test_cli.py:171
Methodresponse
Serialize the given arguments as JSON, and return a :class:`~flask.Response` object with it. The response mimetype will be "applicatio
src/flask/json/provider.py:189
Functionresult
(id: str)
examples/celery/src/task_app/views.py:11
Functionreturn_args_unpack
()
tests/test_json.py:120
Functionreturn_array
()
tests/test_json.py:124
← previousnext →601–700 of 1,195, ranked by callers