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.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file vacuna-0.2.1.tar.gz
.
File metadata
- Download URL: vacuna-0.2.1.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 | 85ae81970947f230920c64f64e29c1efb76f9aee52e8cf5cc2b81bc4006f49c7 |
|
MD5 | 53662a5cd902f5f37bd75a04a8dc2386 |
|
BLAKE2b-256 | f7300a4ccdf3445211333aa44c755f61e80bc2c653956eee772f43a26c70d83a |
File details
Details for the file vacuna-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: vacuna-0.2.1-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 | 79f68e402fe5e581e64ebb1c55bc18d2fb89c5b1f367d3b833a3db76a093a0d9 |
|
MD5 | e879b33f923a85bfe9f8c67bf03bf4fd |
|
BLAKE2b-256 | 1a6fd5318f445b90de3c1845bc4d959414b290c29f9f133fbb22415dc7bcdad8 |