Reusable Lightweight Pythonic Dependency Injection Library
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vacuna-0.2.2.tar.gz
(6.6 kB
view hashes)
Built Distribution
vacuna-0.2.2-py3-none-any.whl
(8.7 kB
view hashes)