Skip to content

dynamic component provider - per component consistent providing of attributes #257

@RonnyPfannschmidt

Description

@RonnyPfannschmidt

in a Application framework im working on i want to migrate towards using dishka to provide data of plugins

however instead of having something like

...

class PluginProvider(Provider):
   ...


plugin_providers = [PluginProvider(component=plugin_name) for plugin_name in get_availiable_plugins()]

i want to use something more like

...

class PluginProvider(DynamicComponenProvider):
  ...


plugin_provider = PluginProvider()

if necessary i can extract a more complete example to demonstrate the point

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions