harp.services.providers

Inheritance diagram of harp.services.providers

class ServiceProvider[source]

Bases: object

__init__(_type, _constructor=None, *, args, kwargs, lifestyle)[source]
bind(**kwargs)[source]

Add additional arguments to the service provider. We check that arguments are in the signature of the service type before adding them.

property constructor
property signature
filter_kwargs_based_on_signature(kwargs, signature)[source]

Filter out kwargs that are not in the signature or that are not allowed as keyword arguments.

Parameters:

signature (Signature)