MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,591 in github.com/Kludex/starlette

↓ 408 callersFunctiontest_client_factory
( anyio_backend_name: Literal["asyncio", "trio"], anyio_backend_options: dict[str, Any], )
tests/conftest.py:38
↓ 284 callersMethodget
(self, request: Request)
tests/test_endpoints.py:17
↓ 92 callersMethodpost
(self, request: Request)
tests/test_endpoints.py:112
↓ 79 callersMethodjson
(self)
starlette/requests.py:264
↓ 67 callersMethodwebsocket_connect
( self, url: str, subprotocols: Sequence[str] | None = None, **kwargs: Any,
starlette/testclient.py:534
↓ 64 callersMethodget
( self, key: str, cast: Callable[[Any], Any] | None = None, default: Any = und
starlette/config.py:94
↓ 63 callersMethodappend
(self, key: Any, value: Any)
starlette/datastructures.py:379
↓ 37 callersMethodapp
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:685
↓ 37 callersMethodwrite
(self, s: Any)
tests/test_formparsers.py:1081
↓ 31 callersMethoditems
(self)
starlette/datastructures.py:550
↓ 28 callersMethoddecode
(self, websocket: WebSocket, message: Message)
starlette/endpoints.py:92
↓ 23 callersFunctionsend
(message: Message)
benchmarks/_utils.py:37
↓ 22 callersMethodaccept
( self, subprotocol: str | None = None, headers: Iterable[tuple[bytes, bytes]] | None
starlette/websockets.py:106
↓ 19 callersFunctionget_span
(exporter: InMemorySpanExporter)
tests/middleware/test_opentelemetry.py:38
↓ 19 callersMethodreceive_json
(self, mode: str = "text")
starlette/websockets.py:136
↓ 18 callersMethodkeys
(self)
starlette/datastructures.py:544
↓ 18 callersMethodsend_json
(self, data: Any, mode: str = "text")
starlette/websockets.py:177
↓ 18 callersMethodstream
(self)
starlette/requests.py:235
↓ 17 callersMethodreceive_text
(self)
starlette/websockets.py:122
↓ 17 callersMethodrun
(self, app: ASGIApp, scope: Scope, receive: Receive = unreadable_receive)
benchmarks/_utils.py:48
↓ 15 callersMethodbody
(self)
starlette/requests.py:255
↓ 15 callersMethodpop
(self, key: Any, default: Any = None)
starlette/datastructures.py:346
↓ 15 callersMethodread
(self, size: int = -1)
starlette/datastructures.py:477
↓ 15 callersMethodsend_text
(self, data: str)
starlette/websockets.py:171
↓ 15 callersMethodupdate
( self, *args: MultiDict | Mapping[Any, Any] | list[tuple[Any, Any]], **kwargs: Any,
starlette/datastructures.py:383
↓ 14 callersMethodget
(self, request: Request)
tests/test_applications.py:49
↓ 14 callersFunctionis_async_callable
(obj: AwaitableCallable[T])
starlette/_utils.py:54
↓ 12 callersMethodclose
(self)
tests/test_formparsers.py:1084
↓ 12 callersMethodreplace
(self, **kwargs: Any)
starlette/datastructures.py:120
↓ 12 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:506
↓ 10 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_base.py:1222
↓ 10 callersMethodclose
(self)
starlette/requests.py:328
↓ 10 callersMethodform
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:317
↓ 10 callersMethodgetlist
(self, key: str)
starlette/datastructures.py:553
↓ 10 callersFunctionreceive
()
tests/middleware/test_base.py:298
↓ 10 callersMethodsend
(self, message: Message)
starlette/testclient.py:156
↓ 10 callersMethodsend
Send ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:65
↓ 9 callersMethodmulti_items
(self)
starlette/datastructures.py:312
↓ 9 callersMethodsetdefault
(self, key: Any, default: Any = None)
starlette/datastructures.py:364
↓ 8 callersMethodmark_modified
(self)
starlette/middleware/sessions.py:102
↓ 8 callersFunctionrun_in_threadpool
(func: Callable[P, T], *args: P.args, **kwargs: P.kwargs)
starlette/concurrency.py:32
↓ 8 callersMethodsend_bytes
(self, data: bytes)
starlette/websockets.py:174
↓ 8 callersMethodurl_for
(self, name: str, /, **path_params: Any)
starlette/requests.py:199
↓ 8 callersMethodvalues
(self)
starlette/datastructures.py:547
↓ 7 callersMethodclose
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:186
↓ 7 callersFunctionfunc
()
tests/test__utils.py:14
↓ 7 callersMethodreceive_bytes
(self)
starlette/websockets.py:129
↓ 7 callersFunctionsend
(message: Message)
tests/test_requests.py:572
↓ 7 callersMethodsend_early_hints
(self, link: str, /, *additional_links: str)
starlette/requests.py:354
↓ 6 callersFunctioncreate_collapsing_task_group
()
starlette/_utils.py:102
↓ 6 callersFunctionget_route_path
(scope: Scope)
starlette/_utils.py:137
↓ 6 callersFunctionreceive
()
tests/test_responses.py:263
↓ 6 callersMethodreceive
Receive ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:41
↓ 6 callersMethodrequest
( # type: ignore[override] self, method: str, url: httpx._types.URLTypes, *,
starlette/testclient.py:493
↓ 6 callersMethodseek
(self, offset: int)
starlette/datastructures.py:482
↓ 6 callersMethodwrite
(self, data: bytes)
starlette/datastructures.py:467
↓ 5 callersMethodclear
(self)
starlette/datastructures.py:360
↓ 5 callersMethodclose
(self, code: int = 1000, reason: str | None = None)
starlette/testclient.py:172
↓ 5 callersMethodreceive
(self)
starlette/testclient.py:175
↓ 5 callersMethodsetdefault
(self, key: str, default: typing.Any = None)
starlette/middleware/sessions.py:128
↓ 4 callersMethod_raise_on_close
(self, message: Message)
starlette/testclient.py:141
↓ 4 callersMethodbackground
()
tests/middleware/test_base.py:1080
↓ 4 callersFunctionbuild_environ
Builds a scope and request body into a WSGI environ object.
starlette/middleware/wsgi.py:26
↓ 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:116
↓ 4 callersMethodconvert
(self, value: str)
starlette/convertors.py:13
↓ 4 callersMethodget
(self, request: Request)
tests/test_authentication.py:87
↓ 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:107
↓ 4 callersMethodinit_headers
(self, headers: Mapping[str, str] | None = None)
starlette/responses.py:58
↓ 4 callersMethodmake_absolute_url
(self, base_url: str | URL)
starlette/datastructures.py:205
↓ 4 callersMethodrender
(self, content: Any)
starlette/responses.py:49
↓ 4 callersFunctionreplace_params
( path: str, param_convertors: dict[str, Convertor[Any]], path_params: dict[str, str], )
starlette/routing.py:93
↓ 4 callersMethodset_cookie
( self, key: str, value: str = "", max_age: int | None = None, expires
starlette/responses.py:92
↓ 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:143
↓ 3 callersMethod_open_file
(self)
starlette/responses.py:417
↓ 3 callersMethod_raise_on_disconnect
(self, message: Message)
starlette/websockets.py:118
↓ 3 callersMethod_send
(message: Message)
starlette/middleware/errors.py:156
↓ 3 callersMethod_wrap_websocket_denial_send
(self, send: Send)
starlette/responses.py:159
↓ 3 callersMethodadd_middleware
(self, middleware_class: _MiddlewareFactory[P], *args: P.args, **kwargs: P.kwargs)
starlette/applications.py:104
↓ 3 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/test_responses.py:30
↓ 3 callersMethodget_template
(self, name: str)
starlette/templating.py:114
↓ 3 callersFunctionhas_required_scope
(conn: HTTPConnection, scopes: Sequence[str])
starlette/authentication.py:18
↓ 3 callersFunctionmake_content
(case: JSONCase)
benchmarks/json_benchmark.py:34
↓ 3 callersMethodparse
(self)
starlette/formparsers.py:118
↓ 3 callersFunctionparse_host_header
Parse `host_header` into its host and port components. The host preserves brackets around IP literals. Invalid headers produce `None`.
starlette/_utils.py:115
↓ 3 callersMethodreceive
(self)
starlette/middleware/body_limit.py:62
↓ 3 callersFunctionrender_json
(content: list[dict[str, object]])
benchmarks/json_benchmark.py:38
↓ 3 callersFunctionsend
(message: Message)
tests/middleware/test_gzip.py:247
↓ 3 callersMethodupdate
(self, other: Mapping[str, str])
starlette/datastructures.py:661
↓ 2 callersMethod__exit__
(self, *args: Any)
starlette/testclient.py:583
↓ 2 callersMethod__init__
( self, content: Any = None, status_code: int = 200, headers: Mapping[str, str
starlette/responses.py:34
↓ 2 callersMethod__init__
( self, url: str = "", scope: Scope | None = None, **components: Any, )
starlette/datastructures.py:28
↓ 2 callersFunction_normalize_content_types
(content_types: tuple[str, ...])
starlette/middleware/gzip.py:229
↓ 2 callersFunction_user_safe_decode
(src: bytes | bytearray, codec: str)
starlette/formparsers.py:61
↓ 2 callersMethodadd_vary_header
(self, vary: str)
starlette/datastructures.py:673
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
starlette/routing.py:58
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/test_routing.py:775
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_gzip.py:139
↓ 2 callersMethodbuild_middleware_stack
(self)
starlette/applications.py:63
↓ 2 callersMethodclose
(self)
benchmarks/_utils.py:51
next →1–100 of 1,591, ranked by callers