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
Compile expansion once and verify every inverse result by expansion.
| Class Method | compile |
Require an explicit inverse for RFC operators with ambiguous matching. |
| Method | _custom |
Validate the result of a configured custom inverse matcher. |
| Method | match |
Return validated URI variables without loading any resource or file. |
| Class Variable | captures |
Capture metadata used to extract template variable values. |
| Class Variable | custom |
Custom implementations registered by the application. |
| Class Variable | expander |
Callable used to expand a URI template with variable values. |
| Class Variable | pattern |
Compiled pattern used to match the declared URI template. |
| Class Variable | template |
URI template from which the matcher was compiled. |
| Class Variable | variable |
Names of variables referenced by the URI template. |
Require an explicit inverse for RFC operators with ambiguous matching.
| Parameters | |
definition:type[orionis.mcp.Resource] | Class declaration whose metadata is being inspected. |
| Returns | |
orionis.mcp.server.templates.UriMatcher | Result of the operation described above. |
def _customVariables(self, uri:
str, custom: Callable[ [ str], Mapping[ str, object] | None]) -> dict[ str, object] | None:
(source)
¶
Validate the result of a configured custom inverse matcher.
| Parameters | |
uri:str | URI already validated by the public matching entry point. |
custom:collections.abc.Callable | Configured inverse matcher, already narrowed to a callable. |
| Returns | |
dict[str, object] or None | Copied declared variables, or None when the custom matcher declines. |