MCPcopy Create free account

hub / github.com/Kludex/starlette / functions

Functions1,591 in github.com/Kludex/starlette

↓ 1 callersFunctiongenerator
(bytes: bytes, count: int)
tests/middleware/test_gzip.py:95
↓ 1 callersMethodget
responses: 200: description: A list of organisations. examples: [{"name": "Foo Corp."}, {"nam
tests/test_schemas.py:63
↓ 1 callersFunctionget_app
()
tests/test_applications.py:483
↓ 1 callersMethodget_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 callersMethodget_endpoints
Given the routes, yields the following information: - path eg: /users/ - http_method one of 'get', '
starlette/schemas.py:40
↓ 1 callersFunctionget_middleware_factory
()
tests/test_applications.py:539
↓ 1 callersMethodget_response
Returns an HTTP response, given the incoming path, method and request headers.
starlette/staticfiles.py:115
↓ 1 callersMethodget_schema
(self, routes: list[BaseRoute])
starlette/schemas.py:37
↓ 1 callersMethodhandle
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:183
↓ 1 callersMethodhandle
(self, scope: Scope, receive: Receive, send: Send)
starlette/routing.py:529
↓ 1 callersFunctionhttp_scope
()
benchmarks/response_benchmark.py:49
↓ 1 callersFunctionhttp_scope
()
benchmarks/streaming_response_benchmark.py:50
↓ 1 callersFunctionhttp_scope
(case: BenchmarkCase)
benchmarks/file_response_benchmark.py:43
↓ 1 callersFunctionhttp_scope
()
benchmarks/request_benchmark.py:69
↓ 1 callersFunctionhttp_scope
()
benchmarks/urlencoded_benchmark.py:88
↓ 1 callersFunctionhttp_scope
()
benchmarks/multipart_benchmark.py:100
↓ 1 callersFunctionhttp_scope
(method: str, path: str)
benchmarks/routing_benchmark.py:34
↓ 1 callersMethodinclude_query_params
(self, **kwargs: Any)
starlette/datastructures.py:155
↓ 1 callersMethodis_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 callersMethoditer_bytes
(self)
starlette/websockets.py:157
↓ 1 callersFunctioniter_chunks
(chunks: tuple[bytes, ...])
benchmarks/streaming_response_benchmark.py:40
↓ 1 callersMethoditer_text
(self)
starlette/websockets.py:150
↓ 1 callersMethodkeys
(self)
starlette/datastructures.py:303
↓ 1 callersMethodlifespan
Handle ASGI lifespan messages, which allows us to manage application startup and shutdown events.
starlette/routing.py:652
↓ 1 callersFunctionmake_app_max_parts
(max_files: int = 1000, max_fields: int = 1000, max_part_size: int = 1024 * 1024)
tests/test_formparsers.py:130
↓ 1 callersFunctionmake_bypass_messages
(case: BypassCase)
benchmarks/gzip_benchmark.py:208
↓ 1 callersFunctionmake_chunks
(body_size: int, chunk_size: int)
benchmarks/streaming_response_benchmark.py:45
↓ 1 callersFunctionmake_chunks
(body: bytes, chunk_size: int | None)
benchmarks/json_benchmark.py:91
↓ 1 callersFunctionmake_chunks
(body_size: int, chunk_size: int)
benchmarks/request_benchmark.py:86
↓ 1 callersFunctionmake_chunks
(body: bytes, chunk_size: int | None)
benchmarks/urlencoded_benchmark.py:82
↓ 1 callersFunctionmake_payload
(kind: PayloadKind, size: int)
benchmarks/gzip_benchmark.py:198
↓ 1 callersFunctionmake_text_payload
(size: int)
benchmarks/gzip_benchmark.py:189
↓ 1 callersMethodmark_accessed
(self)
starlette/middleware/sessions.py:99
↓ 1 callersMethodmatches
(self, scope: Scope)
starlette/routing.py:177
↓ 1 callersMethodmatches
(self, scope: Scope)
starlette/routing.py:487
↓ 1 callersMethodmatches
(self, scope: Scope)
tests/middleware/test_opentelemetry.py:401
↓ 1 callersFunctionmodifying_middleware
(app: ASGIApp)
tests/middleware/test_base.py:1000
↓ 1 callersMethodon_connect
Override to handle an incoming websocket connection
starlette/endpoints.py:120
↓ 1 callersMethodon_disconnect
Override to handle a disconnecting websocket
starlette/endpoints.py:127
↓ 1 callersMethodon_receive
Override to handle an incoming websocket message
starlette/endpoints.py:124
↓ 1 callersMethodparse_docstring
Given a function, parse the docstring as YAML and return a dictionary of info.
starlette/schemas.py:98
↓ 1 callersFunctionparse_multipart_data
(data: bytes, boundary: bytes | str)
tests/test_responses.py:1065
↓ 1 callersMethodpoplist
(self, key: Any)
starlette/datastructures.py:355
↓ 1 callersFunctionpost_body
()
tests/test_requests.py:498
↓ 1 callersMethodpreflight_response
(self, request_headers: Headers)
starlette/middleware/cors.py:102
↓ 1 callersFunctionrcv
()
tests/middleware/test_base.py:801
↓ 1 callersMethodreceive
()
starlette/testclient.py:596
↓ 1 callersFunctionregister_url_convertor
(key: str, convertor: Convertor[Any])
starlette/convertors.py:88
↓ 1 callersMethodremove_query_params
(self, keys: str | Sequence[str])
starlette/datastructures.py:165
↓ 1 callersFunctionreplace_body_middleware
(app: ASGIApp)
tests/middleware/test_base.py:1033
↓ 1 callersMethodreplace_query_params
(self, **kwargs: Any)
starlette/datastructures.py:161
↓ 1 callersFunctionrequest_response
Takes a function or coroutine `func(request) -> response`, and returns an ASGI application.
starlette/routing.py:47
↓ 1 callersFunctionresponse_pair
(large_app: ASGIApp, tiny_app: ASGIApp, scope: Scope, payload: bytes)
benchmarks/gzip_benchmark.py:102
↓ 1 callersFunctionrun_until_first_complete
(*args: tuple[Callable, dict])
starlette/concurrency.py:16
↓ 1 callersMethodrun_until_tiny_response
(self)
benchmarks/gzip_benchmark.py:71
↓ 1 callersFunctionsend
(message: Message)
tests/middleware/test_body_limit.py:85
↓ 1 callersFunctionsend
(message: Message)
tests/middleware/test_base.py:301
↓ 1 callersMethodsend
(self)
starlette/middleware/body_limit.py:67
↓ 1 callersMethodsend_denial_response
(self, response: Response)
starlette/websockets.py:189
↓ 1 callersMethodsend_push_promise
(self, path: str)
starlette/requests.py:346
↓ 1 callersFunctionsend_result
(send: Send, body: bytes)
benchmarks/json_benchmark.py:66
↓ 1 callersMethodsetdefault
If the header `key` does not exist, then set it to `value`. Returns the header value.
starlette/datastructures.py:647
↓ 1 callersMethodsimple_response
(self, scope: Scope, receive: Receive, send: Send, request_headers: Headers)
starlette/middleware/cors.py:147
↓ 1 callersFunctionsingle_chunk
(body: bytes)
tests/test_formparsers.py:596
↓ 1 callersFunctionstream
()
tests/test_responses.py:860
↓ 1 callersFunctionstream
()
tests/test_testclient.py:237
↓ 1 callersMethodstream_response
(self, send: Send)
starlette/responses.py:253
↓ 1 callersMethodto_string
(self, value: T)
starlette/convertors.py:16
↓ 1 callersMethodupdate
(self, *args: typing.Any, **kwargs: typing.Any)
starlette/middleware/sessions.py:133
↓ 1 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:269
↓ 1 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/routing.py:436
↓ 1 callersMethodurl_path_for
(self, name: str, /, **path_params: Any)
starlette/applications.py:89
↓ 1 callersMethodwarm_worker
(self)
benchmarks/gzip_benchmark.py:68
↓ 1 callersFunctionwebsocket_scope
()
benchmarks/websocket_benchmark.py:83
↓ 1 callersFunctionwebsocket_session
Takes a coroutine `func(session)`, and returns an ASGI application.
starlette/routing.py:70
↓ 1 callersFunctionwriter
(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
← previousnext →201–300 of 1,591, ranked by callers