MCPcopy Create free account

hub / github.com/pallets/flask / functions

Functions1,195 in github.com/pallets/flask

↓ 1 callersMethodpush
(self)
src/flask/ctx.py:367
↓ 1 callersMethodput
Shortcut for :meth:`route` with ``methods=["PUT"]``. .. versionadded:: 2.0
src/flask/sansio/scaffold.py:312
↓ 1 callersMethodraise_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 callersFunctionrun_test
(expect_header)
tests/test_basic.py:485
↓ 1 callersMethodshould_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 callersMethodshould_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 callersFunctionshow
()
tests/type_check/typing_route.py:52
↓ 1 callersFunctionshow_server_banner
Show extra startup messages the first time the server is run, ignoring the reloader.
src/flask/cli.py:772
↓ 1 callersFunctionstream_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 callersMethodtag
Convert a value to a tagged representation if necessary.
src/flask/json/tag.py:289
↓ 1 callersMethodteardown_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 callersMethodto_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 callersMethodto_python
Convert the JSON representation back to the correct type. The tag will already be removed.
src/flask/json/tag.py:82
↓ 1 callersMethodtrap_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 callersMethoduntag
Convert a tagged representation back to the original type.
src/flask/json/tag.py:297
↓ 1 callersFunctionview
(page)
tests/test_basic.py:1646
↓ 1 callersFunctionwith_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 callersMethodwsgi_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
← previousnext →201–300 of 1,195, ranked by callers