Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/starlette
/ functions
Functions
1,289 in github.com/Kludex/starlette
⨍
Functions
1,289
◇
Types & classes
168
↳
Endpoints
16
↓ 320 callers
Function
test_client_factory
( anyio_backend_name: Literal["asyncio", "trio"], anyio_backend_options: dict[str, Any], )
tests/conftest.py:13
↓ 217 callers
Method
get
(self, request: Request)
tests/test_endpoints.py:15
↓ 73 callers
Method
json
(self)
starlette/requests.py:262
↓ 71 callers
Method
post
responses: 200: description: An organisation. examples: {"name": "Foo Corp."}
tests/test_schemas.py:62
↓ 64 callers
Method
websocket_connect
( self, url: str, subprotocols: Sequence[str] | None = None, **kwargs: Any,
starlette/testclient.py:655
↓ 55 callers
Method
append
(self, key: Any, value: Any)
starlette/datastructures.py:363
↓ 48 callers
Method
get
( self, key: str, cast: Callable[[Any], Any] | None = None, default: Any = und
starlette/config.py:94
↓ 38 callers
Method
write
(self, s: Any)
tests/test_formparsers.py:961
↓ 32 callers
Method
items
(self)
starlette/datastructures.py:534
↓ 30 callers
Method
app
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:662
↓ 25 callers
Method
decode
(self, websocket: WebSocket, message: Message)
starlette/endpoints.py:91
↓ 23 callers
Function
send
(message: Message)
tests/test_responses.py:263
↓ 18 callers
Method
accept
( self, subprotocol: str | None = None, headers: Iterable[tuple[bytes, bytes]] | None
starlette/websockets.py:100
↓ 18 callers
Method
keys
(self)
starlette/datastructures.py:528
↓ 18 callers
Method
receive_json
(self, mode: str = "text")
starlette/websockets.py:130
↓ 17 callers
Method
send_json
(self, data: Any, mode: str = "text")
starlette/websockets.py:171
↓ 15 callers
Method
receive_text
(self)
starlette/websockets.py:116
↓ 15 callers
Method
update
( self, *args: MultiDict | Mapping[Any, Any] | list[tuple[Any, Any]], **kwargs: Any,
starlette/datastructures.py:367
↓ 14 callers
Method
get
(self, request: Request)
tests/test_applications.py:49
↓ 14 callers
Function
is_async_callable
(obj: AwaitableCallable[T])
starlette/_utils.py:35
↓ 13 callers
Method
pop
(self, key: Any, default: Any = None)
starlette/datastructures.py:330
↓ 13 callers
Method
read
(self, size: int = -1)
starlette/datastructures.py:461
↓ 13 callers
Method
send_text
(self, data: str)
starlette/websockets.py:165
↓ 12 callers
Method
body
(self)
starlette/requests.py:254
↓ 12 callers
Method
replace
(self, **kwargs: Any)
starlette/datastructures.py:115
↓ 12 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:486
↓ 10 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/middleware/test_gzip.py:120
↓ 10 callers
Method
close
(self)
starlette/requests.py:324
↓ 10 callers
Method
close
(self)
tests/test_formparsers.py:964
↓ 10 callers
Method
head
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:516
↓ 10 callers
Function
receive
()
tests/middleware/test_base.py:302
↓ 9 callers
Method
options
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:493
↓ 9 callers
Method
send
(self, message: Message)
starlette/testclient.py:165
↓ 9 callers
Method
send
Send ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:59
↓ 9 callers
Method
setdefault
(self, key: Any, default: Any = None)
starlette/datastructures.py:348
↓ 9 callers
Method
stream
(self)
starlette/requests.py:234
↓ 8 callers
Method
multi_items
(self)
starlette/datastructures.py:296
↓ 8 callers
Function
run_in_threadpool
(func: Callable[P, T], *args: P.args, **kwargs: P.kwargs)
starlette/concurrency.py:32
↓ 8 callers
Method
url_for
(self, name: str, /, **path_params: Any)
starlette/requests.py:198
↓ 7 callers
Method
form
( self, *, max_files: int | float = 1000, max_fields: int | float = 1000,
starlette/requests.py:313
↓ 7 callers
Function
func
()
tests/test__utils.py:18
↓ 7 callers
Method
getlist
(self, key: str)
starlette/datastructures.py:537
↓ 7 callers
Method
run
(self, app: ASGIApp, scope: Scope)
benchmarks/gzip_benchmark.py:61
↓ 7 callers
Method
seek
(self, offset: int)
starlette/datastructures.py:466
↓ 7 callers
Method
send_bytes
(self, data: bytes)
starlette/websockets.py:168
↓ 7 callers
Method
write
(self, data: bytes)
starlette/datastructures.py:451
↓ 6 callers
Method
get
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:470
↓ 6 callers
Function
get_route_path
(scope: Scope)
starlette/_utils.py:96
↓ 6 callers
Method
receive
Receive ASGI websocket messages, ensuring valid state transitions.
starlette/websockets.py:35
↓ 6 callers
Method
receive_bytes
(self)
starlette/websockets.py:123
↓ 6 callers
Method
values
(self)
starlette/datastructures.py:531
↓ 5 callers
Method
clear
(self)
starlette/datastructures.py:344
↓ 5 callers
Function
create_collapsing_task_group
()
starlette/_utils.py:83
↓ 5 callers
Method
mark_modified
(self)
starlette/middleware/sessions.py:98
↓ 5 callers
Function
receive
()
tests/test_responses.py:260
↓ 5 callers
Method
receive
(self)
starlette/testclient.py:184
↓ 4 callers
Method
_raise_on_close
(self, message: Message)
starlette/testclient.py:150
↓ 4 callers
Function
_user_safe_decode
(src: bytes | bytearray, codec: str)
starlette/formparsers.py:45
↓ 4 callers
Method
background
()
tests/middleware/test_base.py:1082
↓ 4 callers
Method
close
(self, code: int = 1000, reason: str | None = None)
starlette/websockets.py:180
↓ 4 callers
Function
compile_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 callers
Method
convert
(self, value: str)
starlette/convertors.py:13
↓ 4 callers
Method
get
(self, request: Request)
tests/test_authentication.py:86
↓ 4 callers
Method
get_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 callers
Method
init_headers
(self, headers: Mapping[str, str] | None = None)
starlette/responses.py:55
↓ 4 callers
Method
make_absolute_url
(self, base_url: str | URL)
starlette/datastructures.py:189
↓ 4 callers
Method
receive
(self)
starlette/requests.py:231
↓ 4 callers
Method
render
(self, content: Any)
starlette/responses.py:48
↓ 4 callers
Function
replace_params
( path: str, param_convertors: dict[str, Convertor[Any]], path_params: dict[str, str], )
starlette/routing.py:92
↓ 4 callers
Method
set_cookie
( self, key: str, value: str = "", max_age: int | None = None, expires
starlette/responses.py:89
↓ 3 callers
Method
TemplateResponse
Render a template and return an HTML response. Args: request: The incoming request instance. name: The templ
starlette/templating.py:117
↓ 3 callers
Method
__anext__
(self)
tests/test_responses.py:140
↓ 3 callers
Method
_raise_on_disconnect
(self, message: Message)
starlette/websockets.py:112
↓ 3 callers
Method
_wrap_websocket_denial_send
(self, send: Send)
starlette/responses.py:154
↓ 3 callers
Method
add_middleware
(self, middleware_class: _MiddlewareFactory[P], *args: P.args, **kwargs: P.kwargs)
starlette/applications.py:98
↓ 3 callers
Method
add_vary_header
(self, vary: str)
starlette/datastructures.py:657
↓ 3 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/test_responses.py:27
↓ 3 callers
Function
build_environ
Builds a scope and request body into a WSGI environ object.
starlette/middleware/wsgi.py:25
↓ 3 callers
Method
get_template
(self, name: str)
starlette/templating.py:114
↓ 3 callers
Function
has_required_scope
(conn: HTTPConnection, scopes: Sequence[str])
starlette/authentication.py:18
↓ 3 callers
Method
request
( # type: ignore[override] self, method: str, url: httpx._types.URLTypes, *,
starlette/testclient.py:429
↓ 3 callers
Method
update
(self, other: Mapping[str, str])
starlette/datastructures.py:645
↓ 2 callers
Method
__exit__
(self, *args: Any)
starlette/testclient.py:707
↓ 2 callers
Method
__init__
( self, content: Any = None, status_code: int = 200, headers: Mapping[str, str
starlette/responses.py:33
↓ 2 callers
Method
__init__
( self, url: str = "", scope: Scope | None = None, **components: Any, )
starlette/datastructures.py:29
↓ 2 callers
Method
_send
(message: Message)
starlette/middleware/errors.py:156
↓ 2 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
starlette/routing.py:57
↓ 2 callers
Function
app
(scope: Scope, receive: Receive, send: Send)
tests/test_routing.py:702
↓ 2 callers
Method
delete
( # type: ignore[override] self, url: httpx._types.URLTypes, *, params: httpx
starlette/testclient.py:632
↓ 2 callers
Function
get_identity
()
tests/test_testclient.py:97
↓ 2 callers
Function
get_name
(endpoint: Callable[..., Any])
starlette/routing.py:88
↓ 2 callers
Method
is_allowed_origin
(self, origin: str)
starlette/middleware/cors.py:98
↓ 2 callers
Method
is_disconnected
(self)
starlette/requests.py:328
↓ 2 callers
Method
iter_json
(self)
starlette/websockets.py:158
↓ 2 callers
Function
iterate_in_threadpool
( iterator: Iterable[T], )
starlette/concurrency.py:51
↓ 2 callers
Method
lookup_path
(self, path: str)
starlette/staticfiles.py:154
↓ 2 callers
Function
make_json_payload
Build a deterministic, valid JSON document of exactly ``size`` bytes.
benchmarks/gzip_benchmark.py:173
↓ 2 callers
Method
mutablecopy
(self)
starlette/datastructures.py:541
↓ 2 callers
Function
numbers
(minimum: int, maximum: int)
tests/test_responses.py:105
↓ 2 callers
Method
parse
(self)
starlette/formparsers.py:105
next →
1–100 of 1,289, ranked by callers