Skip to content

DynamicContainer how/why behaves differently .. Flask Blueprints #471

Open
@xpegenaute

Description

@xpegenaute

Hi!,

I am considering the use of your library and I want to be able to define Container's providers in runtime. For this I want to use a DynamicContair. AFAIK this should fit prefectly.

Once I started to test it I used your flask-blueprints example [1]. After changing the line which refers to the Container definition [2] to inherit from DynamicContainer everything fails. How should I modify the example to work properly with DynamicContainers ?, in the doc [3] there is not any special mention to anything.

Regards,
Xavi

[1] - https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/flask-blueprints
[2] -


[3] - https://python-dependency-injector.ets-labs.org/containers/dynamic.html

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions