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 |
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 | |
basepathlib.Path | Application root containing the discovery directory. |
targetpathlib.Path | Directory containing migration or seeder modules. |
steptype[T] | Required base class for eligible definitions. |
kind:str | Step category used in ambiguity diagnostics. |
| Returns | |
dict[str, type[T]] | File stems mapped to their own classes, sorted by persisted name. |
| Raises | |
OSError | If the directory cannot be traversed completely. |
ValueError | If the directory is outside the application or distinct classes share a name. |