# tomitokko/20-python-projects architecture

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

- Interactive diagram: https://gitdiagram.com/tomitokko/20-python-projects
- Repository: https://github.com/tomitokko/20-python-projects

## Overview

##### Project type and purpose
- This repository is a collection of 20 standalone Python utility scripts (an educational “toolbox” of small programs).
- There is no single monolithic application; instead each file (.py) is an independent module that a user can invoke.

##### File structure
- Top level contains only individual .py scripts and a README.md.
- No subdirectories, no shared libraries or services—each script implements one utility (e.g., “basic calculator.py,” “qr code generator.py,” “site connectivity checker.py,” etc.).
- There are no build scripts, configuration files, or external dependencies specified.

##### README for additional insights
- The README simply titles the repo “20-python-projects.”
- There are no details on architecture, dependencies, or execution flow.

##### Elements
- Clear labels
- “User” above or at the left
- From User → each script (showing invocation)
- From a script → “SMTP Server” if it sends email, or → “Internet” if it checks connectivity

##### Detailed capture of essential elements
- Even though scripts are independent, capture any shared external resource usage

## Diagram (Mermaid)

```mermaid
flowchart TD
    User["User"]:::user

    subgraph "Math Utilities"
        BC["Basic Calculator"]:::script
        BS["Binary Search Algorithm"]:::script
        CC["Currency Converter"]:::script
        DR["Dice Rolling Simulator"]:::script
        IP["Interest Payment Calculator"]:::script
        LY["Leap Year Checker"]:::script
    end

    subgraph "File & Data Utilities"
        WD["Word Dictionary"]:::script
        WR["Word Replacement"]:::script
        GP["Graph Plotter"]:::script
        IR["Image Resizer"]:::script
    end

    subgraph "Networking Utilities"
        ES["Email Sender"]:::script
        ESli["Email Slicer"]:::script
        AM["Automate Morning Text"]:::script
        SC["Site Connectivity Checker"]:::script
    end

    subgraph "Security & Crypto"
        RP["Random Password Generator"]:::script
    end

    subgraph "Games & Fun"
        QZ["Quiz Program"]:::script
        RPS["Rock Paper Scissors"]:::script
    end

    subgraph "Specialized Tools"
        QR["QR Code Generator"]:::script
        PFD["Python Face Detection"]:::script
    end

    SMTP["SMTP Server"]:::external
    Internet["Internet"]:::external
    OpenCV["OpenCV Library"]:::external
    QRLib["qrcode Library"]:::external

    User --> BC
    User --> BS
    User --> CC
    User --> DR
    User --> IP
    User --> LY

    User --> WD
    User --> WR
    User --> GP
    User --> IR

    User --> ES
    User --> ESli
    User --> AM
    User --> SC

    User --> RP

    User --> QZ
    User --> RPS

    User --> QR
    User --> PFD

    ES -->|"sends email via"| SMTP
    AM -->|"sends text via SMTP"| SMTP
    SC -->|"connects to"| Internet
    PFD -->|"uses"| OpenCV
    QR -->|"uses"| QRLib

    click BC "https://github.com/tomitokko/20-python-projects/blob/main/basic calculator.py"
    click BS "https://github.com/tomitokko/20-python-projects/blob/main/binary search algorithm.py"
    click CC "https://github.com/tomitokko/20-python-projects/blob/main/currency converter.py"
    click DR "https://github.com/tomitokko/20-python-projects/blob/main/dice rolling simulator.py"
    click IP "https://github.com/tomitokko/20-python-projects/blob/main/interest payment calculator.py"
    click LY "https://github.com/tomitokko/20-python-projects/blob/main/leap year checker.py"
    click WD "https://github.com/tomitokko/20-python-projects/blob/main/word dictionary.py"
    click WR "https://github.com/tomitokko/20-python-projects/blob/main/word replacement.py"
    click GP "https://github.com/tomitokko/20-python-projects/blob/main/graph plotter.py"
    click IR "https://github.com/tomitokko/20-python-projects/blob/main/image resizer.py"
    click ES "https://github.com/tomitokko/20-python-projects/blob/main/email sender.py"
    click ESli "https://github.com/tomitokko/20-python-projects/blob/main/email slicer.py"
    click AM "https://github.com/tomitokko/20-python-projects/blob/main/automate morning text.py"
    click SC "https://github.com/tomitokko/20-python-projects/blob/main/site connectivity checker.py"
    click RP "https://github.com/tomitokko/20-python-projects/blob/main/random password generator.py"
    click QZ "https://github.com/tomitokko/20-python-projects/blob/main/quiz program.py"
    click RPS "https://github.com/tomitokko/20-python-projects/blob/main/rock paper scissors.py"
    click QR "https://github.com/tomitokko/20-python-projects/blob/main/qr code generator.py"
    click PFD "https://github.com/tomitokko/20-python-projects/blob/main/python face detection.py"
    click README "https://github.com/tomitokko/20-python-projects/blob/main/README.md"

    classDef user fill:#f9f,stroke:#333,stroke-width:2px
    classDef script fill:#bbf,stroke:#333,stroke-width:1px
    classDef external fill:#f96,stroke:#333,stroke-width:1px
```
