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
↓ 72 callers
Method
get
(self, key: str)
granian/_loops.py:31
↓ 37 callers
Method
get
(&self, py: Python, key: &str, default: Option<Py<PyAny>>)
src/rsgi/types.rs:82
↓ 26 callers
Method
join
(self, timeout=None)
granian/server/embed.py:90
↓ 24 callers
Function
benchmark
(endpoint, post=False, h2=False, concurrencies=None)
benchmarks/benchmarks.py:175
↓ 24 callers
Method
set
(&self)
src/workers.rs:34
↓ 21 callers
Method
send
(&self, py: Python<'p>, data: &Bound<'p, PyDict>)
src/asgi/io.rs:179
↓ 19 callers
Function
app
( name, procs=None, threads=None, bthreads=None, thmode=None, loop='uvloop', timpl
benchmarks/benchmarks.py:60
↓ 19 callers
Function
asgi_server
(**extras)
tests/test_uds.py:65
↓ 15 callers
Method
run
(self, py: Python)
src/blocking.rs:24
↓ 14 callers
Function
future_into_py_futlike
(rt: R, py: Python, fut: F)
src/runtime.rs:265
↓ 13 callers
Function
rsgi_server
(**extras)
tests/test_uds.py:70
↓ 11 callers
Function
_new_cbscheduler
(loop, cb, impl_asyncio=False)
granian/_futures.py:75
↓ 11 callers
Method
is_uds
(&self)
src/net.rs:230
↓ 11 callers
Method
items
(&self)
src/rsgi/types.rs:52
↓ 10 callers
Function
empty_future_into_py
(py: Python)
src/runtime.rs:221
↓ 10 callers
Method
read
(&self, py: Python, size: Option<usize>)
src/wsgi/types.rs:108
↓ 10 callers
Method
send
( &mut self, status: Option<u16>, headers: Option<hyper::HeaderMap>, body: Opt
src/ws.rs:74
↓ 10 callers
Method
spawn
(&self, fut: F)
src/runtime.rs:141
↓ 9 callers
Function
_future_watcher_wrapper
(inner)
granian/_futures.py:12
↓ 8 callers
Function
err_future_into_py
(py: Python, err: PyResult<()>)
src/runtime.rs:231
↓ 8 callers
Function
headers_from_py
(inp: Vec<(PyBackedStr, PyBackedStr)>)
src/conversion.rs:103
↓ 8 callers
Function
server_static_files
(server_port, request, static_mount=True, **extras)
tests/conftest.py:131
↓ 7 callers
Method
close
(&self)
src/runtime.rs:126
↓ 7 callers
Function
init_pymodule
(module: &Bound<PyModule>)
src/ipc.rs:213
↓ 6 callers
Method
_call_hooks
(hooks)
granian/server/common.py:297
↓ 6 callers
Method
build
(&self)
src/net.rs:110
↓ 6 callers
Method
collect
(&self, id: usize, data: MetricsData)
src/metrics.rs:86
↓ 6 callers
Method
response_bytes
(self, status, headers, body)
granian/rsgi.py:66
↓ 6 callers
Method
spawn_blocking
(&self, task: F)
src/runtime.rs:149
↓ 6 callers
Method
to_string
(&self)
src/net.rs:42
↓ 6 callers
Function
wsgi_server
(**extras)
tests/test_uds.py:75
↓ 5 callers
Method
accept
(&self, py: Python<'p>, subproto: Option<String>)
src/asgi/io.rs:387
↓ 5 callers
Method
as_socket
(&self)
src/net.rs:71
↓ 5 callers
Method
join
(self, timeout=None)
granian/server/common.py:78
↓ 5 callers
Method
send_bytes
(&self, py: Python<'p>, data: Cow<[u8]>)
src/rsgi/io.rs:39
↓ 5 callers
Method
serve
( self, spawn_target: Callable[..., None] | None = None, target_loader: Callable[...,
granian/server/mt.py:325
↓ 5 callers
Method
start
(self)
granian/server/common.py:64
↓ 4 callers
Function
b_builder
(size)
benchmarks/app/asgi.py:29
↓ 4 callers
Function
b_builder
(size)
benchmarks/app/wsgi.py:14
↓ 4 callers
Function
b_builder
(size)
benchmarks/app/rsgi.py:25
↓ 4 callers
Method
convert
(self, value: Any, param: click.Parameter | None, ctx: click.Context | None)
granian/cli.py:34
↓ 4 callers
Method
headers
(self)
granian/rsgi.py:28
↓ 4 callers
Method
is_alive
(self)
granian/server/common.py:69
↓ 4 callers
Method
keys
(self)
granian/_loops.py:21
↓ 4 callers
Function
message_into_py
(py: Python, message: ASGIMessageType)
src/asgi/conversion.rs:13
↓ 4 callers
Function
response_404
()
src/http.rs:29
↓ 4 callers
Function
s_builder
(size)
benchmarks/app/rsgi.py:34
↓ 4 callers
Method
schedule
(&self, py: Python, watcher: Py<T>)
src/callbacks.rs:34
↓ 4 callers
Method
send_response
(&self, status: u16, headers: HeaderMap<HeaderValue>, body: HTTPResponseBody)
src/asgi/io.rs:77
↓ 3 callers
Method
__getstate__
(&self, py: Python)
src/net.rs:114
↓ 3 callers
Method
_reload
(self, spawn_target, target_loader)
granian/server/common.py:509
↓ 3 callers
Method
_respawn_workers
(self, workers, spawn_target, target_loader, delay: float = 0)
granian/server/common.py:339
↓ 3 callers
Method
_spawn_workers
(self, spawn_target, target_loader)
granian/server/common.py:332
↓ 3 callers
Function
app
(scope, receive, send)
tests/apps/asgi.py:216
↓ 3 callers
Method
as_str
(&self)
src/http.rs:21
↓ 3 callers
Function
copy_context
(py: Python)
src/asyncio.rs:27
↓ 3 callers
Function
done_future_into_py
(py: Python, result: PyResult<Py<PyAny>>)
src/runtime.rs:226
↓ 3 callers
Method
err
(&self, py: Python, err: Bound<PyAny>)
src/asgi/callbacks.rs:76
↓ 3 callers
Method
into_pyobject
(self, py: Python<'p>)
src/conversion.rs:16
↓ 3 callers
Method
is_alive
(self)
granian/server/mt.py:65
↓ 3 callers
Method
is_alive
(self)
granian/server/embed.py:75
↓ 3 callers
Method
kill
(self)
granian/server/common.py:75
↓ 3 callers
Method
kill
(self)
granian/server/mp.py:107
↓ 3 callers
Function
log_request_builder
(fmt)
granian/log.py:75
↓ 3 callers
Method
receive
(self)
granian/asgi.py:67
↓ 3 callers
Method
response_str
(self, status, headers, body)
granian/rsgi.py:62
↓ 3 callers
Method
response_stream
(self, status, headers)
granian/rsgi.py:78
↓ 3 callers
Method
send
(&self, py: Python, state: Arc<CallbackSchedulerState>)
src/callbacks.rs:47
↓ 3 callers
Method
send_body
( &self, py: Python<'p>, tx: &mpsc::UnboundedSender<body::Bytes>, body: Box<[u
src/asgi/io.rs:88
↓ 3 callers
Method
send_str
(&self, py: Python<'p>, data: String)
src/rsgi/io.rs:47
↓ 3 callers
Function
server_tls
(request)
tests/test_uds.py:80
↓ 3 callers
Function
set_loop_signals
(loop)
granian/_signals.py:23
↓ 3 callers
Method
shutdown
(self)
granian/asgi.py:55
↓ 3 callers
Method
start
(self)
granian/server/embed.py:71
↓ 3 callers
Method
startup
(self)
granian/asgi.py:45
↓ 3 callers
Method
terminate
(self)
granian/server/mt.py:60
↓ 3 callers
Function
worker_http1_config_from_py
(py: Python, cfg: Option<Py<PyAny>>)
src/conversion.rs:49
↓ 3 callers
Function
worker_http2_config_from_py
(py: Python, cfg: Option<Py<PyAny>>)
src/conversion.rs:70
↓ 3 callers
Function
wrk
(duration, concurrency, endpoint, post=None, h2=False)
benchmarks/benchmarks.py:98
↓ 2 callers
Function
_get_signals
()
granian/_signals.py:8
↓ 2 callers
Function
_inner
()
tests/apps/asgi.py:185
↓ 2 callers
Function
_parse_raw_hosts
(value: str)
granian/utils/proxies.py:55
↓ 2 callers
Method
_readline
(&self, py: Python)
src/wsgi/types.rs:73
↓ 2 callers
Function
_runner
(scope, proto)
granian/asgi.py:111
↓ 2 callers
Method
_serve_loop
(self, spawn_target, target_loader)
granian/server/embed.py:394
↓ 2 callers
Method
_spawn_worker
(self, idx, target, callback_loader, socket_loader)
granian/server/common.py:329
↓ 2 callers
Method
_stop_workers
(self)
granian/server/common.py:364
↓ 2 callers
Method
_watch_workers_lifetime
(self, ttl)
granian/server/common.py:398
↓ 2 callers
Method
_watch_workers_rss
(self)
granian/server/common.py:402
↓ 2 callers
Function
access_log
(rt, mt, scope, resp_code)
granian/asgi.py:142
↓ 2 callers
Function
access_log
(rt, mt, scope, resp_code)
granian/wsgi.py:83
↓ 2 callers
Function
access_log
(rt, mt, scope, resp_code)
granian/rsgi.py:121
↓ 2 callers
Function
adapt_message_type
(py: Python, message: &Bound<PyDict>)
src/asgi/io.rs:608
↓ 2 callers
Method
as_tcp_listener
(&self)
src/net.rs:190
↓ 2 callers
Function
block_on_local
(rt: &RuntimeWrapper, local: LocalSet, fut: F)
src/runtime.rs:369
↓ 2 callers
Function
collect_metrics
(birth: &std::time::Instant, data: &Arc<WorkerMetrics>)
src/metrics.rs:235
↓ 2 callers
Function
configure_logging
(level: LogLevels, config: dict[str, Any] | None = None, enabled: bool = True)
granian/log.py:62
↓ 2 callers
Method
consumed
(&self)
src/asgi/io.rs:510
↓ 2 callers
Function
contextvars
(py: Python<'_>)
src/asyncio.rs:7
↓ 2 callers
Method
done
(self)
granian/_futures.py:31
next →
1–100 of 638, ranked by callers