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

Generate an explicitly imported factory for an application model.

Class MakeFactory Generate an explicitly imported factory for an application model.
Function _parse_name Parse a relative Python name into module components and a class name.
Constant _ACRONYM_RE Compiled pattern used to recognize acronym re.
Constant _CAMEL_RE Compiled pattern used to recognize camel re.
Constant _NAME_RE Compiled pattern used to recognize name re.
def _parse_name(name: str) -> tuple[tuple[str, ...], str]: (source)

Parse a relative Python name into module components and a class name.

Parameters
name:strClass or snake case file name, optionally prefixed by directories.
Returns
tuple[tuple[str, ...], str]Snake case module components and the corresponding class name.
Raises
TypeErrorIf the supplied name is not a string.
ValueErrorIf the name contains invalid or unsafe Python module components.

Compiled pattern used to recognize acronym re.

Value
re.compile(r'([A-Z]+)([A-Z][a-z])')

Compiled pattern used to recognize camel re.

Value
re.compile(r'([a-z0-9])([A-Z])')

Compiled pattern used to recognize name re.

Value
re.compile(r'[A-Za-z]\w*',
           re.ASCII)