minos.common.injectors module

class minos.common.injectors.DependencyInjector(config, **kwargs)[source]

Bases: object

Async wrapper of dependency_injector.containers.Container.

__init__(config, **kwargs)[source]
container

Get the dependencies container.

Returns

A Container instance.

injections

Get the injections dictionary.

Returns

A dict of injections..

async unwire()[source]

Disconnect the configuration.

Return type

None

Returns

This method does not return anything.

async wire(*args, **kwargs)[source]

Connect the configuration.

Return type

None

Returns

This method does not return anything.