Skip to content

adhtruong/dependency-injector

Repository files navigation

Dependency Injector

Code style: black pre-commit


Documentation: https://adhtruong.github.io/dependency-injector

Source Code: https://github.com/adhtruong/dependency-injector


Framework for dependency injection.

Quick start

from di import Depends, resolve


def get_my_number() -> int:
    return 2


def square(my_number: int = Depends(get_my_number)) -> int:
    return my_number * my_number


print(resolve(square))  # print 4

Development Set Up

    pip install -r requirements-dev.txt
    pre-commit install

TODO

  • Add docs
  • Add async support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages