---
title: "Discussion on \"Dependency Injection in Python with Protocol and dependency-injector\" | Hashnode"
description: "Discussion on \"Dependency Injection in Python with Protocol and dependency-injector\". Use Python Protocol and dependency-injector to connect a service and repository, then test the service with mocks and a handwritten fixture."
url: "https://hashnode.com/posts/dependency-injection-in-python-with-protocol-and-dependency-injector/6ad07dcade7292ff558d3834"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dependency Injection in Python with Protocol and dependency-injector](https://ara-ta3.hashnode.dev/dependency-injection-in-python-with-protocol-and-dependency-injector?utm_source=hashnode&utm_medium=feed)

Use Python Protocol and dependency-injector to connect a service and repository, then test the service with mocks and a handwritten fixture.

Oct 15 · 6 min read · ara-ta3.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#testing](https://hashnode.com/tag/testing)
-   [#typing](https://hashnode.com/tag/typing)

## Written by

[ara-ta3](https://hashnode.com/@ara-ta3)

@ara-ta3 · Japan

  
[View profile](https://hashnode.com/@ara-ta3)

Backend-focused Web Engineer | Scala × TypeScript | Designing robust, data-driven systems

I’m a backend-focused web engineer with a strong interest in system design, domain modeling, and data-driven architecture. I primarily work with Scala (ZIO, functional patterns) and TypeScript, and I enjoy building reliable APIs, CQRS-based systems, and well-structured monorepos. Beyond coding, I’m interested in finance, optimization, and using technology (including AI) to improve decision-making and productivity. I write about software architecture, engineering workflows, and practical problem-solving.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
