Contents

dependency-injector 4.41.0

0

Dependency injection framework for Python

Dependency injection framework for Python

Stars: 3549, Watchers: 3549, Forks: 276, Open Issues: 214

The ets-labs/python-dependency-injector repo was created 9 years ago and the last code push was 3 weeks ago.
The project is very popular with an impressive 3549 github stars!

How to Install dependency-injector

You can install dependency-injector using pip

pip install dependency-injector

or add it to a project with poetry

poetry add dependency-injector

Package Details

Author
Roman Mogylatov
License
BSD New
Homepage
https://github.com/ets-labs/python-dependency-injector
PyPi:
https://pypi.org/project/dependency-injector/
GitHub Repo:
https://github.com/ets-labs/python-dependency-injector

Classifiers

  • Software Development
  • Software Development/Libraries
  • Software Development/Libraries/Python Modules
No  dependency-injector  pypi packages just yet.

Errors

A list of common dependency-injector errors.

Code Examples

Here are some dependency-injector code examples and snippets.

GitHub Issues

The dependency-injector package has 214 open issues on GitHub

  • Using class property as decorator, result in 'Provide' object has no attribute
  • Dependencies are not injected when creating injections into a module using "providers.DependenciesContainer"
  • Dependency provider fails to provide default falsy value
  • Override works only with yield, not with return
  • Not able to import 'providers' from 'dependency_injector' in AWS lambda
  • how to ensure that runtime changes to configuration are preserved?
  • Question: How to build parameterized singleton
  • Async resource is sometimes None
  • How to fail application if dependency cannot be wired?
  • Confusing behavior of Singletons with pytest scopes
  • Aggregate provider (aka use Selector as FactoryAggregate)

See more issues on GitHub

Related Packages & Articles

aiojobs 1.2.1

Job scheduler for managing background tasks (asyncio)