Injector is a dependency injection framework for Python.
What's the difference between this Python project and similar ones?
Injector is maintained unlike most of the other DI framework for Python
Provides scopes (e.g. @singleton) which restrict the lifetime of your dependencies. You can also implement your own scopes, suitable for your problem.
Easy to configure, and has several ways of providing dependencies, so you can choose the most suitable one for your problem
Exploits Python 3 type annotations which makes injection syntax natural and removes a lot of boilerplate, you just have to annotate the constructor
Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/704
**Author:** [@karlicoss](https://github.com/karlicoss)
**Created:** 8/25/2016
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `kmaster`
---
### 📝 Commits (1)
- [`b711d6d`](https://github.com/vinta/awesome-python/commit/b711d6d7aa8f04d8ba463f966498282a916c29f0) Add Injector
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## What is this Python project?
Injector is a dependency injection framework for Python.
## What's the difference between this Python project and similar ones?
- Injector is maintained unlike most of the other DI framework for Python
- Provides scopes (e.g. `@singleton`) which restrict the lifetime of your dependencies. You can also implement your own scopes, suitable for your problem.
- Easy to configure, and has several ways of providing dependencies, so you can choose the most suitable one for your problem
- Exploits Python 3 type annotations which makes injection syntax natural and removes a lot of boilerplate, you just have to annotate the constructor
##
Anyone who agrees with this pull request could vote for it by adding a :+1: to it, and usually, the maintainer will merge it when votes reach **20**.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/704
Author: @karlicoss
Created: 8/25/2016
Status: ❌ Closed
Base:
master← Head:kmaster📝 Commits (1)
b711d6dAdd Injector📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
Injector is a dependency injection framework for Python.
What's the difference between this Python project and similar ones?
@singleton) which restrict the lifetime of your dependencies. You can also implement your own scopes, suitable for your problem.Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.