Skip to content

sgomez/demo-python-di-with-autoconfiguration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency injection in python with autoconfiguration

This is a demo using ets-labs/python-dependency-injector .

The base is a DynamicContainer to autoconfigure services using the decorators @services for regular services and @command_handler for using command pattern.

Run the project

You need to have installed poetry:

  1. poetry install
  2. poetry run dev
  3. Open http://localhost:8000/docs/

About

Dependency injection in python with autoconfiguration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages