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

Run synchronous and asynchronous tests through the application container.

Constant _DEFAULT_PATTERN Precompiled regex for the default glob pattern avoids repeated fnmatch compilation.
Constant _LIFECYCLE_HOOKS Lifecycle hooks that must never be wrapped regardless of naming pattern.
Constant _METHOD_PATTERN a value set by one run is never seen by another run executing in a different task or thread.
Constant _SLOW_CALLBACK_DURATION unittest enables asyncio debug for every isolated test. Its 0.1-second default reports routine test work as a slow task; retain debug with a threshold that highlights substantial event-loop blocking.
_DEFAULT_PATTERN: re.Pattern[str] = (source)

Precompiled regex for the default glob pattern avoids repeated fnmatch compilation.

Value
re.compile(fnmatch.translate('test*'))
_LIFECYCLE_HOOKS: frozenset[str] = (source)

Lifecycle hooks that must never be wrapped regardless of naming pattern.

Value
frozenset(set(['setUp',
               'tearDown',
               'setUpClass',
               'tearDownClass',
               'asyncSetUp',
               'asyncTearDown']))

a value set by one run is never seen by another run executing in a different task or thread.

Value
ContextVar('orionis_test_method_pattern',
           default=_DEFAULT_PATTERN)
_SLOW_CALLBACK_DURATION: float = (source)

unittest enables asyncio debug for every isolated test. Its 0.1-second default reports routine test work as a slow task; retain debug with a threshold that highlights substantial event-loop blocking.

Value
1.0