# ashpibit02/python-tech-deck architecture

> Architecture diagram of the GitHub repository ashpibit02/python-tech-deck, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashpibit02/python-tech-deck
- Repository: https://github.com/ashpibit02/python-tech-deck

## Overview

This repository is a collection of independent FastAPI learning examples, not one integrated application. Its substantial product-like examples cover employee/department CRUD, mobile banking, and database-backed authentication; the tree also shows dependency-injection demonstrations. The graph emphasizes those workflows and their evidenced calls. Many banking router/service details and other examples were not sampled, so their internal relationships are omitted rather than inferred.

Main entry points: [`FastAPI/DataBase Integration/Enterprise/main.py`](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/main.py) (CRUD API), [`FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/routers/auth.py) (Auth Endpoints), [`FastAPI/DataBase Integration/Mobile Banking API/main.py`](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/main.py) (Banking API), [`FastAPI/DataBase Integration/Mobile Banking API/routers/account_router.py`](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/routers/account_router.py) (Account Routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_enterprise["Enterprise CRUD"]
  node_enterprise_api["CRUD API<br/>[main.py]"]
  node_enterprise_crud["Employee CRUD<br/>[empCrud.py]"]
  node_department_crud["Department CRUD<br/>[deptCrud.py]"]
  node_combined_crud["Combined Queries<br/>[combinedCrud.py]"]
  node_enterprise_models["Domain Models"]
  node_enterprise_db[("Database Session<br/>[database.py]")]
  node_enterprise_config["DB Configuration<br/>[config.py]"]
end

subgraph group_banking["Mobile Banking"]
  node_bank_api["Banking API<br/>[main.py]"]
  node_account_routes["Account Routes<br/>[account_router.py]"]
  node_bank_routes["Other Routes"]
  node_account_service["Account Operations<br/>[account_service.py]"]
  node_transaction_service["Transactions"]
  node_audit_service["Audit Logging<br/>[audit_service.py]"]
  node_bank_models["Banking Models<br/>[banking_models.py]"]
  node_bank_schemas["API Schemas"]
end

subgraph group_auth["User Authentication"]
  node_auth_routes["Auth Endpoints<br/>[auth.py]"]
  node_auth_users["User Service<br/>[user.py]"]
  node_refresh_service["Refresh Tokens<br/>[refresh_token.py]"]
  node_auth_security["Token Security<br/>[security.py]"]
  node_auth_db_dep["DB Dependency<br/>[db_dependency.py]"]
  node_auth_schemas["Auth Schemas<br/>[user.py]"]
end

subgraph group_di["Dependency Examples"]
  node_di_examples["Global Dependencies<br/>[dummydata.py]"]
end

node_caller(("API client"))

node_caller -->|"sends requests"| node_enterprise_api
node_enterprise_api -->|"calls employee CRUD"| node_enterprise_crud
node_enterprise_api -->|"calls department CRUD"| node_department_crud
node_enterprise_api -->|"calls combined queries"| node_combined_crud
node_enterprise_api -->|"imports session provider"| node_enterprise_db
node_enterprise_api -->|"uses request models"| node_enterprise_models
node_enterprise_crud -->|"imports models"| node_enterprise_models
node_department_crud -->|"imports models"| node_enterprise_models
node_combined_crud -->|"imports employee CRUD"| node_enterprise_crud
node_enterprise_db -->|"loads settings"| node_enterprise_config
node_caller -->|"sends requests"| node_bank_api
node_bank_api -->|"registers router"| node_account_routes
node_bank_api -->|"registers routers"| node_bank_routes
node_account_routes -->|"dispatches operations"| node_account_service
node_account_routes -->|"uses schemas"| node_bank_schemas
node_transaction_service -->|"checks frozen accounts"| node_account_service
node_transaction_service -->|"records actions"| node_audit_service
node_caller -->|"sends credentials"| node_auth_routes
node_auth_routes -->|"looks up and creates users"| node_auth_users
node_auth_routes -->|"manages refresh tokens"| node_refresh_service
node_auth_routes -->|"verifies and issues tokens"| node_auth_security
node_auth_routes -->|"injects database"| node_auth_db_dep
node_auth_routes -->|"uses schemas"| node_auth_schemas

click node_enterprise_api "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/main.py"
click node_enterprise_crud "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/crud/empCrud.py"
click node_department_crud "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/crud/deptCrud.py"
click node_combined_crud "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/crud/combinedCrud.py"
click node_enterprise_models "https://github.com/ashpibit02/python-tech-deck/tree/main/FastAPI/DataBase%20Integration/Enterprise/models"
click node_enterprise_db "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/db/database.py"
click node_enterprise_config "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/core/config.py"
click node_bank_api "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/main.py"
click node_account_routes "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/routers/account_router.py"
click node_bank_routes "https://github.com/ashpibit02/python-tech-deck/tree/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/routers"
click node_account_service "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/services/account_service.py"
click node_transaction_service "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/services/transaction_service.py"
click node_audit_service "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/services/audit_service.py"
click node_bank_models "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/models/banking_models.py"
click node_bank_schemas "https://github.com/ashpibit02/python-tech-deck/tree/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/schemas"
click node_auth_routes "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/routers/auth.py"
click node_auth_users "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/services/user.py"
click node_refresh_service "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/services/refresh_token.py"
click node_auth_security "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/core/security.py"
click node_auth_db_dep "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/dependencies/db_dependency.py"
click node_auth_schemas "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/schemas/user.py"
click node_di_examples "https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Dependency%20Injection/Global%20Dependencies/dummydata.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_enterprise_api,node_enterprise_crud,node_department_crud,node_combined_crud,node_enterprise_models,node_enterprise_db,node_enterprise_config,node_caller toneBlue
class node_bank_api,node_account_routes,node_bank_routes,node_account_service,node_transaction_service,node_audit_service,node_bank_models,node_bank_schemas toneAmber
class node_auth_routes,node_auth_users,node_refresh_service,node_auth_security,node_auth_db_dep,node_auth_schemas toneMint
class node_di_examples toneRose
```

## Components

### Enterprise CRUD

- [CRUD API](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/main.py): `FastAPI/DataBase Integration/Enterprise/main.py`
- [Employee CRUD](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/crud/empCrud.py): `FastAPI/DataBase Integration/Enterprise/crud/empCrud.py`
- [Department CRUD](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/crud/deptCrud.py): `FastAPI/DataBase Integration/Enterprise/crud/deptCrud.py`
- [Combined Queries](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/crud/combinedCrud.py): `FastAPI/DataBase Integration/Enterprise/crud/combinedCrud.py`
- [Domain Models](https://github.com/ashpibit02/python-tech-deck/tree/main/FastAPI/DataBase%20Integration/Enterprise/models): `FastAPI/DataBase Integration/Enterprise/models`
- [Database Session](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/db/database.py): `FastAPI/DataBase Integration/Enterprise/db/database.py`
- [DB Configuration](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Enterprise/core/config.py): `FastAPI/DataBase Integration/Enterprise/core/config.py`

### Mobile Banking

- [Banking API](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/main.py): `FastAPI/DataBase Integration/Mobile Banking API/main.py`
- [Account Routes](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/routers/account_router.py): `FastAPI/DataBase Integration/Mobile Banking API/routers/account_router.py`
- [Other Routes](https://github.com/ashpibit02/python-tech-deck/tree/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/routers): `FastAPI/DataBase Integration/Mobile Banking API/routers`
- [Account Operations](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/services/account_service.py): `FastAPI/DataBase Integration/Mobile Banking API/services/account_service.py`
- [Transactions](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/services/transaction_service.py): `FastAPI/DataBase Integration/Mobile Banking API/services/transaction_service.py`
- [Audit Logging](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/services/audit_service.py): `FastAPI/DataBase Integration/Mobile Banking API/services/audit_service.py`
- [Banking Models](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/models/banking_models.py): `FastAPI/DataBase Integration/Mobile Banking API/models/banking_models.py`
- [API Schemas](https://github.com/ashpibit02/python-tech-deck/tree/main/FastAPI/DataBase%20Integration/Mobile%20Banking%20API/schemas): `FastAPI/DataBase Integration/Mobile Banking API/schemas`

### User Authentication

- [Auth Endpoints](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/routers/auth.py): `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`
- [User Service](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/services/user.py): `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/services/user.py`
- [Refresh Tokens](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/services/refresh_token.py): `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/services/refresh_token.py`
- [Token Security](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/core/security.py): `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/core/security.py`
- [DB Dependency](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/dependencies/db_dependency.py): `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/dependencies/db_dependency.py`
- [Auth Schemas](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Authentication%20%26%20Security/Dummy%20Mini%20Projects/user_auth_system/schemas/user.py): `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/schemas/user.py`

### Dependency Examples

- [Global Dependencies](https://github.com/ashpibit02/python-tech-deck/blob/main/FastAPI/Dependency%20Injection/Global%20Dependencies/dummydata.py): `FastAPI/Dependency Injection/Global Dependencies/dummydata.py`

### Other components

- **API client**

## Connections

- API client → CRUD API: sends requests
- CRUD API → Employee CRUD: calls employee CRUD (evidence: `FastAPI/DataBase Integration/Enterprise/main.py`)
- CRUD API → Department CRUD: calls department CRUD (evidence: `FastAPI/DataBase Integration/Enterprise/main.py`)
- CRUD API → Combined Queries: calls combined queries (evidence: `FastAPI/DataBase Integration/Enterprise/main.py`)
- CRUD API → Database Session: imports session provider (evidence: `FastAPI/DataBase Integration/Enterprise/main.py`)
- CRUD API → Domain Models: uses request models (evidence: `FastAPI/DataBase Integration/Enterprise/main.py`)
- Employee CRUD → Domain Models: imports models (evidence: `FastAPI/DataBase Integration/Enterprise/crud/combinedCrud.py`)
- Department CRUD → Domain Models: imports models (evidence: `FastAPI/DataBase Integration/Enterprise/crud/deptCrud.py`)
- Combined Queries → Employee CRUD: imports employee CRUD (evidence: `FastAPI/DataBase Integration/Enterprise/crud/combinedCrud.py`)
- Database Session → DB Configuration: loads settings (evidence: `FastAPI/DataBase Integration/Enterprise/db/database.py`)
- API client → Banking API: sends requests
- Banking API → Account Routes: registers router (evidence: `FastAPI/DataBase Integration/Mobile Banking API/main.py`)
- Banking API → Other Routes: registers routers (evidence: `FastAPI/DataBase Integration/Mobile Banking API/main.py`)
- Account Routes → Account Operations: dispatches operations (evidence: `FastAPI/DataBase Integration/Mobile Banking API/routers/account_router.py`)
- Account Routes → API Schemas: uses schemas (evidence: `FastAPI/DataBase Integration/Mobile Banking API/routers/account_router.py`)
- Transactions → Account Operations: checks frozen accounts (evidence: `FastAPI/DataBase Integration/Mobile Banking API/services/transaction_service.py`)
- Transactions → Audit Logging: records actions (evidence: `FastAPI/DataBase Integration/Mobile Banking API/services/transaction_service.py`)
- API client → Auth Endpoints: sends credentials
- Auth Endpoints → User Service: looks up and creates users (evidence: `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`)
- Auth Endpoints → Refresh Tokens: manages refresh tokens (evidence: `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`)
- Auth Endpoints → Token Security: verifies and issues tokens (evidence: `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`)
- Auth Endpoints → DB Dependency: injects database (evidence: `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`)
- Auth Endpoints → Auth Schemas: uses schemas (evidence: `FastAPI/Authentication & Security/Dummy Mini Projects/user_auth_system/routers/auth.py`)
