I've some sub projects that handle different things in a bigger project, everything works with your inject library (which is I love, so thank you for your work), but now I have a question.
Let's say that I have a library "libraryA", and a "main", the libraryA uses inject to inject all it's dependencies, now main has to call this, but also uses inject, how can the libraryA configure its dependencies whilst main configure its dependencies?
currently I'm doing this:
+- classLA injects classLB
+ classMainA injects classMainB
so the configure in main is something like
inject.clear_and_configure(lambda binder: binder \
but clearly this is wrong as main will need to know the internals of libraryA, I would want that libraryA configure its dependencies and main only its. I see that the examples contain this:
# Create an optional configuration.
binder.install(my_config2) # Add bindings from another config.
# Configure a shared injector.
but this looks more to modules than libraries, as this solution will still need to know the internals of the other packages,
Thanks for your help,