ARCHOS 525 BLUEPRINT · /d/dgm_py-packaging-typing-and-project-structure
Python packaging, typing and project structure
7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_py-packaging-typing-and-project-structure) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_py-packaging-typing-and-project-structure)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_py-packaging-typing-and-project-structure" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Python packaging, typing and project structure — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
dev_0[("Client application")]
api_1["API gateway"]
domain_2["Container runtime"]
repo_3["Connection pooler"]
ci_4["CI runner"]
reg_5[("Artifact registry")]
sink_6[("Client application")]
dev_0 -->|"1. DTO schema · HTTPS"| api_1
api_1 -->|"2. Service · TCP"| domain_2
domain_2 -->|"3. 6-gate CI · HTTPS"| ci_4
ci_4 -->|"4. Signs img · HTTPS"| reg_5
reg_5 -->|"5. Ships · HTTPS"| sink_6
domain_2 -->|"Protocol DI · TCP"| repo_3COMPONENT STACK (7)
- Client applicationSTATEFULPR + uv.lock commit
- API gatewaySTATELESSPydantic v2 boundary
- Container runtimeSTATELESSPure Domain + Service
- Connection poolerSTATELESSRepository Protocol DI
- CI runnerSTATELESSruff/mypy/pytest/trivy
- Artifact registrySTATEFULPinned reproducible img
- Client applicationSTATEFULGreen 6-gate release
REQUEST & DATA FLOW (6)
- Client application → API gateway (DTO schema)[HTTPS]
- API gateway → Container runtime (Service)[TCP]
- Container runtime → CI runner (6-gate CI)[HTTPS]
- CI runner → Artifact registry (Signs img)[HTTPS]
- Artifact registry → Client application (Ships)[HTTPS]
- Container runtime → Connection pooler (Protocol DI)[TCP]