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 MakeFactory(MakeStubCommand): (source)
Generate an explicitly imported factory for an application model.
| Method | create |
Create a factory using the configured model and factory directories. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
| Class Variable | arguments |
Command-line argument declarations accepted by this command. |
| Class Variable | description |
Creates a model factory in the database directory.. |
| Class Variable | path |
database_factories. |
| Class Variable | postfix |
Factory. |
| Class Variable | signature |
make:factory. |
| Class Variable | success |
Model factory. |
| Class Variable | template |
factory. |
| Class Variable | timestamps |
Timestamps flag used by MakeFactory. |
Inherited from MakeStubCommand:
| Method | create |
Render one stub into its configured application directory. |
| Method | get |
Read string replacements from the parsed command arguments. |
| Method | get |
Return the selected template name. |
| Async Method | handle |
Create configured files without blocking the running event loop. |
| Class Variable | prefix |
Prefix applied when constructing names or storage keys. |
| Class Variable | replacement |
Command arguments forwarded to template placeholder replacement. |
Create a factory using the configured model and factory directories.
| Parameters | |
app:orionis.IApplication | Application that resolves the destination and model paths. |
name:str | Factory class or file name, with optional nested directories. |
| Returns | |
tuple[tuple[str, str], ...] | Success label and the generated application-relative path. |
| Raises | |
TypeError | If the model directory is not configured as a path. |
ValueError | If the names or model package cannot form valid Python imports. |