{"id":13458869,"url":"https://github.com/orsinium-labs/dependency_injectors","last_synced_at":"2025-07-25T09:41:34.431Z","repository":{"id":101905696,"uuid":"170313677","full_name":"orsinium-labs/dependency_injectors","owner":"orsinium-labs","description":"Tests and comparison of Python dependency injection libraries","archived":false,"fork":false,"pushed_at":"2019-02-12T13:43:06.000Z","size":7,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-09T06:05:02.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsinium-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-12T12:23:47.000Z","updated_at":"2022-08-03T21:09:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"336dda5e-53d9-4142-a473-2e264a2aad65","html_url":"https://github.com/orsinium-labs/dependency_injectors","commit_stats":null,"previous_names":["orsinium/dependency_injectors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orsinium-labs/dependency_injectors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fdependency_injectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fdependency_injectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fdependency_injectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fdependency_injectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/dependency_injectors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fdependency_injectors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266988938,"owners_count":24017462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T09:00:59.069Z","updated_at":"2025-07-25T09:41:34.406Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Python","funding_links":[],"categories":["Articles / blog posts"],"sub_categories":[],"readme":"\n\n## Libraries\n\nList of dependency injection libraries for Python, sorted by stars:\n\n+ [dependency_injector](https://github.com/ets-labs/python-dependency-injector)\n+ [dry-python/dependencies](https://dependencies.readthedocs.io/en/latest/usage.html)\n+ [antidote](https://antidote.readthedocs.io/en/stable/tutorial.html)\n+ [diay](https://github.com/anlutro/diay.py)\n\n## Tests\n\n|                    | dependencies       | antidote            | diay               |dependency_injector |\n|--------------------|--------------------|---------------------|--------------------|--------------------|\n| Easy to use        | :heavy_check_mark: | :heavy_check_mark:  | :heavy_check_mark: | :x:                |\n| Good docs          | :heavy_check_mark: | :heavy_check_mark:  | :x:                | :x:                |\n| Explicit container | :heavy_check_mark: | :x:                 | :x:                | :heavy_check_mark: |\n| Type annotation    | :x:                | :heavy_check_mark:  | :heavy_check_mark: | :x:                |\n| Lazy annotation    | :x:                | :heavy_check_mark:  | :heavy_check_mark: | :x:                |\n| Name detection     | :heavy_check_mark: | :x:                 | :x:                | :x:                |\n| Function as target | :x:                | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark: |\n| Partial injection  | :heavy_check_mark: | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark: |\n| Overload deps      | :heavy_check_mark: | :heavy_check_mark:  | :heavy_check_mark: | :x:                |\n| Deps for deps      | :heavy_check_mark: | :heavy_check_mark:  | :heavy_check_mark: | :heavy_check_mark: |\n\nTest description:\n\n+ **Easy to use** -- you don't have to know about some difficult conceptions and write much of code.\n+ **Good docs** -- documentation exists and contains many examples and API reference.\n+ **Explicit container** -- you define set of dependencies explicitly that helps you to find out which dependencies was used here without debugging.\n+ **Type annotation** -- library can detect right dependency by type in annotations.\n+ **Lazy annotation** -- library can work with lazy type annotations (defined as string). In Python 4.0 all annotations will be lazy.\n+ **Name detection** -- library can detect right dependency by variable name.\n+ **Function as target** -- you can inject dependencies into function.\n+ **Partial injection** -- you can mix up dependencies with not injected arguments.\n+ **Overload deps** -- you can pass your own dependencies to override dependencies in container.\n+ **Deps for deps** -- dependencies can be injected into other dependencies.\n\n## Usage\n\nSee [tests](./tests/) dir and docs for libraries for usage examples.\n\n## Run tests\n\n```bash\npip3 install --user -r requirements.txt\npytest --tb=short\n```\n\n## Not tested yet\n\n* [serum](https://github.com/suned/serum)\n* [haps](https://github.com/ekiro/haps)\n* [picobox](https://github.com/ikalnytskyi/picobox)\n* [injectable](https://github.com/allrod5/injectable)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fdependency_injectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fdependency_injectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fdependency_injectors/lists"}