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 EncrypterProvider(ServiceProvider): (source)

View In Hierarchy

Service provider for the Orionis encryption system.

Binds IEncrypter to Encrypter as a singleton and pins the Crypt facade so the synchronous Crypt.encrypt(...) and Crypt.decrypt(...) calls resolve without container overhead.

Async Method boot Pin the Crypt facade after all services are registered.
Method register Register the encrypter service in the application container.
async def boot(self): (source)

Pin the Crypt facade after all services are registered.

Pinning is mandatory here because the encrypter exposes a synchronous API: consumers such as Stringable.encrypt() call the facade without awaiting, and an unpinned facade would hand them a dispatcher object.

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

Register the encrypter service in the application container.

This method binds the IEncrypter interface to its concrete implementation as a singleton, ensuring a single instance is shared across the application.

Returns
NoneThis method does not return a value.