Search across all documentation pages
12 pages in this section.
What "architecture" means for a Python service once you strip away framework and folder-naming debates - how the import graph is the literal shape of your boundaries, and how src layout, hexagonal architecture, DI, and domain modeling all follow from that one idea.
Use this checklist to deliberately structure a Python service, making informed decisions on runtime, package manager, layout, and distribution model.
Learn how the src layout and package structure improve import hygiene and testability for Python projects. Prevent CI import errors and organize monorepos.
Configure applications using Pydantic v2, load settings from the environment, and manage secrets to deploy consistent artifacts across environments.
Learn Python architecture best practices for testable, deployable, and understandable services. Cover boundaries, packaging, and configuration.