Vacuna
Inject everything!
Vacuna is a little library to provide dependency management for your python code.
Install
pip install vacuna
Usage
import vacuna
container = vacuna.Container()
@container.dependency(name='app')
class App:
def run(self):
print('very important computation')
@container.dependency()
def main(app):
app.run()
if __name__ == '__main__':
container.run(main)