MCPcopy Create free account

hub / github.com/encode/starlette / functions

Functions1,516 in github.com/encode/starlette

↓ 384 callersFunctiontest_client_factory
( anyio_backend_name: Literal["asyncio", "trio"], anyio_backend_options: dict[str, Any], )
tests/conftest.py:32
↓ 271 callersMethodget
(self, request: Request)
tests/test_endpoints.py:17
↓ 89 callersMethodpost
responses: 200: description: An organisation. examples: {"name": "Foo Corp."}
tests/test_schemas.py:73
↓ 78 callersMethodjson
(self)
starlette/requests.py:262
↓ 67 callersMethodwebsocket_connect
( self, url: str, subprotocols: Sequence[str] | None = None, **kwargs: Any,
starlette/testclient.py:479
↓ 64 callersMethodappend
(self, key: Any, value: Any)
starlette/datastructures.py:363
↓ 63 callersMethodget
( self, key: str, cast: Callable[[Any], Any] | None = None, default: Any = und
starlette/config.py:94
↓ 37 callersMethodwrite
(self, s: Any)
tests/test_formparsers.py:1050
↓ 36 callersMethodapp
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:678
↓ 32 callersMethoditems
(self)
starlette/datastructures.py:534
↓ 28 callersMethoddecode
(self, websocket: WebSocket, message: Message)
starlette/endpoints.py:91
↓ 22 callersMethodaccept
( self, subprotocol: str | None = None, headers: Iterable[tuple[bytes, bytes]] | None
starlette/websockets.py:106
↓ 22 callersFunctionsend
(message: Message)
benchmarks/_utils.py:37
↓ 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:528
↓ 18 callersMethodsend_json
(self, data: Any, mode: str = "text")
starlette/websockets.py:177
↓ 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:254
↓ 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:367
↓ 14 callersMethodget
(self, request: Request)
tests/test_applications.py:49
↓ 14 callersFunctionis_async_callable
(obj: AwaitableCallable[T])
starlette/_utils.py:57
↓ 14 callersMethodpop
(self, key: Any, default: Any = None)
starlette/datastructures.py:330
↓ 13 callersMethodread
(self, size: int = -1)
starlette/datastructures.py:461
↓ 12 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_gzip.py:121
↓ 12 callersMethodreplace
(self, **kwargs: Any)
starlette/datastructures.py:115
↓ 12 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:499
↓ 11 callersMethodclose
(self)
tests/test_formparsers.py:1053
↓ 10 callersMethodclose
(self)
starlette/requests.py:324
↓ 10 callersMethodform
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:313
↓ 10 callersFunctionreceive
()
tests/middleware/test_base.py:302
↓ 10 callersMethodstream
(self)
starlette/requests.py:234
↓ 9 callersMethodgetlist
(self, key: str)
starlette/datastructures.py:537
↓ 9 callersMethodmulti_items
(self)
starlette/datastructures.py:296
↓ 9 callersMethodsend
(self, message: Message)
starlette/testclient.py:163
↓ 9 callersMethodsend
Send ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:65
↓ 9 callersMethodsetdefault
(self, key: Any, default: Any = None)
starlette/datastructures.py:348
↓ 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:198
↓ 8 callersMethodvalues
(self)
starlette/datastructures.py:531
↓ 7 callersMethodclose
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:186
↓ 7 callersFunctionfunc
()
tests/test__utils.py:18
↓ 7 callersMethodmark_modified
(self)
starlette/middleware/sessions.py:101
↓ 7 callersMethodreceive_bytes
(self)
starlette/websockets.py:129
↓ 7 callersMethodseek
(self, offset: int)
starlette/datastructures.py:466
↓ 7 callersFunctionsend
(message: Message)
tests/test_responses.py:263
↓ 7 callersMethodwrite
(self, data: bytes)
starlette/datastructures.py:451
↓ 6 callersMethodclear
(self)
starlette/datastructures.py:344
↓ 6 callersFunctionget_route_path
(scope: Scope)
starlette/_utils.py:140
↓ 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:438
↓ 5 callersFunctioncreate_collapsing_task_group
()
starlette/_utils.py:105
↓ 5 callersFunctionreceive
()
tests/test_responses.py:260
↓ 5 callersMethodreceive
(self)
starlette/testclient.py:182
↓ 4 callersMethod_raise_on_close
(self, message: Message)
starlette/testclient.py:148
↓ 4 callersMethodbackground
()
tests/middleware/test_base.py:1082
↓ 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:111
↓ 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:55
↓ 4 callersMethodmake_absolute_url
(self, base_url: str | URL)
starlette/datastructures.py:189
↓ 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:93
↓ 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:118
↓ 3 callersMethod_wrap_websocket_denial_send
(self, send: Send)
starlette/responses.py:156
↓ 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:27
↓ 3 callersFunctionbuild_environ
Builds a scope and request body into a WSGI environ object.
starlette/middleware/wsgi.py:26
↓ 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 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:118
↓ 3 callersMethodreceive
(self)
starlette/middleware/body_limit.py:62
↓ 3 callersFunctionrender_json
(content: list[dict[str, object]])
benchmarks/json_benchmark.py:38
↓ 3 callersMethodsetdefault
(self, key: str, default: typing.Any = None)
starlette/middleware/sessions.py:126
↓ 3 callersMethodupdate
(self, other: Mapping[str, str])
starlette/datastructures.py:645
↓ 2 callersMethod__exit__
(self, *args: Any)
starlette/testclient.py:527
↓ 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:26
↓ 2 callersFunction_normalize_content_types
(content_types: tuple[str, ...])
starlette/middleware/gzip.py:221
↓ 2 callersMethod_send
(message: Message)
starlette/middleware/errors.py:156
↓ 2 callersFunction_user_safe_decode
(src: bytes | bytearray, codec: str)
starlette/formparsers.py:48
↓ 2 callersMethodadd_vary_header
(self, vary: str)
starlette/datastructures.py:657
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
starlette/routing.py:58
↓ 2 callersFunctionapp
(scope: Scope, receive: Receive, send: Send)
tests/test_routing.py:760
↓ 2 callersMethodbuild_middleware_stack
(self)
starlette/applications.py:63
↓ 2 callersMethodclose
(self)
benchmarks/_utils.py:51
↓ 2 callersMethoddelete_cookie
( self, key: str, path: str = "/", domain: str | None = None, secure:
starlette/responses.py:134
↓ 2 callersFunctiondispatch
(runner: ASGIRunner, app: FormApp, chunks: tuple[bytes, ...])
benchmarks/urlencoded_benchmark.py:105
↓ 2 callersFunctiondispatch
(runner: ASGIRunner, app: ASGIApp, chunks: tuple[bytes, ...])
benchmarks/multipart_benchmark.py:162
↓ 2 callersFunctionget_identity
()
tests/test_testclient.py:97
↓ 2 callersFunctionget_name
(endpoint: Callable[..., Any])
starlette/routing.py:89
↓ 2 callersMethodget_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:132
next →1–100 of 1,516, ranked by callers