Skip to main content
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
[![Python packaging, typing and project structure — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_py-packaging-typing-and-project-structure/opengraph-image)](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_3

COMPONENT STACK (7)

  • Client applicationSTATEFUL
    PR + uv.lock commit
  • API gatewaySTATELESS
    Pydantic v2 boundary
  • Container runtimeSTATELESS
    Pure Domain + Service
  • Connection poolerSTATELESS
    Repository Protocol DI
  • CI runnerSTATELESS
    ruff/mypy/pytest/trivy
  • Artifact registrySTATEFUL
    Pinned reproducible img
  • Client applicationSTATEFUL
    Green 6-gate release

REQUEST & DATA FLOW (6)

  1. Client application → API gateway (DTO schema)[HTTPS]
  2. API gateway → Container runtime (Service)[TCP]
  3. Container runtime → CI runner (6-gate CI)[HTTPS]
  4. CI runner → Artifact registry (Signs img)[HTTPS]
  5. Artifact registry → Client application (Ships)[HTTPS]
  6. Container runtime → Connection pooler (Protocol DI)[TCP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →