Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/starlette
/ functions
Functions
1,591 in github.com/Kludex/starlette
⨍
Functions
1,591
◇
Types & classes
206
↳
Endpoints
19
↓ 1 callers
Function
generator
(bytes: bytes, count: int)
tests/middleware/test_gzip.py:95
↓ 1 callers
Method
get
responses: 200: description: A list of organisations. examples: [{"name": "Foo Corp."}, {"nam
tests/test_schemas.py:63
↓ 1 callers
Function
get_app
()
tests/test_applications.py:483
↓ 1 callers
Method
get_directories
Given `directory` and `packages` arguments, return a list of all the directories that should be used for serving static files from.
starlette/staticfiles.py:59
↓ 1 callers
Method
get_endpoints
Given the routes, yields the following information: - path eg: /users/ - http_method one of 'get', '
starlette/schemas.py:40
↓ 1 callers
Function
get_middleware_factory
()
tests/test_applications.py:539
↓ 1 callers
Method
get_response
Returns an HTTP response, given the incoming path, method and request headers.
starlette/staticfiles.py:115
↓ 1 callers
Method
get_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:37
↓ 1 callers
Method
handle
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:183
↓ 1 callers
Method
handle
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:529
↓ 1 callers
Function
http_scope
()
benchmarks/response_benchmark.py:49
↓ 1 callers
Function
http_scope
()
benchmarks/streaming_response_benchmark.py:50
↓ 1 callers
Function
http_scope
(case: BenchmarkCase)
benchmarks/file_response_benchmark.py:43
↓ 1 callers
Function
http_scope
()
benchmarks/request_benchmark.py:69
↓ 1 callers
Function
http_scope
()
benchmarks/urlencoded_benchmark.py:88
↓ 1 callers
Function
http_scope
()
benchmarks/multipart_benchmark.py:100
↓ 1 callers
Function
http_scope
(method: str, path: str)
benchmarks/routing_benchmark.py:34
↓ 1 callers
Method
include_query_params
(self, **kwargs: Any)
starlette/datastructures.py:155
↓ 1 callers
Method
is_not_modified
Given the request and response headers, return `True` if an HTTP "Not Modified" response could be returned instead.
starlette/staticfiles.py:211
↓ 1 callers
Method
iter_bytes
(self)
starlette/websockets.py:157
↓ 1 callers
Function
iter_chunks
(chunks: tuple[bytes, ...])
benchmarks/streaming_response_benchmark.py:40
↓ 1 callers
Method
iter_text
(self)
starlette/websockets.py:150
↓ 1 callers
Method
keys
(self)
starlette/datastructures.py:303
↓ 1 callers
Method
lifespan
Handle ASGI lifespan messages, which allows us to manage application startup and shutdown events.
starlette/routing.py:652
↓ 1 callers
Function
make_app_max_parts
(max_files: int = 1000, max_fields: int = 1000, max_part_size: int = 1024 * 1024)
tests/test_formparsers.py:130
↓ 1 callers
Function
make_bypass_messages
(case: BypassCase)
benchmarks/gzip_benchmark.py:208
↓ 1 callers
Function
make_chunks
(body_size: int, chunk_size: int)
benchmarks/streaming_response_benchmark.py:45
↓ 1 callers
Function
make_chunks
(body: bytes, chunk_size: int | None)
benchmarks/json_benchmark.py:91
↓ 1 callers
Function
make_chunks
(body_size: int, chunk_size: int)
benchmarks/request_benchmark.py:86
↓ 1 callers
Function
make_chunks
(body: bytes, chunk_size: int | None)
benchmarks/urlencoded_benchmark.py:82
↓ 1 callers
Function
make_payload
(kind: PayloadKind, size: int)
benchmarks/gzip_benchmark.py:198
↓ 1 callers
Function
make_text_payload
(size: int)
benchmarks/gzip_benchmark.py:189
↓ 1 callers
Method
mark_accessed
(self)
starlette/middleware/sessions.py:99
↓ 1 callers
Method
matches
(self, scope: Scope)
starlette/routing.py:177
↓ 1 callers
Method
matches
(self, scope: Scope)
starlette/routing.py:487
↓ 1 callers
Method
matches
(self, scope: Scope)
tests/middleware/test_opentelemetry.py:401
↓ 1 callers
Function
modifying_middleware
(app: ASGIApp)
tests/middleware/test_base.py:1000
↓ 1 callers
Method
on_connect
Override to handle an incoming websocket connection
starlette/endpoints.py:120
↓ 1 callers
Method
on_disconnect
Override to handle a disconnecting websocket
starlette/endpoints.py:127
↓ 1 callers
Method
on_receive
Override to handle an incoming websocket message
starlette/endpoints.py:124
↓ 1 callers
Method
parse_docstring
Given a function, parse the docstring as YAML and return a dictionary of info.
starlette/schemas.py:98
↓ 1 callers
Function
parse_multipart_data
(data: bytes, boundary: bytes | str)
tests/test_responses.py:1065
↓ 1 callers
Method
poplist
(self, key: Any)
starlette/datastructures.py:355
↓ 1 callers
Function
post_body
()
tests/test_requests.py:498
↓ 1 callers
Method
preflight_response
(self, request_headers: Headers)
starlette/middleware/cors.py:102
↓ 1 callers
Function
rcv
()
tests/middleware/test_base.py:801
↓ 1 callers
Method
receive
()
starlette/testclient.py:596
↓ 1 callers
Function
register_url_convertor
(key: str, convertor: Convertor[Any])
starlette/convertors.py:88
↓ 1 callers
Method
remove_query_params
(self, keys: str | Sequence[str])
starlette/datastructures.py:165
↓ 1 callers
Function
replace_body_middleware
(app: ASGIApp)
tests/middleware/test_base.py:1033
↓ 1 callers
Method
replace_query_params
(self, **kwargs: Any)
starlette/datastructures.py:161
↓ 1 callers
Function
request_response
Takes a function or coroutine `func(request) -> response`, and returns an ASGI application.
starlette/routing.py:47
↓ 1 callers
Function
response_pair
(large_app: ASGIApp, tiny_app: ASGIApp, scope: Scope, payload: bytes)
benchmarks/gzip_benchmark.py:102
↓ 1 callers
Function
run_until_first_complete
(*args: tuple[Callable, dict])
starlette/concurrency.py:16
↓ 1 callers
Method
run_until_tiny_response
(self)
benchmarks/gzip_benchmark.py:71
↓ 1 callers
Function
send
(message: Message)
tests/middleware/test_body_limit.py:85
↓ 1 callers
Function
send
(message: Message)
tests/middleware/test_base.py:301
↓ 1 callers
Method
send
(self)
starlette/middleware/body_limit.py:67
↓ 1 callers
Method
send_denial_response
(self, response: Response)
starlette/websockets.py:189
↓ 1 callers
Method
send_push_promise
(self, path: str)
starlette/requests.py:346
↓ 1 callers
Function
send_result
(send: Send, body: bytes)
benchmarks/json_benchmark.py:66
↓ 1 callers
Method
setdefault
If the header `key` does not exist, then set it to `value`. Returns the header value.
starlette/datastructures.py:647
↓ 1 callers
Method
simple_response
(self, scope: Scope, receive: Receive, send: Send, request_headers: Headers)
starlette/middleware/cors.py:147
↓ 1 callers
Function
single_chunk
(body: bytes)
tests/test_formparsers.py:596
↓ 1 callers
Function
stream
()
tests/test_responses.py:860
↓ 1 callers
Function
stream
()
tests/test_testclient.py:237
↓ 1 callers
Method
stream_response
(self, send: Send)
starlette/responses.py:253
↓ 1 callers
Method
to_string
(self, value: T)
starlette/convertors.py:16
↓ 1 callers
Method
update
(self, *args: typing.Any, **kwargs: typing.Any)
starlette/middleware/sessions.py:133
↓ 1 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:269
↓ 1 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:436
↓ 1 callers
Method
url_path_for
(self, name: str, /, **path_params: Any)
starlette/applications.py:89
↓ 1 callers
Method
warm_worker
(self)
benchmarks/gzip_benchmark.py:68
↓ 1 callers
Function
websocket_scope
()
benchmarks/websocket_benchmark.py:83
↓ 1 callers
Function
websocket_session
Takes a coroutine `func(session)`, and returns an ASGI application.
starlette/routing.py:70
↓ 1 callers
Function
writer
(websocket: WebSocket)
tests/test_websockets.py:221
Method
__aenter__
(self)
starlette/routing.py:548
Method
__aenter__
(self)
starlette/routing.py:576
Method
__aenter__
(self)
starlette/_utils.py:92
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
starlette/routing.py:551
Method
__aexit__
(self, *exc_info: object)
starlette/routing.py:579
Method
__aexit__
(self, *args: Any)
starlette/_utils.py:96
Method
__aiter__
(self)
tests/test_responses.py:140
Method
__aiter__
(self)
tests/test_responses.py:162
Method
__await__
(self)
starlette/endpoints.py:68
Method
__await__
(self)
starlette/_utils.py:89
Method
__await__
(self)
tests/middleware/test_base.py:67
Method
__bool__
(self)
starlette/datastructures.py:237
Method
__bool__
(self)
tests/test_formparsers.py:28
Method
__call__
(self, key: str, *, default: None)
starlette/config.py:67
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
starlette/testclient.py:70
Method
__call__
(self)
starlette/background.py:19
Method
__call__
(self)
starlette/background.py:34
Method
__call__
The ASGI entry point.
starlette/staticfiles.py:88
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
starlette/websockets.py:201
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
starlette/responses.py:168
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
starlette/responses.py:262
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
starlette/responses.py:346
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
starlette/templating.py:46
Method
__call__
A route may be used in isolation as a stand-alone ASGI app. This is a somewhat contrived case, as they'll almost always be used
starlette/routing.py:186
← previous
next →
201–300 of 1,591, ranked by callers