Metadata-Version: 2.1
Name: fastapidi
Version: 0.1.3
Summary: Real dependency injection in fastapi
Home-page: https://github.com/Bloodielie/fastapidi
Author: Bloodie_lie
Author-email: riopro2812@gmail.com
License: MIT License
Description: # FastAPI DI
        
        *This library to integrate [pyject](https://github.com/Bloodielie/pyject) into [fastapi](https://github.com/tiangolo/fastapi) to use di*
        
        ## Install
        
        ```bash
        pip install fastapidi
        ```
        
        ## Using
        
        ```python
        from fastapidi import FastAPIDI, get_dependency
        
        class Test:
            def test(self):
                return "123"
        
        app = FastAPIDI()
        app.container.add_singleton(Test, Test)
        
        @app.get("/")
        async def test(dependency: Test = get_dependency(Test)):
            return dependency.test()
        ```
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Topic :: Internet
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.7
Description-Content-Type: text/markdown
