Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emmett-framework/granian
/ functions
Functions
638 in github.com/emmett-framework/granian
⨍
Functions
638
◇
Types & classes
135
↳
Endpoints
34
↓ 1 callers
Function
entrypoint
()
granian/cli.py:605
↓ 1 callers
Method
format_metrics
(&self)
src/metrics.rs:91
↓ 1 callers
Method
get_all
(&self, py: Python<'p>, key: &'p str)
src/rsgi/types.rs:92
↓ 1 callers
Method
get_fd
(&self, py: Python)
src/net.rs:226
↓ 1 callers
Function
get_granian_version
()
src/lib.rs:37
↓ 1 callers
Function
get_import_components
(path: str)
granian/_internal.py:16
↓ 1 callers
Function
granian
(wrk, thr)
benchmarks/app/asgi.py:107
↓ 1 callers
Function
granian
(wrk, thr)
benchmarks/app/rsgi.py:93
↓ 1 callers
Method
handle
(self)
granian/asgi.py:24
↓ 1 callers
Method
handle
(&self, guard: Arc<tokio::sync::Notify>)
src/workers.rs:586
↓ 1 callers
Method
handler
(&self)
src/runtime.rs:93
↓ 1 callers
Method
incr_respawn_err
(&self, val: usize)
src/metrics.rs:166
↓ 1 callers
Method
incr_respawn_rss
(&self, val: usize)
src/metrics.rs:174
↓ 1 callers
Method
incr_respawn_ttl
(&self, val: usize)
src/metrics.rs:170
↓ 1 callers
Function
inner
()
benchmarks/ws/benchmark.py:20
↓ 1 callers
Function
lifespan
(scope, receive, send)
tests/apps/asgi.py:209
↓ 1 callers
Function
load_module
(module_name: str, raise_on_failure: bool = True)
granian/_internal.py:45
↓ 1 callers
Function
main
()
benchmarks/ws/benchmark.py:127
↓ 1 callers
Function
pack_msg
(msg: Message)
src/ipc.rs:186
↓ 1 callers
Function
prepare_import
(path: str)
granian/_internal.py:20
↓ 1 callers
Function
resolve_protocol_versions
(min_version: &str)
src/tls.rs:21
↓ 1 callers
Function
response
()
tests/apps/wsgi.py:26
↓ 1 callers
Method
response_file_range
(self, status, headers, file, start, end)
granian/rsgi.py:74
↓ 1 callers
Method
response_iter
(&self, py: Python, status: u16, headers: Vec<(PyBackedStr, PyBackedStr)>, body: Bound<PyAny>)
src/wsgi/io.rs:41
↓ 1 callers
Function
run
()
benchmarks/benchmarks.py:408
↓ 1 callers
Method
send
(&self, data: MetricsData, ipc: Arc<tokio::sync::Mutex<interprocess::unnamed_pipe::tokio::Sender>>)
src/metrics.rs:266
↓ 1 callers
Method
send_message
(&self, py: Python<'p>, data: Message)
src/asgi/io.rs:466
↓ 1 callers
Method
serve
(self, spawn_target: Callable[..., None] | None = None)
granian/server/embed.py:419
↓ 1 callers
Function
set_sync_signals
()
granian/_signals.py:40
↓ 1 callers
Method
signal_handler_interrupt
(self, *args, **kwargs)
granian/server/common.py:321
↓ 1 callers
Method
signal_handler_reload
(self, *args, **kwargs)
granian/server/common.py:325
↓ 1 callers
Function
spawn_exporter
( runtime: runtime::RuntimeRef, exporter: Py<MetricsExporter>, sock: Py<crate::net::SocketHolder>,
src/metrics.rs:346
↓ 1 callers
Method
start_response
(&self, py: Python<'p>, intent: (u16, HeaderMap))
src/asgi/io.rs:428
↓ 1 callers
Method
stop
(self)
granian/server/embed.py:489
↓ 1 callers
Method
taskref
(&self, py: Python, task: Py<PyAny>)
src/asgi/callbacks.rs:80
↓ 1 callers
Method
tcp_listener
(&self, sock: &Py<crate::net::SocketHolder>)
src/metrics.rs:185
↓ 1 callers
Method
throw
(&self, _py: Python, state: Arc<CallbackSchedulerState>, err: Py<PyAny>)
src/callbacks.rs:111
↓ 1 callers
Method
to_receiver
(&self)
src/ipc.rs:38
↓ 1 callers
Method
to_sender
(&self)
src/ipc.rs:137
↓ 1 callers
Method
to_spawn
(self, py: Python)
src/callbacks.rs:476
↓ 1 callers
Function
trim
(data: &[u8])
src/utils.rs:21
↓ 1 callers
Function
trim_end
(data: &[u8])
src/utils.rs:35
↓ 1 callers
Function
trim_start
(data: &[u8])
src/utils.rs:26
↓ 1 callers
Method
tx
(&self)
src/wsgi/io.rs:24
↓ 1 callers
Method
values
(&self)
src/rsgi/types.rs:42
↓ 1 callers
Function
write_msg
(msg: Message, r: &mut R)
src/ipc.rs:196
↓ 1 callers
Function
ws_message_into_rs
(py: Python, message: &Bound<PyDict>)
src/asgi/io.rs:702
↓ 1 callers
Function
wsb
(concurrency, msgs)
benchmarks/benchmarks.py:141
Method
__aiter__
(self)
granian/rsgi.py:52
Method
__aiter__
(pyself: Py<Self>, py: Python)
src/rsgi/io.rs:101
Method
__anext__
(&self, py: Python<'p>)
src/rsgi/io.rs:111
Method
__await__
(self)
granian/_futures.py:28
Method
__await__
(pyself: PyRef<'_, Self>)
src/callbacks.rs:336
Method
__call__
(self, status: str, headers: list[tuple[str, str]], exc_info: Any = None)
granian/wsgi.py:18
Method
__call__
(self)
granian/rsgi.py:49
Method
__call__
(&self, py: Python, fut: Py<PyAny>)
src/callbacks.rs:307
Method
__call__
(&self, py: Python<'p>)
src/rsgi/io.rs:89
Method
__contains__
(self, key: str)
granian/_loops.py:18
Method
__contains__
(self, host: str | None)
granian/utils/proxies.py:27
Method
__contains__
(&self, key: &str)
src/rsgi/types.rs:62
Method
__getitem__
(&self, key: &str)
src/rsgi/types.rs:66
Method
__init__
(self, *args, **kwargs)
granian/_futures.py:25
Method
__init__
(self, loop, cb, aio_task, aio_tenter, aio_texit)
granian/_futures.py:70
Method
__init__
(self)
granian/_loops.py:15
Method
__init__
(self)
granian/_loops.py:41
Method
__init__
(self, callable)
granian/asgi.py:11
Method
__init__
(self, enum: Enum, case_sensitive=False)
granian/cli.py:65
Method
__init__
(self)
granian/wsgi.py:14
Method
__init__
(self, inner)
granian/wsgi.py:26
Method
__init__
(self, inner)
granian/rsgi.py:45
Method
__init__
(self, trusted_hosts: list[str] | str)
granian/utils/proxies.py:6
Method
__init__
(self, parent, idx, target, args, sig)
granian/server/mt.py:32
Method
__init__
(self, parent: AbstractServer, idx: int, target: Any, args: Any)
granian/server/common.py:38
Method
__init__
( self, target: str, address: str = '127.0.0.1', port: int = 8000, uds
granian/server/common.py:83
Method
__init__
(self, parent, idx, target, args, sig)
granian/server/embed.py:35
Method
__init__
(self, parent, idx, target, args)
granian/server/mp.py:47
Method
__iter__
(pyself: PyRef<'_, Self>)
src/callbacks.rs:340
Method
__iter__
(pyself: PyRef<'_, Self>)
src/wsgi/types.rs:95
Method
__iter__
(&self, py: Python<'p>)
src/rsgi/types.rs:73
Method
__len__
(&self)
src/rsgi/types.rs:77
Method
__next__
(&self)
src/callbacks.rs:344
Method
__next__
(&self, py: Python)
src/wsgi/types.rs:99
Method
__str__
(self)
granian/constants.py:5
Method
_bind_addr_fmt
(self)
granian/server/common.py:293
Function
_callback_wrapper
(callback, scope_opts, state, access_log_fmt=None)
granian/asgi.py:108
Function
_callback_wrapper
(callback: Callable[..., Any], scope_opts: dict[str, Any], access_log_fmt=None)
granian/wsgi.py:34
Function
_callback_wrapper
(callback, access_log_fmt=False)
granian/rsgi.py:92
Function
_callbacks_from_target
(target)
granian/rsgi.py:83
Function
_granian
(py: Python, module: &Bound<PyModule>)
src/lib.rs:47
Method
_handle_rss_signal
(self, spawn_target, target_loader)
granian/server/mp.py:374
Method
_handle_shutdown_complete
(self, message)
granian/asgi.py:83
Method
_handle_shutdown_failed
(self, message)
granian/asgi.py:88
Method
_handle_startup_complete
(self, message)
granian/asgi.py:70
Method
_handle_startup_failed
(self, message)
granian/asgi.py:75
Method
_id
(self)
granian/server/mt.py:49
Function
_logger
(scope, proto)
granian/asgi.py:127
Function
_logger
(proto, scope)
granian/wsgi.py:64
Function
_logger
(scope, proto)
granian/rsgi.py:105
Function
_run
(coro, watcher)
granian/_futures.py:91
Method
_run
(pyself: Py<Self>, py: Python, coro: Py<PyAny>)
src/callbacks.rs:234
← previous
next →
201–300 of 638, ranked by callers