API
App
App(content: ElementFactory, state_resolver: StateResolver | None = None, page_factory: PageFactory = default_page, config: AppConfig | None = None)
Methods:
| Name | Description |
|---|---|
__call__ |
|
Source code in rxxxt/app.py
26 27 28 29 30 31 32 33 34 35 36 37 | |
__call__
async
__call__(scope: ASGIScope, receive: ASGIFnReceive, send: ASGIFnSend) -> Any
Source code in rxxxt/app.py
39 40 | |
ASGIFnReceive
module-attribute
ASGIFnReceive = Callable[[], Awaitable[MutableMapping[str, Any]]]
ASGIFnSend
module-attribute
ASGIFnSend = Callable[[MutableMapping[str, Any]], Awaitable[Any]]
ASGIHandler
module-attribute
ASGIHandler = Callable[[ASGIScope, ASGIFnReceive, ASGIFnSend], Awaitable[Any]]
ASGINextException
Bases: Exception
ASGIScope
module-attribute
ASGIScope = MutableMapping[str, Any]
Composer
Composer()
Methods:
| Name | Description |
|---|---|
__call__ |
|
add_handler |
|
Source code in rxxxt/asgi.py
209 210 | |
__call__
async
__call__(scope: ASGIScope, receive: ASGIFnReceive, send: ASGIFnSend) -> Any
Source code in rxxxt/asgi.py
216 217 218 219 220 221 222 223 224 225 226 227 | |
add_handler
add_handler(handler: ASGIHandler)
Source code in rxxxt/asgi.py
212 213 214 | |
http_handler
http_handler(fn: Callable[[HTTPContext], Awaitable[Any]])
Source code in rxxxt/asgi.py
183 184 185 186 187 | |
http_not_found_handler
async
http_not_found_handler(context: HTTPContext)
Source code in rxxxt/asgi.py
204 205 206 | |
HTTPContext
HTTPContext(scope: ASGIScope, receive: ASGIFnReceive, send: ASGIFnSend)
Bases: TransportContext
Methods:
| Name | Description |
|---|---|
add_response_headers |
|
receive_bytes |
|
receive_iter |
|
receive_json |
|
receive_json_raw |
|
receive_text |
|
respond_file |
|
respond_text |
|
response_body |
|
response_start |
|
Attributes:
| Name | Type | Description |
|---|---|---|
method |
|
Source code in rxxxt/asgi.py
101 102 103 | |
method
property
method
add_response_headers
add_response_headers(headers: ASGIHeaders)
Source code in rxxxt/asgi.py
108 | |
receive_bytes
async
receive_bytes() -> bytes
Source code in rxxxt/asgi.py
168 169 170 171 172 | |
receive_iter
async
receive_iter() -> AsyncGenerator[bytes, Any]
Source code in rxxxt/asgi.py
174 175 176 177 178 179 180 181 | |
receive_json
async
receive_json()
Source code in rxxxt/asgi.py
154 | |
receive_json_raw
async
receive_json_raw()
Source code in rxxxt/asgi.py
156 | |
receive_text
async
receive_text(allowed_mime_types: Iterable[str])
Source code in rxxxt/asgi.py
158 159 160 161 162 163 164 165 166 | |
respond_file
async
respond_file(path: str | Path, mime_type: str | None = None, handle_404: bool = False, use_last_modified: bool = False)
Source code in rxxxt/asgi.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
respond_text
async
respond_text(text: str, status: int = 200, mime_type: str = 'text/plain')
Source code in rxxxt/asgi.py
125 126 127 128 129 | |
response_body
async
response_body(data: BytesLike, more_body: bool)
Source code in rxxxt/asgi.py
118 119 120 121 122 123 | |
response_start
async
response_start(status: int, trailers: bool = False)
Source code in rxxxt/asgi.py
110 111 112 113 114 115 116 | |
routed_handler
routed_handler(pattern: str)
Source code in rxxxt/asgi.py
196 197 198 199 200 201 202 | |
TransportContext
TransportContext(scope: ASGIScope, receive: ASGIFnReceive, send: ASGIFnSend)
Methods:
| Name | Description |
|---|---|
next |
|
Attributes:
| Name | Type | Description |
|---|---|---|
content_type |
|
|
fullpath |
|
|
headers |
|
|
location |
|
|
path |
|
|
query_string |
str | None
|
|
receive |
|
|
scope |
|
|
send |
|
Source code in rxxxt/asgi.py
19 20 21 22 | |
content_type
cached
property
content_type
fullpath
property
fullpath
headers
cached
property
headers
location
property
location
path
property
path
query_string
property
query_string: str | None
receive
instance-attribute
receive = receive
scope
instance-attribute
scope = scope
send
instance-attribute
send = send
next
next()
Source code in rxxxt/asgi.py
58 | |
websocket_handler
websocket_handler(fn: Callable[[WebsocketContext], Awaitable[Any]])
Source code in rxxxt/asgi.py
189 190 191 192 193 | |
WebsocketContext
WebsocketContext(scope: ASGIScope, receive: ASGIFnReceive, send: ASGIFnSend)
Bases: TransportContext
Methods:
| Name | Description |
|---|---|
close |
|
receive_message |
|
send_message |
|
setup |
|
Attributes:
| Name | Type | Description |
|---|---|---|
connected |
|
Source code in rxxxt/asgi.py
61 62 63 | |
connected
property
connected
close
async
close(code: int = 1000, reason: str = 'Normal Closure')
Source code in rxxxt/asgi.py
90 91 92 | |
receive_message
async
receive_message() -> BytesLike | str
Source code in rxxxt/asgi.py
73 74 75 76 77 78 79 80 81 | |
send_message
async
send_message(data: str | BytesLike)
Source code in rxxxt/asgi.py
83 84 85 86 87 88 | |
setup
async
setup(headers: ASGIHeaders = (), subprotocol: str | None = None)
Source code in rxxxt/asgi.py
68 69 70 71 | |
Component
Component()
Bases: Element
Methods:
| Name | Description |
|---|---|
add_job |
Runs a background job until completion. Only runs when the session is persistent. |
add_worker |
Runs a background worker, which may be cancelled at any time. Only runs when the session is persistent. |
lc_destroy |
|
lc_handle_event |
|
lc_init |
|
lc_render |
|
on_after_destroy |
|
on_after_update |
|
on_before_destroy |
|
on_before_update |
|
on_init |
|
render |
|
tonode |
|
Attributes:
| Name | Type | Description |
|---|---|---|
context |
Context
|
|
Source code in rxxxt/component.py
213 214 215 216 217 | |
add_job
add_job(a: Coroutine[Any, Any, Any])
Runs a background job until completion. Only runs when the session is persistent. args: a: Coroutine - the coroutine that should be run
Source code in rxxxt/component.py
222 223 224 225 226 227 228 229 230 | |
add_worker
add_worker(a: Coroutine[Any, Any, Any])
Runs a background worker, which may be cancelled at any time. Only runs when the session is persistent. args: a: Coroutine - the coroutine that should be run
Source code in rxxxt/component.py
231 232 233 234 235 236 237 238 239 | |
lc_destroy
async
lc_destroy() -> None
Source code in rxxxt/component.py
252 253 254 255 256 257 258 259 260 261 262 263 | |
lc_handle_event
async
lc_handle_event(event: dict[str, int | float | str | bool | None])
Source code in rxxxt/component.py
265 266 267 268 269 270 | |
lc_init
async
lc_init(context: Context) -> None
Source code in rxxxt/component.py
241 242 243 | |
lc_render
async
lc_render() -> Element
Source code in rxxxt/component.py
245 246 247 248 249 250 251 | |
on_after_destroy
async
on_after_destroy() -> None
Source code in rxxxt/component.py
276 | |
on_after_update
async
on_after_update() -> None
Source code in rxxxt/component.py
274 | |
on_before_destroy
async
on_before_destroy() -> None
Source code in rxxxt/component.py
275 | |
on_before_update
async
on_before_update() -> None
Source code in rxxxt/component.py
273 | |
on_init
async
on_init() -> None
Source code in rxxxt/component.py
272 | |
render
abstractmethod
Source code in rxxxt/component.py
219 220 | |
tonode
tonode(context: Context) -> Node
Source code in rxxxt/component.py
278 | |
context_state
context_state(default_factory: Callable[[], T], name: str | None = None)
Source code in rxxxt/component.py
133 134 | |
context_state_box
context_state_box(default_factory: Callable[[], T], name: str | None = None)
Source code in rxxxt/component.py
142 143 | |
event_handler
event_handler(**kwargs: Any)
Source code in rxxxt/component.py
199 200 201 202 | |
EventHandler
EventHandler(fn: Callable[Concatenate[Any, FNP], FNR], options: InputEventDescriptorOptions, instance: Any)
Bases: ClassEventHandler[FNP, FNR], Generic[FNP, FNR], CustomAttribute, InputEventDescriptorGenerator
Methods:
| Name | Description |
|---|---|
__call__ |
|
bind |
|
get_key_values |
|
Attributes:
| Name | Type | Description |
|---|---|---|
descriptor |
|
Source code in rxxxt/component.py
153 154 155 156 | |
descriptor
property
descriptor
__call__
__call__(*args: args, **kwargs: kwargs) -> FNR
Source code in rxxxt/component.py
166 | |
bind
bind(**kwargs: int | float | str | bool | None)
Source code in rxxxt/component.py
168 169 170 171 172 173 174 | |
get_key_values
get_key_values(original_key: str)
Source code in rxxxt/component.py
176 177 178 179 | |
global_state
global_state(default_factory: Callable[[], T], name: str | None = None)
Source code in rxxxt/component.py
130 131 | |
global_state_box
global_state_box(default_factory: Callable[[], T], name: str | None = None)
Source code in rxxxt/component.py
139 140 | |
HandleNavigate
HandleNavigate(location: str)
Bases: CustomAttribute
Methods:
| Name | Description |
|---|---|
get_key_values |
|
Attributes:
| Name | Type | Description |
|---|---|---|
location |
|
Source code in rxxxt/component.py
205 206 207 | |
location
instance-attribute
location = location
get_key_values
get_key_values(original_key: str) -> tuple[tuple[str, str], ...]
Source code in rxxxt/component.py
209 210 | |
local_state
local_state(default_factory: Callable[[], T], name: str | None = None)
Source code in rxxxt/component.py
127 128 | |
local_state_box
local_state_box(default_factory: Callable[[], T], name: str | None = None)
Source code in rxxxt/component.py
136 137 | |
StateBox
StateBox(key: str, state: State, default_factory: Callable[[], T], adapter: TypeAdapter[T])
Bases: Generic[T], StateCell
Methods:
| Name | Description |
|---|---|
__enter__ |
|
__exit__ |
|
consume |
|
detach |
|
produce |
|
update |
|
Attributes:
| Name | Type | Description |
|---|---|---|
key |
|
|
value |
|
Source code in rxxxt/component.py
13 14 15 16 17 18 19 20 21 22 23 24 25 | |
key
property
key
value
property
writable
value
__enter__
__enter__()
Source code in rxxxt/component.py
27 | |
__exit__
__exit__(*_)
Source code in rxxxt/component.py
28 | |
consume
consume(key: str, producer: Callable[[], str]) -> Any
Source code in rxxxt/component.py
47 48 | |
detach
detach(key: str) -> Any
Source code in rxxxt/component.py
50 51 | |
produce
produce(key: str) -> str
Source code in rxxxt/component.py
44 45 | |
update
update()
Source code in rxxxt/component.py
41 42 | |
add_attributes
add_attributes(base: HTMLAttributes, **kwargs: HTMLAttributeValue)
Source code in rxxxt/elements.py
151 152 | |
class_map
class_map(map: dict[str, bool])
Source code in rxxxt/elements.py
145 146 | |
CustomAttribute
Bases: ABC
Methods:
| Name | Description |
|---|---|
get_key_values |
|
get_key_values
abstractmethod
get_key_values(original_key: str) -> tuple[tuple[str, str | None], ...]
Source code in rxxxt/elements.py
15 16 | |
El
Element
ElementFactory
HTMLAttributes
module-attribute
HTMLAttributes = dict[str, str | bool | int | float | CustomAttribute | None]
HTMLAttributeValue
module-attribute
HTMLAttributeValue = str | bool | int | float | CustomAttribute | None
HTMLElement
HTMLElement(context: Context, tag: str, attributes: HTMLAttributes, content: ElementContent)
Source code in rxxxt/elements.py
76 77 78 | |
HTMLFragment
HTMLFragment(context: Context, content: ElementContent)
Source code in rxxxt/elements.py
68 69 70 | |
HTMLVoidElement
HTMLVoidElement(context: Context, tag: str, attributes: HTMLAttributes)
Source code in rxxxt/elements.py
72 73 74 | |
KeyedElement
Source code in rxxxt/elements.py
80 81 82 83 84 | |
lazy_element
Source code in rxxxt/elements.py
63 64 65 66 | |
merge_attributes
merge_attributes(a: HTMLAttributes, b: HTMLAttributes)
Source code in rxxxt/elements.py
148 149 | |
ScriptContent
ScriptContent(context: Context, script: str)
Source code in rxxxt/elements.py
102 103 104 | |
TextElement
TextElement(context: Context, text: str)
Source code in rxxxt/elements.py
94 95 96 | |
UnescapedHTMLElement
UnescapedHTMLElement(context: Context, text: str)
Source code in rxxxt/elements.py
98 99 100 | |
VEl
WithRegistered
Source code in rxxxt/elements.py
90 91 92 | |
Context
dataclass
Context(id: ContextStack, state: State, registry: dict[str, Any], config: ContextConfig, execution: Execution)
Classes:
| Name | Description |
|---|---|
StateConsumer |
|
Methods:
Attributes:
| Name | Type | Description |
|---|---|---|
config |
ContextConfig
|
|
cookies |
dict[str, str]
|
|
execution |
Execution
|
|
id |
ContextStack
|
|
location |
|
|
path |
|
|
query_string |
|
|
registry |
dict[str, Any]
|
|
sid |
|
|
stack_sids |
|
|
state |
State
|
|
update_consumer |
|
config
instance-attribute
config: ContextConfig
cookies
property
cookies: dict[str, str]
execution
instance-attribute
execution: Execution
id
instance-attribute
id: ContextStack
location
property
location
path
property
path
query_string
property
query_string
registry
instance-attribute
registry: dict[str, Any]
sid
cached
property
sid
stack_sids
property
stack_sids
update_consumer
cached
property
update_consumer
StateConsumer
StateConsumer(context: Context)
Bases: StateConsumer
Methods:
| Name | Description |
|---|---|
consume |
|
detach |
|
Attributes:
| Name | Type | Description |
|---|---|---|
context |
|
Source code in rxxxt/execution.py
100 | |
context
instance-attribute
context = context
consume
consume(key: str, producer: Callable[[], str]) -> Any
Source code in rxxxt/execution.py
101 | |
detach
detach(key: str) -> Any
Source code in rxxxt/execution.py
102 | |
__hash__
__hash__() -> int
Source code in rxxxt/execution.py
104 105 | |
add_query_selector_event
add_query_selector_event(selector: str, name: str, descriptor: InputEventDescriptor | InputEventDescriptorGenerator, all: bool = False)
Source code in rxxxt/execution.py
171 172 | |
add_window_event
add_window_event(name: str, descriptor: InputEventDescriptor | InputEventDescriptorGenerator)
Source code in rxxxt/execution.py
168 169 | |
delete_cookie
delete_cookie(name: str, mirror_state: bool = True)
Source code in rxxxt/execution.py
200 201 202 203 | |
emit
emit(name: str, data: dict[str, int | float | str | bool | None])
Source code in rxxxt/execution.py
165 166 | |
get_header
get_header(name: str) -> tuple[str, ...]
Source code in rxxxt/execution.py
157 158 159 160 | |
match_path
match_path(pattern: str, re_flags: int = IGNORECASE)
Source code in rxxxt/execution.py
154 155 | |
navigate
navigate(location: str)
Source code in rxxxt/execution.py
180 181 182 183 | |
registered
registered(name: str, t: type[T]) -> T
Source code in rxxxt/execution.py
149 150 151 152 | |
remove_query_selector_event
remove_query_selector_event(selector: str, name: str, descriptor: InputEventDescriptor | InputEventDescriptorGenerator, all: bool = False)
Source code in rxxxt/execution.py
177 178 | |
remove_window_event
remove_window_event(name: str, descriptor: InputEventDescriptor | InputEventDescriptorGenerator)
Source code in rxxxt/execution.py
174 175 | |
replace_index
replace_index(key: str)
Source code in rxxxt/execution.py
145 146 147 | |
request_update
request_update()
Source code in rxxxt/execution.py
162 | |
set_cookie
set_cookie(name: str, value: str | None = None, expires: datetime | None = None, path: str | None = None, secure: bool | None = None, http_only: bool | None = None, domain: str | None = None, max_age: int | None = None, mirror_state: bool = True)
Source code in rxxxt/execution.py
187 188 189 190 191 192 193 194 195 196 197 198 | |
sub
sub(key: ContextStackKey)
Source code in rxxxt/execution.py
144 | |
subscribe
subscribe(key: str)
Source code in rxxxt/execution.py
163 | |
update_registry
update_registry(registry: dict[str, Any])
Source code in rxxxt/execution.py
148 | |
use_websocket
use_websocket(websocket: bool = True)
Source code in rxxxt/execution.py
185 | |
InputEventDescriptorOptions
Bases: BaseModel
Attributes:
| Name | Type | Description |
|---|---|---|
debounce |
int | None
|
|
default_params |
dict[str, int | float | str | bool | None] | None
|
|
no_trigger |
bool
|
|
prevent_default |
bool
|
|
throttle |
int | None
|
|
debounce
class-attribute
instance-attribute
debounce: int | None = None
default_params
class-attribute
instance-attribute
default_params: dict[str, int | float | str | bool | None] | None = None
no_trigger
class-attribute
instance-attribute
no_trigger: bool = False
prevent_default
class-attribute
instance-attribute
prevent_default: bool = False
throttle
class-attribute
instance-attribute
throttle: int | None = None
State
State()
Methods:
| Name | Description |
|---|---|
cleanup |
|
delete |
|
destroy |
|
get |
|
get_key_values |
|
set_many |
|
Attributes:
| Name | Type | Description |
|---|---|---|
keys |
|
Source code in rxxxt/state.py
68 69 | |
keys
property
keys
cleanup
cleanup(inactive_prefixes: Set[str])
Source code in rxxxt/state.py
92 93 94 95 96 | |
delete
delete(key: str)
Source code in rxxxt/state.py
83 84 85 86 | |
destroy
destroy()
Source code in rxxxt/state.py
98 99 100 101 | |
get
get(key: str)
Source code in rxxxt/state.py
74 75 76 77 78 | |
get_key_values
get_key_values(inactive_prefixes: Set[str])
Source code in rxxxt/state.py
88 89 90 | |
set_many
set_many(kvs: dict[str, str])
Source code in rxxxt/state.py
80 81 | |
JWTError
Bases: Exception
JWTManager
JWTManager(secret: bytes, max_age: timedelta, algorithm: str = 'HS512')
Classes:
| Name | Description |
|---|---|
JWTHeader |
|
JWTPayloadValidations |
|
Methods:
| Name | Description |
|---|---|
sign |
|
verify |
|
Attributes:
| Name | Type | Description |
|---|---|---|
JWTPayloadAdapter |
|
Source code in rxxxt/helpers.py
83 84 85 86 87 88 89 | |
JWTPayloadAdapter
class-attribute
instance-attribute
JWTPayloadAdapter = TypeAdapter(dict[str, Any])
JWTHeader
JWTPayloadValidations
Bases: BaseModel
Methods:
| Name | Description |
|---|---|
is_valid |
|
Attributes:
| Name | Type | Description |
|---|---|---|
exp |
int
|
|
exp
instance-attribute
exp: int
is_valid
is_valid()
Source code in rxxxt/helpers.py
79 80 81 | |
sign
sign(extra_fields: dict[str, Any])
Source code in rxxxt/helpers.py
91 92 93 94 95 96 97 98 99 100 101 102 103 | |
verify
verify(token: str)
Source code in rxxxt/helpers.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
match_path
match_path(pattern: str, path: str, re_flags: int = IGNORECASE)
Source code in rxxxt/helpers.py
57 58 | |
default_page
Source code in rxxxt/page.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | |
PageBuilder
PageBuilder(page_factory: PageFactory = default_page)
Bases: PageFactory
Methods:
| Name | Description |
|---|---|
__call__ |
|
add_body_end |
|
add_body_script |
|
add_header |
|
add_header_script |
|
add_stylesheet |
|
Source code in rxxxt/page.py
24 25 26 27 | |
__call__
Source code in rxxxt/page.py
38 39 | |
add_body_end
add_body_end(el: Element)
Source code in rxxxt/page.py
36 | |
add_body_script
add_body_script(url: str, content: ElementContent = (), **kwargs: HTMLAttributeValue)
Source code in rxxxt/page.py
32 33 | |
add_header
add_header(el: Element)
Source code in rxxxt/page.py
35 | |
add_header_script
add_header_script(url: str, content: ElementContent = (), **kwargs: HTMLAttributeValue)
Source code in rxxxt/page.py
30 31 | |
add_stylesheet
add_stylesheet(url: str, **kwargs: HTMLAttributeValue)
Source code in rxxxt/page.py
29 | |
PageFactory
Router
Router()
Bases: ElementFactory
Classes:
| Name | Description |
|---|---|
RoutedComponent |
|
Methods:
| Name | Description |
|---|---|
__call__ |
|
add_route |
|
add_router |
|
route |
|
Source code in rxxxt/router.py
34 35 | |
RoutedComponent
RoutedComponent(routes: tuple[tuple[str, ElementFactory], ...])
Bases: Component
Methods:
| Name | Description |
|---|---|
on_before_update |
|
render |
|
Attributes:
| Name | Type | Description |
|---|---|---|
params |
|
Source code in rxxxt/router.py
12 13 14 15 | |
on_before_update
async
on_before_update() -> None
Source code in rxxxt/router.py
17 18 19 | |
render
render() -> Element
Source code in rxxxt/router.py
21 22 23 24 25 | |
__call__
__call__() -> Element
Source code in rxxxt/router.py
45 | |
add_route
add_route(pattern: str, element_factory: ElementFactory)
Source code in rxxxt/router.py
38 | |
add_router
add_router(router: Router)
Source code in rxxxt/router.py
37 | |
route
route(pattern: str)
Source code in rxxxt/router.py
39 40 41 42 43 | |
router_params
router_params()
Source code in rxxxt/router.py
6 | |
AppConfig
dataclass
AppConfig(enable_web_socket_state_updates: bool | None = None, disable_http_update_retry: bool | None = None)
Attributes:
| Name | Type | Description |
|---|---|---|
disable_http_update_retry |
bool | None
|
|
enable_web_socket_state_updates |
bool | None
|
|
disable_http_update_retry
class-attribute
instance-attribute
disable_http_update_retry: bool | None = None
enable_web_socket_state_updates
class-attribute
instance-attribute
enable_web_socket_state_updates: bool | None = None
default_state_resolver
default_state_resolver() -> JWTStateResolver
Creates a JWTStateResolver.
Uses the environment variable JWT_SECRET as its secret, if set, otherwise creates a new random, temporary secret.
Source code in rxxxt/state.py
132 133 134 135 136 137 138 139 140 141 | |
JWTStateResolver
JWTStateResolver(secret: bytes, max_age: timedelta | None = None, algorithm: str = 'HS512')
Bases: StateResolver
Methods:
| Name | Description |
|---|---|
create_token |
|
resolve |
|
Attributes:
| Name | Type | Description |
|---|---|---|
StateDataAdapter |
|
Source code in rxxxt/state.py
118 119 120 | |
StateDataAdapter
class-attribute
instance-attribute
StateDataAdapter = TypeAdapter(dict[str, str])
create_token
create_token(data: dict[str, str], old_token: str | None) -> str
Source code in rxxxt/state.py
122 123 124 | |
resolve
resolve(token: str) -> dict[str, str]
Source code in rxxxt/state.py
126 127 128 129 130 | |
State
State()
Methods:
| Name | Description |
|---|---|
cleanup |
|
delete |
|
destroy |
|
get |
|
get_key_values |
|
set_many |
|
Attributes:
| Name | Type | Description |
|---|---|---|
keys |
|
Source code in rxxxt/state.py
68 69 | |
keys
property
keys
cleanup
cleanup(inactive_prefixes: Set[str])
Source code in rxxxt/state.py
92 93 94 95 96 | |
delete
delete(key: str)
Source code in rxxxt/state.py
83 84 85 86 | |
destroy
destroy()
Source code in rxxxt/state.py
98 99 100 101 | |
get
get(key: str)
Source code in rxxxt/state.py
74 75 76 77 78 | |
get_key_values
get_key_values(inactive_prefixes: Set[str])
Source code in rxxxt/state.py
88 89 90 | |
set_many
set_many(kvs: dict[str, str])
Source code in rxxxt/state.py
80 81 | |
StateResolver
Bases: ABC
Methods:
| Name | Description |
|---|---|
create_token |
|
resolve |
|
create_token
abstractmethod
create_token(data: dict[str, str], old_token: str | None) -> str | Awaitable[str]
Source code in rxxxt/state.py
110 111 | |
resolve
abstractmethod
resolve(token: str) -> dict[str, str] | Awaitable[dict[str, str]]
Source code in rxxxt/state.py
112 113 | |