Skip to content

Use reflection to simplify dependency injection #306

@naschorr

Description

@naschorr

Basically, do it like Angular. Type hinted dependencies are specified in the class' __init__ signature. Those dependencies then influence how the module manager generates the dependency graph and thus how and when modules are loaded.

There's probably an industry standard DI framework for Python already, but this is more fun!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions