THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class CompiledRoute: (source)
Represent a runtime-ready compiled HTTP or WebSocket route.
| Instance Variable | action |
Resolved handler descriptor containing module and either function (for functions) or class + method (for controllers and invokable classes). |
| Instance Variable | compiled |
Tuple of resolved middleware classes for efficient dispatch. |
| Instance Variable | converters |
Maps each path parameter name to its converter function. Empty for static routes. |
| Instance Variable | hub |
Realtime codec name for Hub actions; None for ordinary routes. |
| Instance Variable | kind |
Route group kind; either 'web' or 'api'. Set by the loader when importing route files. |
| Instance Variable | method |
HTTP method in uppercase, or the reserved 'WEBSOCKET' table key. |
| Instance Variable | middleware |
Middleware classes attached to this route. |
| Instance Variable | name |
Optional route name used for URL generation. |
| Instance Variable | path |
The original route path, e.g. '/users/{id:int}'. |
| Instance Variable | priority |
Specificity score used to order dynamic routes during dispatch. Higher scores are matched first. Computed as static_segments * 10 - dynamic_segments. |
| Instance Variable | protocol |
Transport used for this route, independently of the action type. |
| Instance Variable | public |
Whether automatic session, CSRF, and identity context are omitted. |
| Instance Variable | regex |
Compiled regex for dynamic routes; None for static routes. |
| Instance Variable | segment |
Number of non-empty path segments, e.g. 2 for '/users/{id}'. Used to narrow dynamic route matching to candidates of the same depth. |
| Instance Variable | type |
How the handler will be resolved at dispatch time. |
| Instance Variable | without |
Middleware classes explicitly excluded from this route. |
Resolved handler descriptor containing module and either function (for functions) or class + method (for controllers and invokable classes).
Specificity score used to order dynamic routes during dispatch. Higher scores are matched first. Computed as static_segments * 10 - dynamic_segments.