Metadata-Version: 2.1
Name: HinteDI
Version: 0.3.1
Summary: A simple dependency injector based on type hints
Author-email: Eetu Asikainen <eetu.asikainen1204@gmail.com>
Project-URL: Homepage, https://github.com/EddieTheCubeHead/HinteDI
Project-URL: Bug Tracker, https://github.com/EddieTheCubeHead/HinteDI/issues
Keywords: dependency injection,DI
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# HinteDI - simple dependency injection system with type hints

This package is a small utility I have been using in my own projects, a super simple tool for basic dependency 
injection in python based on type hints and decorators.

This package exposes three classes: HinteDI, InjectionException and InstanceSentinel. Import HinteDI and use 
```@HinteDI.singleton``` and ```@HinteDI.instance``` to create dependencies and ```@HinteDI.inject``` to mark a 
function as requiring dependency injection. Type hint the dependencies in the injected function and HinteDI will 
inject the dependencies for you. You can also use ```@HinteDI.abstract_base```, ```@HinteDI.singleton_implementation```
and ```@HinteDI.instance_implementation``` to create factory-style abstract dependencies resolvable with a set key.
See  the docs at [GitHub pages](https://eddiethecubehead.github.io/HinteDI/) for better documentation about the package.
