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

Uploaded Source

Built Distribution

vacuna-0.1.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vacuna-0.1.3.tar.gz
  • Upload date:
  • Size: 6.0 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.1.3.tar.gz
Algorithm Hash digest
SHA256 33652f37a018fc2567c17169957ff10a46621fbc9b8a3695b7cea97eee6be7a7
MD5 dcfaa3d4ca71e0aba56f5872f5da4834
BLAKE2b-256 169955bde1d58a93851c50118578cffe5d7b1fd3e5cab3e3f5a62003332cef2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vacuna-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d21fedc44e255e83c6e9bbc0fd5253fa5a4734bfe4be196ba05d0d6ec1b778
MD5 2867acefbdff8c51da1608345c45b937
BLAKE2b-256 d1074fc7716f50d9aefe4eb9214d3a2510bbc3ba369bd1fa376911fceae7dba8

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