Skip to content
/ vacuna Public

Reusable Lightweight Pythonic Dependency Injection Library

License

frndmg/vacuna

Repository files navigation

Vacuna

Inject everything!

PyPI PyPI - Python Version PyPI - Downloads PyPI - License codecov

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)

About

Reusable Lightweight Pythonic Dependency Injection Library

Topics

Resources

License

Stars

Watchers

Forks

Languages