Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ functions
Functions
1,195 in github.com/pallets/flask
⨍
Functions
1,195
◇
Types & classes
136
↳
Endpoints
183
Function
index3
()
tests/test_basic.py:984
Function
index_put
()
tests/test_basic.py:46
Function
init_app
Register database functions with the Flask app. This is called by the application factory.
examples/tutorial/flaskr/db.py:51
Function
init_db_command
Clear existing data and create new tables.
examples/tutorial/flaskr/db.py:42
Function
inner
(name)
tests/conftest.py:157
Function
internal_server_error
(e)
tests/test_basic.py:868
Function
is_boolean
(value)
tests/test_blueprints.py:502
Function
is_boolean
(value)
tests/test_templating.py:239
Method
jinja_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
Method
jinja_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
Method
json_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
Function
key_error
()
tests/test_user_error_handler.py:48
Function
late_command
()
tests/test_cli.py:668
Function
leak_detector
()
tests/conftest.py:86
Function
limit_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
Method
list_commands
(self, ctx: click.Context)
src/flask/cli.py:644
Function
load_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
Method
loads
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
Method
log_exception
(self, exc_info)
tests/test_subclassing.py:8
Method
logger
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
Function
login
()
tests/test_basic.py:576
Function
login
Log in a registered user by adding the user id to the session.
examples/tutorial/flaskr/auth.py:85
Function
login_required
View decorator that redirects anonymous users to the login page.
examples/tutorial/flaskr/auth.py:19
Function
logout
Clear the current session, including the stored user id.
examples/tutorial/flaskr/auth.py:113
Method
make_app
()
tests/test_cli.py:84
Function
make_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
Method
max_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
Method
max_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
Method
max_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
Method
max_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
Function
merged_command
()
tests/test_cli.py:664
Function
missing_template
()
tests/test_apps/blueprintapp/apps/frontend/__init__.py:13
Function
modify_session
(response)
tests/test_basic.py:429
Function
modules_tmp_path
A temporary directory added to sys.path.
tests/conftest.py:131
Function
modules_tmp_path_prefix
(modules_tmp_path, monkeypatch)
tests/conftest.py:140
Function
more
()
tests/test_basic.py:96
Function
my_decorator_exception_handler
(e)
tests/test_blueprints.py:56
Function
my_function_exception_handler
(e)
tests/test_blueprints.py:60
Function
my_reverse
(s)
tests/test_blueprints.py:366
Function
my_reverse
(s)
tests/test_templating.py:125
Method
name
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
Function
nested_command
()
tests/test_cli.py:660
Function
new_function
(*args, **kwargs)
tests/test_views.py:82
Function
no_app
()
tests/test_apps/cliapp/factory.py:12
Function
no_vary_header
()
tests/test_basic.py:551
Function
normal_index
()
tests/test_basic.py:1753
Function
not_answer_context_processor
()
tests/test_blueprints.py:645
Function
not_found
(e)
tests/test_basic.py:864
Method
object_hook
(self, obj)
tests/test_json.py:235
Method
on_json_loading_failed
(self, e: ValueError | None)
src/flask/wrappers.py:212
Method
on_update
(self: te.Self)
src/flask/sessions.py:78
Method
open_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
Method
open_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
Method
open_session
(self, app: Flask, request: Request)
src/flask/sessions.py:336
Method
open_session
(self, app, request)
tests/test_reqctx.py:210
Method
open_session
(self, app, request)
tests/test_session_interface.py:16
Function
options
()
tests/test_basic.py:166
Function
other
()
tests/test_testing.py:221
Function
parent_before1
()
tests/test_blueprints.py:867
Function
parent_before2
()
tests/test_blueprints.py:875
Function
parent_ctx
()
tests/test_blueprints.py:883
Function
parent_exception_handler
(e)
tests/test_user_error_handler.py:72
Function
parent_index
()
tests/test_blueprints.py:803
Function
parent_no
()
tests/test_blueprints.py:807
Function
parent_teardown1
(e=None)
tests/test_blueprints.py:871
Function
parent_teardown2
(e=None)
tests/test_blueprints.py:879
Function
parent_test
()
tests/test_user_error_handler.py:82
Method
parse_args
(self, ctx: click.Context, args: list[str])
src/flask/cli.py:686
Method
patch
Shortcut for :meth:`route` with ``methods=["PATCH"]``. .. versionadded:: 2.0
src/flask/sansio/scaffold.py:328
Method
permanent
This reflects the ``'_permanent'`` key in the dict.
src/flask/sessions.py:28
Method
pop
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
Method
post
Shortcut for :meth:`route` with ``methods=["POST"]``. .. versionadded:: 2.0
src/flask/sansio/scaffold.py:304
Method
post
(self)
tests/test_views.py:53
Method
post
(self)
tests/test_views.py:232
Method
post
(self)
tests/test_helpers.py:152
Function
post_json
()
tests/test_json.py:20
Function
process
(self: Task, total: int)
examples/celery/src/task_app/tasks.py:18
Function
process
()
examples/celery/src/task_app/views.py:36
Method
propfind
(self)
tests/test_views.py:197
Function
pull_lang_code
(endpoint, values)
tests/test_blueprints.py:159
Function
pull_lang_code
(endpoint, values)
tests/test_basic.py:1618
Function
raise_e1
()
tests/test_basic.py:1011
Function
raise_e3
()
tests/test_basic.py:1015
Function
read
()
tests/test_basic.py:482
Function
record
(sender, template, context)
tests/test_signals.py:11
Function
record_pop
(sender, **kwargs)
tests/test_signals.py:121
Function
record_push
(sender, **kwargs)
tests/test_signals.py:118
Function
record_teardown
(sender, exc)
tests/test_signals.py:167
Function
redirect
(location, code=302)
tests/test_helpers.py:179
Function
register
Register a new user. Validates that the username is not already taken. Hashes the password for security.
examples/tutorial/flaskr/auth.py:47
Method
register_template
(state: BlueprintSetupState)
src/flask/sansio/blueprints.py:472
Function
registered_test
()
tests/test_user_error_handler.py:90
Function
render_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
Function
req_ctx
(app)
tests/conftest.py:62
Function
reset_logging
(pytestconfig)
tests/test_logging.py:13
Function
reset_path
()
tests/test_cli.py:171
Method
response
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
Function
result
(id: str)
examples/celery/src/task_app/views.py:11
Function
return_args_unpack
()
tests/test_json.py:120
Function
return_array
()
tests/test_json.py:124
← previous
next →
601–700 of 1,195, ranked by callers