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.

class documentation

class _Module: (source)

Constructor: _Module(name, path)

View In Hierarchy

Names and class declarations visible in a Python module.

Method __init__ Read the imports and classes defined by a contract module.
Method qualify Resolve the first component of a module-local reference.
Instance Variable classes Class declarations indexed by their names in this module.
Instance Variable imported_modules Local module names mapped to the paths needed in import statements.
Instance Variable name Qualified name of the source module.
Instance Variable names Local imported names mapped to their qualified names.
def __init__(self, name: str, path: Path): (source)

Read the imports and classes defined by a contract module.

Parameters
name:strQualified name used to resolve relative imports.
path:PathPython source or stub file to parse.
Returns
NoneRecord the declarations without importing the module.
def qualify(self, name: str) -> str: (source)

Resolve the first component of a module-local reference.

Parameters
name:strLocal name or dotted reference from the module.
Returns
strQualified reference with the original attribute suffix.

Class declarations indexed by their names in this module.

imported_modules: dict[str, str] = (source)

Local module names mapped to the paths needed in import statements.

Qualified name of the source module.

Local imported names mapped to their qualified names.