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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vacuna-0.2.2.tar.gz.
File metadata
- Download URL: vacuna-0.2.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1040-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5b445620011e166144e8dfc57440c6b4eb4aa6fcee6082a26c78c304e85c3e
|
|
| MD5 |
a6767c7cb122069e63ef86f2eb6fe02b
|
|
| BLAKE2b-256 |
f393df6a30ad3188d13d06d8ddce4d54a5dee083d86493c08968842323ae2187
|
File details
Details for the file vacuna-0.2.2-py3-none-any.whl.
File metadata
- Download URL: vacuna-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1040-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e4309a0c32b434338b045d350e864ba062eabd2bb247e0a9dacdb7543f6ec8
|
|
| MD5 |
44fabb3e1a127e19c6f75ad7d49fa7cc
|
|
| BLAKE2b-256 |
a52a1cf296005189834116b35e9246ba6ad10722d9af58bfc61cc9a5e0ed4cc7
|