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

Discover file-owned migration and seeder classes with stable persisted names.

Function _discover_steps Collect distinct step classes while rejecting ambiguous persisted names.
def _discover_steps(base_path: Path, target_path: Path, step_base: type[T], kind: str) -> dict[str, type[T]]: (source)

Collect distinct step classes while rejecting ambiguous persisted names.

Parameters
base_path:pathlib.PathApplication root containing the discovery directory.
target_path:pathlib.PathDirectory containing migration or seeder modules.
step_base:type[T]Required base class for eligible definitions.
kind:strStep category used in ambiguity diagnostics.
Returns
dict[str, type[T]]File stems mapped to their own classes, sorted by persisted name.
Raises
OSErrorIf the directory cannot be traversed completely.
ValueErrorIf the directory is outside the application or distinct classes share a name.