modern-python / that-depends

DI-framework, inspired by python-dependency-injector, but without wiring. Python 3.12 is supported
https://that-depends.readthedocs.io/
MIT License
133 stars 10 forks source link

Add a new class DictProvider to handle a dictionary of values. #35

Closed Denis-Frunza closed 3 months ago

Denis-Frunza commented 3 months ago

MR adds a new class DictProvider to the codebase, which allows for handling dictionary values and resolving them asynchronously or synchronously.

Issue: https://github.com/modern-python/that-depends/issues/29

Denis-Frunza commented 3 months ago

@lesnik512 could you take a look, please? If it's okay I'll add the tests and docs as well.

lesnik512 commented 3 months ago

@Denis-Frunza looks great

Denis-Frunza commented 3 months ago

@lesnik512 I've added some docs. Also, I planned to add tests, but it seems the containers don't have any tests.

lesnik512 commented 3 months ago

@Denis-Frunza thank you! I merged it and wrote simple test. And released it https://github.com/modern-python/that-depends/releases/tag/1.12.0