Skip to main content

Reusable Lightweight Pythonic Dependency Injection Library

Project description

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)

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.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

vacuna-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file vacuna-0.2.0.tar.gz.

File metadata

  • Download URL: vacuna-0.2.0.tar.gz
  • Upload date:
  • Size: 6.5 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

Hashes for vacuna-0.2.0.tar.gz
Algorithm Hash digest
SHA256 53872535a8baca49ec28d229dc5967df8b8e42713e0e13ea79a7996656416192
MD5 971e5bc3d0952c1630ea06ee72ec2d14
BLAKE2b-256 a241b8aad8175e949a268f201ce4e601d817de4483d79822e3fc7c5f0f1f1e18

See more details on using hashes here.

File details

Details for the file vacuna-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vacuna-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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

Hashes for vacuna-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6997d500b9f2bc06f01c9680ab837032f9481420ce1910e7675b77d9fde13c7d
MD5 4089d97db60be801b129f10b8d6a4dcf
BLAKE2b-256 f7df4525c29302ca16b20fb0169b9ef3da6087f3c0f0e9eaddc0fe35ea987e32

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page