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
↓ 1 callers
Method
push
(self)
src/flask/ctx.py:367
↓ 1 callers
Method
put
Shortcut for :meth:`route` with ``methods=["PUT"]``. .. versionadded:: 2.0
src/flask/sansio/scaffold.py:312
↓ 1 callers
Method
raise_routing_exception
Intercept routing exceptions and possibly do something else. In debug mode, intercept a routing redirect and replace it with an error
src/flask/app.py:478
↓ 1 callers
Function
run_test
(expect_header)
tests/test_basic.py:485
↓ 1 callers
Method
should_ignore_error
This is called to figure out if an error should be ignored or not as far as the teardown system is concerned. If this function return
src/flask/sansio/app.py:883
↓ 1 callers
Method
should_set_cookie
Used by session backends to determine if a ``Set-Cookie`` header should be set for this session cookie for this response. If the session
src/flask/sessions.py:247
↓ 1 callers
Function
show
()
tests/type_check/typing_route.py:52
↓ 1 callers
Function
show_server_banner
Show extra startup messages the first time the server is run, ignoring the reloader.
src/flask/cli.py:772
↓ 1 callers
Function
stream_template
Render a template by name with the given context as a stream. This returns an iterator of strings, which can be used as a streaming response f
src/flask/templating.py:188
↓ 1 callers
Method
tag
Convert a value to a tagged representation if necessary.
src/flask/json/tag.py:289
↓ 1 callers
Method
teardown_appcontext
Registers a function to be called when the application context is popped. The application context is typically popped after the reques
src/flask/sansio/app.py:779
↓ 1 callers
Method
to_json
Convert the Python object to an object that is a valid JSON type. The tag will be added later.
src/flask/json/tag.py:77
↓ 1 callers
Method
to_python
Convert the JSON representation back to the correct type. The tag will already be removed.
src/flask/json/tag.py:82
↓ 1 callers
Method
trap_http_exception
Checks if an HTTP exception should be trapped or not. By default this will return ``False`` for all exceptions except for a bad request
src/flask/sansio/app.py:848
↓ 1 callers
Method
untag
Convert a tagged representation back to the original type.
src/flask/json/tag.py:297
↓ 1 callers
Function
view
(page)
tests/test_basic.py:1646
↓ 1 callers
Function
with_appcontext
Wraps a callback so that it's guaranteed to be executed with the script's application context. Custom commands (and their options) registered
src/flask/cli.py:380
↓ 1 callers
Method
wsgi_app
The actual WSGI application. This is not implemented in :meth:`__call__` so that middlewares can be applied without losing a reference
src/flask/app.py:1479
Method
__call__
The WSGI server calls the Flask application object as the WSGI application. This calls :meth:`wsgi_app`, which can be wrapped to apply
src/flask/app.py:1529
Method
__call__
(self, environ, start_response)
tests/test_basic.py:275
Method
__call__
(self, *args: object, **kwargs: object)
examples/celery/src/task_app/__init__.py:31
Method
__contains__
(self, item: str)
src/flask/ctx.py:104
Method
__delattr__
(self, name: str)
src/flask/ctx.py:61
Method
__enter__
(self)
src/flask/testing.py:248
Method
__enter__
(self)
src/flask/ctx.py:274
Method
__enter__
(self)
src/flask/ctx.py:433
Method
__exit__
( self, exc_type: type | None, exc_value: BaseException | None, tb: TracebackT
src/flask/testing.py:254
Method
__exit__
( self, exc_type: type | None, exc_value: BaseException | None, tb: TracebackT
src/flask/ctx.py:278
Method
__exit__
( self, exc_type: type | None, exc_value: BaseException | None, tb: TracebackT
src/flask/ctx.py:437
Method
__fspath__
(self)
tests/test_helpers.py:21
Method
__get__
(self, obj: None, owner: None)
src/flask/config.py:30
Function
__getattr__
(name: str)
src/flask/__init__.py:46
Method
__getattr__
(self, name: str)
src/flask/ctx.py:52
Method
__getattr__
(self, name)
tests/test_helpers.py:29
Method
__getattr__
(self, name)
tests/conftest.py:117
Method
__getitem__
(self, key: str)
src/flask/debughelpers.py:91
Method
__getitem__
(self, key: str)
src/flask/sessions.py:84
Method
__init__
( self, name: str, get_converter: t.Callable[[t.Any], T] | None = None )
src/flask/config.py:23
Method
__init__
( self, root_path: str | os.PathLike[str], defaults: dict[str, t.Any] | None = None,
src/flask/config.py:94
Method
__init__
( self, app: Flask, path: str = "/", base_url: str | None = None, subd
src/flask/testing.py:48
Method
__init__
(self, app: Flask, **kwargs: t.Any)
src/flask/testing.py:270
Method
__init__
( self, add_default_commands: bool = True, create_app: t.Callable[..., Flask] | None =
src/flask/cli.py:563
Method
__init__
(self)
src/flask/cli.py:794
Method
__init__
(self, request: Request)
src/flask/debughelpers.py:57
Method
__init__
(self, app: Flask)
src/flask/ctx.py:245
Method
__init__
( self, app: Flask, environ: WSGIEnvironment, request: Request | None = None,
src/flask/ctx.py:309
Method
__init__
(self, app: App, **options: t.Any)
src/flask/templating.py:45
Method
__init__
(self, app: App)
src/flask/templating.py:57
Method
__init__
( self, initial: c.Mapping[str, t.Any] | c.Iterable[tuple[str, t.Any]] | None = None, )
src/flask/sessions.py:74
Method
__init__
( self, import_name: str, static_url_path: str | None = None, static_folder: s
src/flask/app.py:226
Method
__init__
( self, name: str, import_name: str, static_folder: str | os.PathLike[str] | N
src/flask/blueprints.py:19
Method
__init__
( self, import_name: str, static_folder: str | os.PathLike[str] | None = None,
src/flask/sansio/scaffold.py:75
Method
__init__
( self, import_name: str, static_url_path: str | None = None, static_folder: s
src/flask/sansio/app.py:282
Method
__init__
( self, blueprint: Blueprint, app: App, options: t.Any, first_registra
src/flask/sansio/blueprints.py:41
Method
__init__
( self, name: str, import_name: str, static_folder: str | os.PathLike[str] | N
src/flask/sansio/blueprints.py:174
Method
__init__
(self, app: App)
src/flask/json/provider.py:38
Method
__init__
Create a tagger for the given serializer.
src/flask/json/tag.py:69
Method
__init__
(self)
src/flask/json/tag.py:249
Method
__init__
(self, data)
tests/test_json_tag.py:45
Method
__init__
(self)
tests/test_appctx.py:159
Method
__init__
(self, app, prefix)
tests/test_basic.py:271
Method
__init__
(self, app)
tests/test_basic.py:1831
Method
__init__
(self, hours, name)
tests/test_json.py:152
Method
__init__
(self, val)
tests/test_json.py:225
Method
__init__
(self)
tests/test_views.py:251
Method
__init__
(self, path)
tests/test_helpers.py:18
Method
__init__
(self, *args, **kwargs)
tests/test_helpers.py:26
Method
__init__
(self, gen)
tests/test_helpers.py:268
Method
__init__
(self, loader)
tests/conftest.py:114
Method
__init__
(self: RenderTemplateView, template_name: str)
tests/type_check/typing_route.py:102
Method
__init__
(self, client)
examples/tutorial/tests/conftest.py:48
Method
__init_subclass__
(cls, **kwargs: t.Any)
src/flask/views.py:165
Method
__iter__
(self)
src/flask/ctx.py:107
Method
__iter__
(self)
tests/test_helpers.py:271
Method
__next__
(self)
tests/test_helpers.py:277
Method
__repr__
(self)
src/flask/config.py:366
Method
__repr__
(self)
src/flask/ctx.py:110
Method
__repr__
(self)
src/flask/ctx.py:445
Method
__repr__
(self)
src/flask/sansio/scaffold.py:217
Method
__set__
(self, obj: App, value: t.Any)
src/flask/config.py:46
Method
__setattr__
(self, name: str, value: t.Any)
src/flask/ctx.py:58
Method
__str__
(self)
src/flask/debughelpers.py:46
Function
_async_app
()
tests/test_async.py:41
Method
_check_setup_finished
(self, f_name: str)
src/flask/sansio/app.py:413
Method
_check_setup_finished
(self, f_name: str)
src/flask/sansio/blueprints.py:213
Function
_default
(o: t.Any)
src/flask/json/provider.py:108
Function
_default_template_ctx_processor
Default template context processor. Injects `request`, `session` and `g`.
src/flask/templating.py:24
Function
_env_file_callback
( ctx: click.Context, param: click.Option, value: str | None )
src/flask/cli.py:493
Method
_fail
(self, *args: t.Any, **kwargs: t.Any)
src/flask/sessions.py:103
Function
_has_encoding
(name)
tests/test_json.py:260
Function
_lazy_sha1
Don't access ``hashlib.sha1`` until runtime. FIPS builds may not include SHA-1, in which case the import and use as a default would fail before th
src/flask/sessions.py:290
Method
_load_form_data
(self)
src/flask/wrappers.py:197
Function
_make_timedelta
(value: timedelta | int | None)
src/flask/app.py:74
Function
_make_timedelta
(value: timedelta | int | None)
src/flask/sansio/app.py:52
Function
_param_cb
(ctx, param, value)
tests/test_cli.py:290
Function
_path_is_ancestor
Take ``other`` and remove the length of ``path`` from it. Then join it to ``path``. If it is the original value, ``path`` is an ancestor of ``
src/flask/cli.py:697
Function
_reset_os_environ
Reset ``os.environ`` to the standard environ after each test, in case a test changed something without cleaning up.
tests/conftest.py:38
Function
_set_app
(ctx: click.Context, param: click.Option, value: str | None)
src/flask/cli.py:440
Function
_set_debug
(ctx: click.Context, param: click.Option, value: bool)
src/flask/cli.py:468
Function
_standard_os_environ
Set up ``os.environ`` at the start of the test session to have standard values. Returns a list of operations that is used by :func:`._reset_os
tests/conftest.py:13
← previous
next →
201–300 of 1,195, ranked by callers