MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,289 in github.com/Kludex/starlette

↓ 320 callersFunctiontest_client_factory
( anyio_backend_name: Literal["asyncio", "trio"], anyio_backend_options: dict[str, Any], )
tests/conftest.py:13
↓ 217 callersMethodget
(self, request: Request)
tests/test_endpoints.py:15
↓ 73 callersMethodjson
(self)
starlette/requests.py:262
↓ 71 callersMethodpost
responses: 200: description: An organisation. examples: {"name": "Foo Corp."}
tests/test_schemas.py:62
↓ 64 callersMethodwebsocket_connect
( self, url: str, subprotocols: Sequence[str] | None = None, **kwargs: Any,
starlette/testclient.py:655
↓ 55 callersMethodappend
(self, key: Any, value: Any)
starlette/datastructures.py:363
↓ 48 callersMethodget
( self, key: str, cast: Callable[[Any], Any] | None = None, default: Any = und
starlette/config.py:94
↓ 38 callersMethodwrite
(self, s: Any)
tests/test_formparsers.py:961
↓ 32 callersMethoditems
(self)
starlette/datastructures.py:534
↓ 30 callersMethodapp
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:662
↓ 25 callersMethoddecode
(self, websocket: WebSocket, message: Message)
starlette/endpoints.py:91
↓ 23 callersFunctionsend
(message: Message)
tests/test_responses.py:263
↓ 18 callersMethodaccept
( self, subprotocol: str | None = None, headers: Iterable[tuple[bytes, bytes]] | None
starlette/websockets.py:100
↓ 18 callersMethodkeys
(self)
starlette/datastructures.py:528
↓ 18 callersMethodreceive_json
(self, mode: str = "text")
starlette/websockets.py:130
↓ 17 callersMethodsend_json
(self, data: Any, mode: str = "text")
starlette/websockets.py:171
↓ 15 callersMethodreceive_text
(self)
starlette/websockets.py:116
↓ 15 callersMethodupdate
( self, *args: MultiDict | Mapping[Any, Any] | list[tuple[Any, Any]], **kwargs: Any,
starlette/datastructures.py:367
↓ 14 callersMethodget
(self, request: Request)
tests/test_applications.py:49
↓ 14 callersFunctionis_async_callable
(obj: AwaitableCallable[T])
starlette/_utils.py:35
↓ 13 callersMethodpop
(self, key: Any, default: Any = None)
starlette/datastructures.py:330
↓ 13 callersMethodread
(self, size: int = -1)
starlette/datastructures.py:461
↓ 13 callersMethodsend_text
(self, data: str)
starlette/websockets.py:165
↓ 12 callersMethodbody
(self)
starlette/requests.py:254
↓ 12 callersMethodreplace
(self, **kwargs: Any)
starlette/datastructures.py:115
↓ 12 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:486
↓ 10 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_gzip.py:120
↓ 10 callersMethodclose
(self)
starlette/requests.py:324
↓ 10 callersMethodclose
(self)
tests/test_formparsers.py:964
↓ 10 callersMethodhead
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:516
↓ 10 callersFunctionreceive
()
tests/middleware/test_base.py:302
↓ 9 callersMethodoptions
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:493
↓ 9 callersMethodsend
(self, message: Message)
starlette/testclient.py:165
↓ 9 callersMethodsend
Send ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:59
↓ 9 callersMethodsetdefault
(self, key: Any, default: Any = None)
starlette/datastructures.py:348
↓ 9 callersMethodstream
(self)
starlette/requests.py:234
↓ 8 callersMethodmulti_items
(self)
starlette/datastructures.py:296
↓ 8 callersFunctionrun_in_threadpool
(func: Callable[P, T], *args: P.args, **kwargs: P.kwargs)
starlette/concurrency.py:32
↓ 8 callersMethodurl_for
(self, name: str, /, **path_params: Any)
starlette/requests.py:198
↓ 7 callersMethodform
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:313
↓ 7 callersFunctionfunc
()
tests/test__utils.py:18
↓ 7 callersMethodgetlist
(self, key: str)
starlette/datastructures.py:537
↓ 7 callersMethodrun
(self, app: ASGIApp, scope: Scope)
benchmarks/gzip_benchmark.py:61
↓ 7 callersMethodseek
(self, offset: int)
starlette/datastructures.py:466
↓ 7 callersMethodsend_bytes
(self, data: bytes)
starlette/websockets.py:168
↓ 7 callersMethodwrite
(self, data: bytes)
starlette/datastructures.py:451
↓ 6 callersMethodget
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:470
↓ 6 callersFunctionget_route_path
(scope: Scope)
starlette/_utils.py:96
↓ 6 callersMethodreceive
Receive ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:35
↓ 6 callersMethodreceive_bytes
(self)
starlette/websockets.py:123
↓ 6 callersMethodvalues
(self)
starlette/datastructures.py:531
↓ 5 callersMethodclear
(self)
starlette/datastructures.py:344
↓ 5 callersFunctioncreate_collapsing_task_group
()
starlette/_utils.py:83
↓ 5 callersMethodmark_modified
(self)
starlette/middleware/sessions.py:98
↓ 5 callersFunctionreceive
()
tests/test_responses.py:260
↓ 5 callersMethodreceive
(self)
starlette/testclient.py:184
↓ 4 callersMethod_raise_on_close
(self, message: Message)
starlette/testclient.py:150
↓ 4 callersFunction_user_safe_decode
(src: bytes | bytearray, codec: str)
starlette/formparsers.py:45
↓ 4 callersMethodbackground
()
tests/middleware/test_base.py:1082
↓ 4 callersMethodclose
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:180
↓ 4 callersFunctioncompile_path
Given a path string, like: "/{username:str}", or a host string, like: "{subdomain}.mydomain.org", return a three-tuple of (regex, format,
starlette/routing.py:110
↓ 4 callersMethodconvert
(self, value: str)
starlette/convertors.py:13
↓ 4 callersMethodget
(self, request: Request)
tests/test_authentication.py:86
↓ 4 callersMethodget_path
Given the ASGI scope, return the `path` string to serve up, with OS specific path separators, and any '..', '.' components removed.
starlette/staticfiles.py:101
↓ 4 callersMethodinit_headers
(self, headers: Mapping[str, str] | None = None)
starlette/responses.py:55
↓ 4 callersMethodmake_absolute_url
(self, base_url: str | URL)
starlette/datastructures.py:189
↓ 4 callersMethodreceive
(self)
starlette/requests.py:231
↓ 4 callersMethodrender
(self, content: Any)
starlette/responses.py:48
↓ 4 callersFunctionreplace_params
( path: str, param_convertors: dict[str, Convertor[Any]], path_params: dict[str, str], )
starlette/routing.py:92
↓ 4 callersMethodset_cookie
( self, key: str, value: str = "", max_age: int | None = None, expires
starlette/responses.py:89
↓ 3 callersMethodTemplateResponse
Render a template and return an HTML response. Args: request: The incoming request instance. name: The templ
starlette/templating.py:117
↓ 3 callersMethod__anext__
(self)
tests/test_responses.py:140
↓ 3 callersMethod_raise_on_disconnect
(self, message: Message)
starlette/websockets.py:112
↓ 3 callersMethod_wrap_websocket_denial_send
(self, send: Send)
starlette/responses.py:154
↓ 3 callersMethodadd_middleware
(self, middleware_class: _MiddlewareFactory[P], *args: P.args, **kwargs: P.kwargs)
starlette/applications.py:98
↓ 3 callersMethodadd_vary_header
(self, vary: str)
starlette/datastructures.py:657
↓ 3 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/test_responses.py:27
↓ 3 callersFunctionbuild_environ
Builds a scope and request body into a WSGI environ object.
starlette/middleware/wsgi.py:25
↓ 3 callersMethodget_template
(self, name: str)
starlette/templating.py:114
↓ 3 callersFunctionhas_required_scope
(conn: HTTPConnection, scopes: Sequence[str])
starlette/authentication.py:18
↓ 3 callersMethodrequest
( # type: ignore[override] self, method: str, url: httpx._types.URLTypes, *,
starlette/testclient.py:429
↓ 3 callersMethodupdate
(self, other: Mapping[str, str])
starlette/datastructures.py:645
↓ 2 callersMethod__exit__
(self, *args: Any)
starlette/testclient.py:707
↓ 2 callersMethod__init__
( self, content: Any = None, status_code: int = 200, headers: Mapping[str, str
starlette/responses.py:33
↓ 2 callersMethod__init__
( self, url: str = "", scope: Scope | None = None, **components: Any, )
starlette/datastructures.py:29
↓ 2 callersMethod_send
(message: Message)
starlette/middleware/errors.py:156
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
starlette/routing.py:57
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/test_routing.py:702
↓ 2 callersMethoddelete
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:632
↓ 2 callersFunctionget_identity
()
tests/test_testclient.py:97
↓ 2 callersFunctionget_name
(endpoint: Callable[..., Any])
starlette/routing.py:88
↓ 2 callersMethodis_allowed_origin
(self, origin: str)
starlette/middleware/cors.py:98
↓ 2 callersMethodis_disconnected
(self)
starlette/requests.py:328
↓ 2 callersMethoditer_json
(self)
starlette/websockets.py:158
↓ 2 callersFunctioniterate_in_threadpool
( iterator: Iterable[T], )
starlette/concurrency.py:51
↓ 2 callersMethodlookup_path
(self, path: str)
starlette/staticfiles.py:154
↓ 2 callersFunctionmake_json_payload
Build a deterministic, valid JSON document of exactly ``size`` bytes.
benchmarks/gzip_benchmark.py:173
↓ 2 callersMethodmutablecopy
(self)
starlette/datastructures.py:541
↓ 2 callersFunctionnumbers
(minimum: int, maximum: int)
tests/test_responses.py:105
↓ 2 callersMethodparse
(self)
starlette/formparsers.py:105
next →1–100 of 1,289, ranked by callers