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

Define optional registration and startup hooks for service providers.

Method __init__ Initialize a new ServiceProvider instance with the given application container.
Async Method boot Perform post-registration initialization tasks.
Method register Register services and components into the application container.
Instance Variable app The application container instance to which this service provider will be attached.
def __init__(self, app: IApplication): (source)

Initialize a new ServiceProvider instance with the given application container.

Parameters
app:orionis.IApplicationThe application container instance to which this service provider will be attached.
Returns
NoneThis constructor does not return a value.
async def boot(self): (source)

Perform post-registration initialization tasks.

This asynchronous method is called after all services have been registered. Subclasses may override this method to initialize services or perform operations required at application boot time.

Returns
NoneThis method does not return a value.
def register(self): (source)

Register services and components into the application container.

Subclasses may override this synchronous hook to bind services, configurations, or other components to the application container. It is called during the application's service registration phase.

Note

This method must be synchronous. Asynchronous operations are not supported in this method.

Returns
NoneThis method does not return a value.

The application container instance to which this service provider will be attached.