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 KeyGenerateCommand(BaseCommand): (source)

View In Hierarchy

Generate and persist an application encryption key.

Method handle Create a key and store it in the application's environment file.
Class Variable arguments Command-line argument declarations accepted by this command.
Class Variable description Generate the application encryption key..
Class Variable signature key:generate.
Class Variable timestamps Timestamps flag used by KeyGenerateCommand.
def handle(self, app: IApplication, console: Console) -> int: (source)

Create a key and store it in the application's environment file.

Parameters
app:orionis.IApplicationApplication providing the configured cipher.
console:orionis.console.ConsoleConsole used to report the result.
Returns
intZero when the key is written or preserved; one when persistence fails.
arguments: ClassVar[list[Argument]] = (source)

Command-line argument declarations accepted by this command.

description: str = (source)

Generate the application encryption key..

signature: str = (source)

key:generate.

timestamps: bool = (source)

Timestamps flag used by KeyGenerateCommand.