# Python Dependency Injection Containers

> Search results for `dependency injection container for Python` on awesome-repositories.com. 114 total matches; showing the first 50.

Explore on the web: https://awesome-repositories.com/q/dependency-injection-container-for-python

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/dependency-injection-container-for-python).**

## Results

- [symfony/dependency-injection](https://awesome-repositories.com/repository/symfony-dependency-injection.md) (4,166 ⭐) — This project is a PHP dependency injection container and framework designed to centralize object construction and manage class dependencies. It serves as a service container and configuration registry that automates object lifecycles and manages references between services to decouple application components from their specific dependencies.

The system handles the instantiation and wiring of objects through both constructor and setter injection. It provides a centralized registry for storing reusable parameters and service definitions, which prevents the hardcoding of settings across the appli
- [codegangsta/inject](https://awesome-repositories.com/repository/codegangsta-inject.md) (978 ⭐) — Inject is a dependency injection library for Go that manages object lifecycles and wires application components by automating the provision of dependencies. It functions as a reflection-based container that maps specific values to their corresponding types, enabling the automatic retrieval and injection of objects into application logic.

The library distinguishes itself through its ability to perform automatic function invocation, where it inspects function signatures at runtime to resolve and provide required arguments from a central registry. It also supports struct field injection, which p
- [ets-labs/python-dependency-injector](https://awesome-repositories.com/repository/ets-labs-python-dependency-injector.md) (4,805 ⭐) — This is a dependency injection framework and inversion of control container for Python. It decouples object creation from business logic by managing how services and their dependencies are assembled, delivered, and linked within an application.

The framework is distinguished by its ability to perform automated component wiring, using import hooks and decorators to inject dependencies into functions and classes across different modules. It supports non-blocking flows through an asynchronous dependency resolver and manages the initialization and shutdown sequences of shared external resources a
- [kivy/python-for-android](https://awesome-repositories.com/repository/kivy-python-for-android.md) (8,888 ⭐) — python-for-android is a toolchain that compiles Python applications and their dependencies into installable Android APK or AAB packages. It bundles a Python interpreter and standard library into an Android package, enabling Python code to run natively on mobile devices. The project provides a recipe-based build engine that automates dependency resolution, version pinning, and custom compilation steps for Android targets.

The system cross-compiles Python and native C-extension libraries for multiple Android CPU architectures, producing separate native binaries for each target and packaging the
- [cake-build/cake](https://awesome-repositories.com/repository/cake-build-cake.md) (4,179 ⭐) — Cake is a cross-platform build automation system and scripting framework that allows users to define software build pipelines using C# scripts. It functions as a CI/CD pipeline orchestrator and build runner, providing a strongly-typed domain-specific language to simplify the orchestration of compilation, testing, and packaging processes across Windows, Linux, and macOS.

The system ensures reproducible build environments by pinning the versions of build tools, modules, and dependencies. It distinguishes itself by enabling a C# scripting workflow with full IDE support, including autocomplete, s
- [bnsreenu/python_for_microscopists](https://awesome-repositories.com/repository/bnsreenu-python-for-microscopists.md) (4,402 ⭐) — This project is a Python bio-imaging toolkit and analysis suite designed for processing and analyzing microscopy and medical images. It provides a collection of tools for image quantification, medical image segmentation, and general bio-imaging workflows.

The suite includes specialized capabilities for quantifying biological data, such as measuring neuron branching complexity via Sholl analysis, calculating particle size distributions, and tracking wound area in scratch assays. It also features a medical image segmentation library that implements U-Net architectures for isolating anatomical s
- [avelino/awesome-go](https://awesome-repositories.com/repository/avelino-awesome-go.md) (175,576 ⭐) — This project serves as a comprehensive language ecosystem index, functioning as a centralized, community-curated directory for the Go programming language. It organizes a vast landscape of software components, libraries, and development tools into a structured, navigable hierarchy, enabling developers to efficiently discover resources tailored to specific functional domains.

The repository distinguishes itself through a decentralized contribution model, where community-driven updates ensure the index remains current with the rapidly evolving software landscape. Beyond simple resource listing,
- [athena-framework/dependency-injection](https://awesome-repositories.com/repository/athena-framework-dependency-injection.md) (11 ⭐) — Robust dependency injection service container framework
- [fastendpoints/fastendpoints](https://awesome-repositories.com/repository/fastendpoints-fastendpoints.md) (5,953 ⭐) — A light-weight REST API development framework for ASP.NET 8 and newer.
- [symfony/translation](https://awesome-repositories.com/repository/symfony-translation.md) (6,607 ⭐) — Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a complete system for managing message catalogs, handling locale-aware string translation, and formatting messages using ICU MessageFormat syntax to support pluralization, gender, and conditional selection. The component organizes translatable strings into named domains, supports key-based lookup that decouples source text from localized versions, and offers deferred rendering through translatable objects that store parameters and render only when output is needed.

The library disting
- [angular/angular.js](https://awesome-repositories.com/repository/angular-angular-js.md) (58,615 ⭐) — AngularJS is a structural framework for building dynamic web applications by extending standard HTML with custom tags and attributes. It operates as a client-side template engine that transforms declarative markup into interactive components, organizing application logic through a model-view-controller pattern. By utilizing a centralized dependency injection container, the framework manages the lifecycle of services and components to ensure modularity and maintainable architecture.

The framework is defined by its two-way data binding mechanism, which automatically synchronizes data models wit
- [angular/angular](https://awesome-repositories.com/repository/angular-angular.md) (100,360 ⭐) — Angular is a platform for building web applications using a component-based architecture. It provides a comprehensive suite of tools for managing encapsulated UI units, including hierarchical dependency injection, a declarative template system, and fine-grained reactivity through signals. The framework supports complex application requirements such as client-side routing, form management, and internationalization.

The project includes a command-line interface for scaffolding and build automation, alongside a testing ecosystem for unit and integration verification. It offers multiple rendering
- [mattwmaster58/playwright-python-language-injection](https://awesome-repositories.com/repository/mattwmaster58-playwright-python-language-injection.md) (0 ⭐) — This repo contains the script to generate language injection definitions for using playwright-python in PyCharm. From the link:
- [symfony/polyfill-ctype](https://awesome-repositories.com/repository/symfony-polyfill-ctype.md) (4,043 ⭐) — This project is a PHP compatibility library that provides fallback implementations of character type checking functions. It serves as a polyfill for the native PHP ctype extension, ensuring that code remains portable and behaves consistently across different server environments and PHP versions.

The library specializes in emulating the behavior of the ctype extension by implementing character type validation using pure PHP code. It identifies if the native extension is missing from the runtime and injects the necessary functions into the global namespace to maintain a consistent API.

The pro
- [thephpleague/container](https://awesome-repositories.com/repository/thephpleague-container.md) (867 ⭐) — Small but powerful dependency injection container
- [inngest/inngest](https://awesome-repositories.com/repository/inngest-inngest.md) (5,499 ⭐) — Inngest is a durable execution framework and event-driven automation engine designed to orchestrate background workflows. It enables developers to build resilient, stateful processes by memoizing function steps, ensuring that long-running tasks can automatically resume from the last successful operation after failures, timeouts, or infrastructure restarts.

The platform distinguishes itself through its event-driven architecture, which uses a schema-validated bus to trigger functions and coordinate complex, multi-step logic. It employs an onion-model middleware approach for cross-cutting concer
- [marcguilera/dependencies.dart](https://awesome-repositories.com/repository/marcguilera-dependencies-dart.md) (31 ⭐) — This is a simple and flexible dependency injection container for dart.
- [faif/python-patterns](https://awesome-repositories.com/repository/faif-python-patterns.md) (42,801 ⭐) — This project is a comprehensive collection of software design patterns implemented in Python. It serves as a reference for architectural, behavioral, creational, and structural patterns to guide the organization of Python applications.

The collection covers behavioral strategies for managing object communication and state, creational techniques for controlling object instantiation, and structural methods for composing classes and objects into flexible hierarchies. It also includes architectural references for system-wide structuring, such as multi-tier architectures and blackboard models.

Th
- [doctrine/doctrinemigrationsbundle](https://awesome-repositories.com/repository/doctrine-doctrinemigrationsbundle.md) (4,311 ⭐) — DoctrineMigrationsBundle is a database schema migration tool and a Symfony framework integration for managing and versioning database changes using the Doctrine Migrations library. It functions as a bridge connecting the Symfony service container to Doctrine database migration workflows.

The project provides a system for tracking and applying incremental changes to a database schema, ensuring consistent states across development, staging, and production environments. It automates schema updates to maintain data structures without manual SQL execution.

The tool integrates with the framework t
- [laravel/laravel](https://awesome-repositories.com/repository/laravel-laravel.md) (84,489 ⭐) — Laravel is a comprehensive full-stack web framework designed for building scalable server-side applications. It provides an integrated development environment that centers on an object-relational mapper for database abstraction, a robust routing system, and a sophisticated service container for dependency injection. The framework is built to handle complex application requirements through a modular architecture that emphasizes convention over configuration.

What distinguishes Laravel is its deep integration of background processing and event-driven communication. It features a task queue orch
- [dotnet/core](https://awesome-repositories.com/repository/dotnet-core.md) (21,897 ⭐) — This project is a cross-platform development framework and managed runtime environment designed for building high-performance applications. It provides a comprehensive toolkit for constructing web services, cloud-native microservices, and desktop applications, utilizing a unified runtime that handles memory management and execution across diverse operating systems.

The framework distinguishes itself through a native ahead-of-time compilation toolchain that transforms source code into optimized, self-contained machine code binaries. This capability enables fast startup times and reduced memory
- [codeception/codeception](https://awesome-repositories.com/repository/codeception-codeception.md) (4,855 ⭐) — Codeception is a full-stack testing framework for PHP applications that provides a unified interface for unit, functional, and acceptance testing. It serves as a tool for automating real desktop and mobile browsers via the WebDriver protocol and acts as a client for testing REST and SOAP APIs.

The framework is distinguished by its support for Behavior-Driven Development, allowing users to write human-readable test specifications in Gherkin language to align technical tests with business requirements. It implements actor-based action mapping to connect these natural language steps to executabl
- [dotnet/corefx](https://awesome-repositories.com/repository/dotnet-corefx.md) (17,491 ⭐) — This project is the .NET Base Class Library, providing the foundational types and APIs required for .NET applications. It serves as a cross-platform runtime library and a standardized managed API framework, acting as the primary set of namespaces for memory management, collections, and asynchronous programming.

The library enables the development of enterprise backend infrastructure and the execution of managed code consistently across different operating systems and hardware architectures. It includes capabilities for cross-platform application deployment using self-contained binaries, frame
- [multilang-depends/depends](https://awesome-repositories.com/repository/multilang-depends-depends.md) (253 ⭐) — Depends is a fast, comprehensive code dependency analysis tool
- [symfony/polyfill-php72](https://awesome-repositories.com/repository/symfony-polyfill-php72.md) (4,742 ⭐) — This project is a PHP compatibility polyfill designed to backport core functions and constants from PHP 7.2 to older versions of the language. It serves as a PHP standard library extension and version backport, providing a compatibility layer that fills gaps in the PHP core to ensure consistent behavior across different environments.

The library enables cross-version code portability by implementing missing standard library functions, allowing newer language features to run on legacy PHP environments. This ensures that applications can maintain a consistent interface and remain compatible wit
- [golobby/container](https://awesome-repositories.com/repository/golobby-container.md) (613 ⭐) — A lightweight yet powerful IoC dependency injection container for the Go programming language
- [gin-gonic/gin](https://awesome-repositories.com/repository/gin-gonic-gin.md) (88,694 ⭐) — Gin is a web framework designed for building high-performance web services and APIs. It functions as a middleware-oriented engine that processes incoming HTTP requests through a sequential chain of handlers, allowing for the modular management of cross-cutting concerns such as authentication and logging.

The framework utilizes a radix tree data structure to perform request routing, ensuring high-speed path matching with minimal memory overhead. It distinguishes itself by employing a zero-reflection dispatch mechanism that invokes handler functions through static type assertions, avoiding the
- [alecthomas/kong](https://awesome-repositories.com/repository/alecthomas-kong.md) (2,976 ⭐) — Kong is a declarative command line interface framework and parser for Go. It maps flags and positional arguments directly into typed Go structures using struct tags, allowing developers to define terminal interfaces through data models rather than manual parsing logic.

The project functions as a configuration mapper that populates Go structures from a combination of command-line arguments, environment variables, and JSON files. It distinguishes itself by providing a dependency injection container to pass external services into command handlers and a plugin architecture for dynamic command reg
- [google/inject.dart](https://awesome-repositories.com/repository/google-inject-dart.md) (861 ⭐) — Compile-time dependency injection for Dart and Flutter
- [rwf2/rocket](https://awesome-repositories.com/repository/rwf2-rocket.md) (25,747 ⭐) — Rocket is a type-safe web framework designed for building server-side applications. It provides a high-performance asynchronous routing engine that maps incoming network traffic to concurrent handler functions, while managing the full lifecycle of web requests. The framework emphasizes compile-time verification, ensuring that request parameters, response types, and routing logic remain consistent throughout the development process.

The framework distinguishes itself through its use of request guards, which act as a validation layer to intercept and transform incoming data into structured type
- [johnsundell/swifttips](https://awesome-repositories.com/repository/johnsundell-swifttips.md) (4,014 ⭐) — SwiftTips is a curated collection of coding techniques, design patterns, and best practices for the Swift programming language. It serves as a comprehensive guide for improving development efficiency through advanced language mastery and structured implementation strategies.

The project focuses on creating clear and conversational API designs using protocol composition, generics, and constrained types. It provides detailed patterns for application architecture, including dependency decoupling, state management, and modular view controller organization.

The repository covers a broad capabilit
- [espocrm/espocrm](https://awesome-repositories.com/repository/espocrm-espocrm.md) (2,799 ⭐) — EspoCRM is an open-source customer relationship management platform and SQL-based business application. It serves as a centralized web interface for tracking leads, opportunities, and contacts, providing a sales pipeline manager and a customizable business logic engine.

The platform is distinguished by its ability to function as a custom business application builder, allowing for the creation of tailored entities and automated workflows. It integrates marketing automation tools for campaign coordination and a structured customer support ticketing system for case management.

The system covers
- [mgechev/injection-js](https://awesome-repositories.com/repository/mgechev-injection-js.md) (1,377 ⭐) — Dependency injection library for JavaScript and TypeScript in 5.1K. It is an extraction of the Angular's dependency injection which means that it's feature complete, fast, reliable and well tested.
- [spectreconsole/spectre.console](https://awesome-repositories.com/repository/spectreconsole-spectre-console.md) (11,210 ⭐) — Spectre.Console is a .NET framework designed for building structured, feature-rich command-line applications. It provides a comprehensive toolkit for managing complex command hierarchies, type-safe argument parsing, and dependency injection, allowing developers to decouple business logic from input processing while maintaining modular application designs.

The framework distinguishes itself through a sophisticated terminal user interface toolkit that enables the creation of dynamic, interactive console experiences. It utilizes a markup-based rendering system to display styled text, tables, cha
- [fastapi/fastapi](https://awesome-repositories.com/repository/fastapi-fastapi.md) (99,260 ⭐) — FastAPI is a web framework for building APIs with Python. It leverages standard language type hints to provide automatic data validation, request parsing, and interactive API documentation generation. The framework supports asynchronous request handling and manages execution contexts to prevent blocking the main event loop.

The project includes a dependency injection system that allows for the resolution and injection of reusable components into request handlers. This system supports request-scoped caching, lifecycle management, and integration with security mechanisms like OAuth2 and JSON We
- [prismlibrary/prism](https://awesome-repositories.com/repository/prismlibrary-prism.md) (6,794 ⭐) — Prism is a XAML application framework and MVVM architectural framework designed to build loosely coupled and testable applications across WPF, Xamarin Forms, and WinUI. It serves as a structural pattern implementation that separates business logic from the user interface to improve maintainability and testing.

The framework provides a XAML event bus for exchanging data and triggering actions between independent components without direct coupling. It also functions as a dependency injection integrator, bridging external inversion-of-control containers to manage service delivery across multiple
- [agno-agi/agno](https://awesome-repositories.com/repository/agno-agi-agno.md) (40,717 ⭐) — Agno is an agent operating system designed to manage the lifecycle, tool execution, and persistent state of autonomous agents across distributed infrastructure. It provides a unified runtime environment that wraps diverse agent frameworks into a consistent, interoperable protocol, allowing developers to build and deploy complex multi-agent systems that coordinate tasks and delegate sub-processes.

The platform distinguishes itself through a robust governance and orchestration layer that includes human-in-the-loop approval gates, role-based access control, and a centralized API gateway. It feat
- [barryvdh/laravel-ide-helper](https://awesome-repositories.com/repository/barryvdh-laravel-ide-helper.md) (14,847 ⭐) — This tool functions as a generator that maps dynamic framework methods and database model properties to static files, ensuring integrated development environments recognize runtime features. It acts as a static analysis helper by inspecting framework structures to provide accurate type hinting and autocompletion for core classes and container-bound objects.

The project distinguishes itself by its ability to interrogate the dependency injection registry and scan runtime method registrations to document dynamically added functionality. It further differentiates by performing reflection-based in
- [jaspersui/fastapi-injectable](https://awesome-repositories.com/repository/jaspersui-fastapi-injectable.md) (293 ⭐) — A seamless solution for using FastAPI's dependency injection system outside of route handlers, enabling painless reuse of dependencies in CLI tools, background tasks, and other non-HTTP contexts.
- [tomnicholas/python-for-scientists](https://awesome-repositories.com/repository/tomnicholas-python-for-scientists.md) (359 ⭐) — A list of recommended Python libraries, and resources, intended for scientific Python users.
- [alibaba/beehive](https://awesome-repositories.com/repository/alibaba-beehive.md) (4,339 ⭐) — BeeHive is a modular architecture framework for iOS applications. It provides a dependency injection container, an event bus middleware, a module lifecycle manager, and a service locator to organize an application into independent functional modules.

The framework distinguishes itself by utilizing asynchronous module loading to reduce application startup time and prevent main thread blocking. It employs macro-driven automatic module registration to decouple instantiation from application logic and uses protocol-based service mapping to resolve dependencies without requiring direct imports.

T
- [helix-editor/helix](https://awesome-repositories.com/repository/helix-editor-helix.md) (44,911 ⭐) — Helix is a terminal-based modal text editor designed for efficient code manipulation and navigation. It centers on a selection-first editing model, where operations are performed on active ranges rather than individual cursor positions, allowing for precise control over text and code structures.

The editor distinguishes itself through deep integration with structural parsing and language intelligence. By utilizing an incremental parsing library, it builds concrete syntax trees that enable advanced features like structural code navigation, intelligent indentation, and syntax-aware text object
- [apify/crawlee](https://awesome-repositories.com/repository/apify-crawlee.md) (24,002 ⭐) — Crawlee is a web scraping framework designed for building scalable, reliable, and distributed data extraction pipelines. It provides a unified interface for managing headless browser automation and lightweight HTTP requests, allowing developers to handle complex web navigation, dynamic content rendering, and large-scale data collection within a single, modular architecture.

The project distinguishes itself through its resource-aware concurrency controller, which dynamically scales task execution based on real-time CPU and memory usage to prevent host machine exhaustion. It also features a rob
- [lucasg/dependencies](https://awesome-repositories.com/repository/lucasg-dependencies.md) (11,607 ⭐) — Dependencies is a static analysis utility designed to inspect Windows portable executable files and map their library dependency hierarchies. It functions as a diagnostic interface for validating library imports and identifying the specific modules required for an application to execute on a Windows system.

The tool distinguishes itself by performing deep binary analysis, including the resolution of complex Windows API set schemas and forwarded export redirections. It identifies libraries loaded on demand through delay-load module analysis and performs recursive traversal to map the full tree
- [ahmedeltaher/android-mvvm-architecture-android-voice-ai-sdk](https://awesome-repositories.com/repository/ahmedeltaher-android-mvvm-architecture-android-voice-ai-sdk.md) (2,561 ⭐) — This project is an Android SDK designed to integrate conversational voice interfaces into mobile applications. It utilizes a Model-View-ViewModel architecture to separate business logic from user interface components, providing a structured framework for managing complex voice interactions.

The library features a modular pipeline that handles the entire flow of a conversation, including microphone input capture, speech transcription, intelligent response generation, and audio synthesis. A key differentiator is its ability to analyze acoustic features from audio input to detect user emotional
- [hanami/hanami](https://awesome-repositories.com/repository/hanami-hanami.md) (6,374 ⭐) — Hanami is a full-stack Ruby web framework and API platform designed for building maintainable applications. It centers on a modular web architecture that organizes software into independent slices to prevent monolithic growth and isolate functional units.

The framework implements a clean architecture by decoupling business logic from persistence and request handling. This is achieved through a central dependency injection container for managing object lifetimes and a repository pattern mapper that separates domain entities from the persistence layer.

The project further provides a Rack-compa
- [google/j2objc](https://awesome-repositories.com/repository/google-j2objc.md) (6,041 ⭐) — j2objc is a source-to-source compiler and transpiler that converts Java source code into Objective-C. It functions as a cross-platform logic porter, allowing application logic and data models written in Java to be shared and executed on iOS. To support this translation, the project provides an Objective-C implementation of core Java classes and APIs to emulate the Java runtime environment.

The system includes specialized translation for Java libraries and provides mapping for dependency injection and static analysis annotations to preserve metadata. It also enables the conversion of JUnit tes
- [zhyfeng/dependency](https://awesome-repositories.com/repository/zhyfeng-dependency.md) (25 ⭐) — This artifact is for paper "Demystifying the Dependency Challenge in Kernel Fuzzing". Fuzz testing operating system kernels remains a daunting task to date. One known challenge is that much of the kernel code is locked under specific kernel states and current kernel fuzzers are not effective in…
- [airweave-ai/airweave](https://awesome-repositories.com/repository/airweave-ai-airweave.md) (6,453 ⭐) — Airweave is a unified AI knowledge base platform that syncs data from external APIs into a searchable layer for retrieval-augmented generation. It provides a pre-built data connector library and a framework for building custom connectors, enabling the extraction, transformation, and synchronization of structured and unstructured data from SaaS applications. The platform includes a hybrid vector retrieval system that combines semantic, neural, and keyword search strategies to deliver grounded context for AI agents.

The platform distinguishes itself through an agentic search engine that iterati
- [php-fig/container](https://awesome-repositories.com/repository/php-fig-container.md) (10,012 ⭐) — This project is a shared technical specification and standard interface for dependency injection containers in PHP. It defines a common set of interfaces for retrieving services and dependencies, ensuring that different container implementations remain interoperable across the PHP ecosystem.

By establishing a standardized API for dependency retrieval, the project allows developers to create libraries that function with any compliant container. This prevents vendor lock-in and enables different container implementations to be swapped without requiring changes to the application code.

The spec
