python-dependency-injector/examples/providers
Roman Mogylatov 839a319831
Better error message for dependency provider (#395)
* Add prototype for flat resolving

* Add working prototype for sample 1 and 3

* Add working prototype, requires deep refactoring

* Update DependenciesContainer to handle Contrainer provider

* Fix Dependency provider copying issue

* Add hardening fix for Self provider to avoid copying bugs

* Fix flaky container copy issue

* Rename set_parent() to assign_parent()

* Refactor Dependency provider and its typing stub

* Add tests for Dependency provider

* Update makefile to run coverage when tests fail

* Clean up DependenciesContainer provider and add tests

* Clean up Container provider and add tests

* Clean up container instance and add tests

* Refactor isinstance() checks

* Clean up DeclarativeContainer and add tests

* Update docs and examples

* Update changelog

* Revoke makefile change
2021-02-13 09:16:38 -05:00
..
configuration Pydantic settings support (#388) 2021-02-03 09:21:32 -05:00
abstract_factory.py Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
async_overriding.py Async resources and injections (#352) 2021-01-10 19:26:15 -05:00
async.py Async resources and injections (#352) 2021-01-10 19:26:15 -05:00
callable.py Add container usage for callable provider example 2020-09-03 16:57:35 -04:00
coroutine.py Add container usage for coroutine provider example 2020-09-03 16:59:11 -04:00
custom_factory.py Update docs on creating custom providers with a requirement to specify `.related` property 2021-02-05 18:27:32 -05:00
dependency_default.py 336 Dependency provider default (#382) 2021-01-29 13:49:40 -05:00
dependency_undefined_error.py Better error message for dependency provider (#395) 2021-02-13 09:16:38 -05:00
dependency.py Better error message for dependency provider (#395) 2021-02-13 09:16:38 -05:00
dict_non_string_keys.py Add example and docs 2020-11-20 17:57:33 -05:00
dict.py Dict provider (#311) 2020-10-22 14:49:39 -04:00
factory_aggregate.py Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
factory_delegation.py Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
factory_init_injections_underlying.py Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
factory_init_injections.py Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
factory_provided_type.py Fix flake8 warning in factory provided type example 2020-09-03 18:05:28 -04:00
factory.py Add container usage for all factory provider examples 2020-09-03 16:51:12 -04:00
list.py Add container usage for list provider example 2020-09-03 17:03:28 -04:00
object.py Add container usage for object provider example 2020-09-03 17:00:14 -04:00
overriding.py Update provider overriding example to use container and fix bug 2020-09-03 17:42:15 -04:00
provided_instance_complex.py Add container usage to provided instance examples 2020-09-03 17:48:45 -04:00
provided_instance.py Add container usage to provided instance examples 2020-09-03 17:48:45 -04:00
resource.py Bump version to 4.1.1 2020-10-26 13:39:13 -04:00
selector.py Add usage of the container to the selector example 2020-09-03 17:38:52 -04:00
singleton_full_resetting.py Singleton.full_reset() (#391) 2021-02-05 18:17:44 -05:00
singleton_multiple_containers.py Improve singleton provider docs 2020-09-03 17:57:26 -04:00
singleton_resetting.py Singleton.full_reset() (#391) 2021-02-05 18:17:44 -05:00
singleton_scoped.py Add container usage for all singleton provider examples 2020-09-03 16:56:01 -04:00
singleton_thread_locals.py Add container usage for all singleton provider examples 2020-09-03 16:56:01 -04:00
singleton.py Add container usage for all singleton provider examples 2020-09-03 16:56:01 -04:00