psr17
Provides a PSR17 synthetic implementation. (by loophp)
Dependency Injector
Dependency injection framework for Python (by ets-labs)
psr17 | Dependency Injector | |
---|---|---|
1 | 7 | |
1 | 4,299 | |
- | 1.9% | |
3.7 | 8.2 | |
10 days ago | 18 days ago | |
PHP | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
psr17
Posts with mentions or reviews of psr17.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-31.
-
re: On using PSR abstractions
I did this package not so long ago to avoid dealing with all the needed dependencies: https://github.com/loophp/psr17
Dependency Injector
Posts with mentions or reviews of Dependency Injector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-16.
-
Java 21 makes me like Java again
Nothing to do with the nature of the language, but with the nature of the program.
If you're writing a few line script, you don't need a DI container. Once your program gets large, it becomes extremely messy without one. It's no surprise projects like [1] exist.
[1] https://github.com/ets-labs/python-dependency-injector
-
Do You Use Singletons?
Totally agree with this. And I’ve found this pattern pairs really well with https://python-dependency-injector.ets-labs.org/
-
Compclasses: prefer composition over inheritance
dependency_injector: https://github.com/ets-labs/python-dependency-injector
-
Loosely coupled Python code with Dependency Injection
As projects continue to grow, its recommended to utilise a dependency injection framework to “inject” these dependencies, such as Dependency Injector, to inject dependency arguments automatically ✨.
-
What is the best practice for injecting configuration into a python application
One approach is to pass this config as a variable to every class it is required, which I dont prefer. Another option is to annotate the config class as singleton and create the config object at every place where I need them. I also came across this library called Dependency_Injector. https://python-dependency-injector.ets-labs.org/ This seems a bit heavy weight for my use case though. I am looking forward to know how other solve this problem
-
Dependency Injection and Python
Dependency Injector
-
Introduction to Dependency Injection in Python
dependency-injector (docs) is python library that provides a framework which enables you to implement DI and IoC in Python.
What are some alternatives?
When comparing psr17 and Dependency Injector you can also consider the following projects:
gruvbox-factory - 🏭 convert any image to the gruvbox pallete
falcon - The no-magic web API and microservices framework for Python developers, with an emphasis on reliability and performance at scale.
Nyholm PSR-7 - A super lightweight PSR-7 implementation
django-rest-framework - Web APIs for Django. 🎸
laravel-factory-refactor - Refactor the style of factory call from helper to static in Laravel 8.x, 9.x, 10.x.
kink - Dependency injection container made for Python