# deepika5555/selfielessactsapplication architecture

> Architecture diagram of the GitHub repository deepika5555/selfielessactsapplication, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deepika5555/selfielessactsapplication
- Repository: https://github.com/deepika5555/selfielessactsapplication

## Overview

##### File structure
- Top-level files:
- cont1.py – script #1, contains business logic for “scenario 1”
- cont1_data.db – SQLite DB backing cont1.py
- cont2.py – script #2, separate flow for “scenario 2”
- cont2_data.db – SQLite DB backing cont2.py
- generic.py – shared library of common functions
- No frontend or network layers, no external services, no build scripts. This is purely a two‐module Python app with per‐module databases.

##### README for additional insights
- The README only gives the project name. You must rely on the file layout to infer that cont1.py and cont2.py are standalone processes, both reusing common code in generic.py and persisting data locally.

##### Diagramming recommendations
– Use rectangles for code components (label: “cont1.py”, “cont2.py”, “generic.py”)
- From cont1.py → generic.py (import/shared code)
- From cont2.py → generic.py
- From cont1.py → cont1_data.db (read/write)
- From cont2.py → cont2_data.db
- Shared library (generic.py) in another (e.g., green)
- Data stores (DB files) in a third (e.g., orange)

##### Detail
– Capture the SQLite connection as part of contX.py’s responsibilities

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Processes"
        cont1["cont1.py"]:::process
        cont2["cont2.py"]:::process
    end

    generic["generic.py"]:::shared

    subgraph "Data Persistence"
        cont1db[(cont1_data.db)]:::db
        cont2db[(cont2_data.db)]:::db
    end

    cont1 -->|"imports"| generic
    cont2 -->|"imports"| generic
    cont1 -->|"reads/writes"| cont1db
    cont2 -->|"reads/writes"| cont2db

    click cont1 "https://github.com/deepika5555/selfielessactsapplication/blob/master/cont1.py"
    click cont2 "https://github.com/deepika5555/selfielessactsapplication/blob/master/cont2.py"
    click generic "https://github.com/deepika5555/selfielessactsapplication/blob/master/generic.py"
    click cont1db "https://github.com/deepika5555/selfielessactsapplication/blob/master/cont1_data.db"
    click cont2db "https://github.com/deepika5555/selfielessactsapplication/blob/master/cont2_data.db"

    classDef process fill:#D0E6FF,stroke:#0288D1,color:#000
    classDef shared fill:#DFFFD6,stroke:#339933,color:#000
    classDef db fill:#FFE4B5,stroke:#FF8C00,color:#000
```
