ORIONIS API REFERENCE

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.

module documentation

Undocumented

Class UriMatcher Compile expansion once and verify every inverse result by expansion.
Function _decode_captures Decode URI variables while checking repeated variable consistency.
Function _simple_pattern Compile safe simple-string inverses; other expressions need a match hook.
Function _uppercase_escape Normalize the hexadecimal digits of one percent escape.
Function _validate_template Accept RFC 6570 syntax while excluding the dependency's draft extensions.
Function validate_uri Require an absolute URI without malformed escapes or literal controls.
Constant _ESCAPE Undocumented
Constant _EXPRESSION Undocumented
Constant _INVALID_LITERAL Undocumented
Constant _MODIFIER Undocumented
Constant _PART Undocumented
Constant _SCHEME Undocumented
Constant _SIMPLE Undocumented
Constant _VARNAME Undocumented
def _decode_captures(captures: tuple[str, ...], groups: tuple[str, ...]) -> dict[str, object] | None: (source)

Decode URI variables while checking repeated variable consistency.

Parameters
captures:tuple[str, ...]Variable names in capture order.
groups:tuple[str, ...]Values captured by the compiled inverse pattern.
Returns
dict[str, object] | NoneDecoded variables, or None when repeated variables disagree.
def _simple_pattern(template: str) -> tuple[re.Pattern[str], tuple[str, ...]] | None: (source)

Compile safe simple-string inverses; other expressions need a match hook.

Parameters
template:strValue supplied for template.
Returns
tuple[re.Pattern[str], tuple[str, ...]] | NoneResult of the operation described above.
def _uppercase_escape(match: re.Match[str]) -> str: (source)

Normalize the hexadecimal digits of one percent escape.

Parameters
match:re.Match[str]Matched percent escape.
Returns
strEscape with uppercase hexadecimal digits.
def _validate_template(template: str): (source)

Accept RFC 6570 syntax while excluding the dependency's draft extensions.

Parameters
template:strValue supplied for template.
Returns
NoneComplete the documented operation without returning a value.
def validate_uri(uri: str): (source)

Require an absolute URI without malformed escapes or literal controls.

Parameters
uri:strValue supplied for uri.
Returns
NoneComplete the documented operation without returning a value.

Undocumented

Value
re.compile(r'%[0-9a-fA-F]{2}')
_EXPRESSION = (source)

Undocumented

Value
re.compile(f'[+#./;?&]?{_VARNAME}{_MODIFIER}(?:,{_VARNAME}{_MODIFIER})*+', re.ASCII↵
)
_INVALID_LITERAL = (source)

Undocumented

Value
re.compile(r'[\x00- \x7f"<>\\\^`\{\}]|%(?![0-9A-Fa-f]{2})|[\ud800-\udfff]')
_MODIFIER: str = (source)

Undocumented

Value
'(?::[1-9]\\d{0,3}|\\*)?'

Undocumented

Value
re.compile(r'\{([^\{\}]*)\}')

Undocumented

Value
re.compile(r'[A-Za-z][A-Za-z0-9\+\.-]*:')

Undocumented

Value
re.compile(_VARNAME, re.ASCII)
_VARNAME: str = (source)

Undocumented

Value
'(?:\\w|%[0-9A-Fa-f]{2})++(?:\\.(?:\\w|%[0-9A-Fa-f]{2})++)*+'