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.

package documentation

Group the orm factories components and public imports.

Module _attributes Provide orm factories operations through copy_attributes.
Module _faker Provide orm factories operations through create_faker.
Module exceptions Provide orm factories operations.
Module factory Build and persist model instances from reusable attribute definitions.
Module fake Generate fake data with optional and unique value constraints.
Module sequence Describe cycling attributes without owning a shared counter.

From __init__.py:

Class Factory Build and persist model instances from reusable attribute definitions.
Class Fake Generate fake values through the configured data providers.
Class OptionalFake Generate optional fake values according to a configured probability.
Class Sequence Describe cycling attributes without owning a shared counter.
Class UniqueFake Generate fake values while tracking and rejecting duplicates.
Exception FactoryConcurrencyException Report overlapping operations on the same factory instance.
Exception FactoryConfigurationException Report invalid model, count, locale, seed, or sequence configuration.
Exception FactoryDefinitionException Report an absent definition or invalid generated attributes.
Exception FactoryDependencyException Retain the legacy dependency exception for public API compatibility.
Exception FactoryException Base exception for model factory failures.
Exception FactoryPersistenceException Report a model event vetoing persistence.
Function __dir__ List loaded attributes and declared public exports.
Function __getattr__ Resolve and cache a public package export.
Constant _EXCEPTIONS_MODULE Defining module shared by public factory exception exports.
Constant _EXPORTS Public export names mapped to their defining modules and attributes.
Constant _FAKE_MODULE Defining module shared by public fake-data view exports.
def __dir__() -> list[str]: (source)

List loaded attributes and declared public exports.

Returns
list[str]Sorted attribute names available on this package.
def __getattr__(name: str) -> object: (source)

Resolve and cache a public package export.

Parameters
name:strPublic attribute requested from this package.
Returns
objectExported object from its defining module.
Raises
AttributeErrorIf the requested attribute is not exported.
_EXCEPTIONS_MODULE: str = (source)

Defining module shared by public factory exception exports.

Value
'orionis.orm.factories.exceptions'
_EXPORTS = (source)

Public export names mapped to their defining modules and attributes.

Value
{'Factory': ('orionis.orm.factories.factory', 'Factory'),
 'FactoryConcurrencyException': (_EXCEPTIONS_MODULE,
                                 'FactoryConcurrencyException'),
 'FactoryConfigurationException': (_EXCEPTIONS_MODULE,
                                   'FactoryConfigurationException'),
 'FactoryDefinitionException': (_EXCEPTIONS_MODULE,
                                'FactoryDefinitionException'),
...
_FAKE_MODULE: str = (source)

Defining module shared by public fake-data view exports.

Value
'orionis.orm.factories.fake'