---
title: "Discussion on \"Where should dependency wiring live in a Python app?\" | Hashnode"
description: "Discussion on \"Where should dependency wiring live in a Python app?\". A practical boundary for FastAPI, Typer, workers, tests, and small typed dependency injection with Injex."
url: "https://hashnode.com/posts/where-should-dependency-wiring-live-in-a-python-app/6a27cc50eec699a6e00f4ee6"
---

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

Discussion

# [Where should dependency wiring live in a Python app?](https://vshulcz.hashnode.dev/where-should-dependency-wiring-live-in-a-python-app?utm_source=hashnode&utm_medium=feed)

A practical boundary for FastAPI, Typer, workers, tests, and small typed dependency injection with Injex.

Jun 9 · 5 min read · vshulcz.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#architecture](https://hashnode.com/tag/architecture)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)

## Written by

[Vlad Shulcz](https://hashnode.com/@vshulcz)

@vshulcz · Amsterdam, Netherlands

  
[View profile](https://hashnode.com/@vshulcz)

Python developer writing about backend architecture, testing, and small open-source tools.

## Responses 1

Markdown supported · ⌘↵ to post

[Vlad Shulcz](https://hashnode.com/@vshulcz)

[Jun 9](https://hashnode.com/posts/where-should-dependency-wiring-live-in-a-python-app/6a27cc50eec699a6e00f4ee6/comment/6a27cc9122a2421fbff27b17)

I’m interested in how other Python teams draw this boundary.

Do you keep service wiring as plain factories, use framework dependencies, or prefer an external container once the graph grows?
