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 orionis.encrypter.contracts.IEncrypter to orionis.encrypter.Encrypter as a singleton and pins the orionis.support.facades.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 Bind the encrypter contract to its singleton implementation.
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
NoneNo return value.
def register(self): (source)

Bind the encrypter contract to its singleton implementation.

Returns
NoneNo return value.