# adaamn/12tool architecture

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

- Interactive diagram: https://gitdiagram.com/adaamn/12tool
- Repository: https://github.com/adaamn/12tool

## Overview

This is a small interactive command-line utility offering password generation, cryptocurrency prices, local-network scanning, and public-IP information. The principal workflow is user selection in the menu, dispatch to a feature, then display or save its result. Feature modules perform their own work, including external lookups and scan-report writing. The package initializer imports capitalized module names that do not match the lowercase filenames in the tree, which may prevent startup on case-sensitive systems; the graph shows the menu’s intended dispatch, not a verified successful run.

Main entry points: [`main.py`](https://github.com/adaamn/12tool/blob/main/main.py) (Menu and dispatch), [`func/netScan.py`](https://github.com/adaamn/12tool/blob/main/func/netScan.py) (Local IP scan), [`func/Crypto.py`](https://github.com/adaamn/12tool/blob/main/func/Crypto.py) (Crypto prices), [`func/publicInfo.py`](https://github.com/adaamn/12tool/blob/main/func/publicInfo.py) (Public IP info)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI"]
  node_menu["Menu and dispatch<br/>[main.py]"]
end

subgraph group_features["Features"]
  node_password["Password generator<br/>[passGen.py]"]
  node_crypto["Crypto prices<br/>[Crypto.py]"]
end

subgraph group_network["Network"]
  node_local_scan["Local IP scan<br/>[netScan.py]"]
  node_public_info["Public IP info<br/>[publicInfo.py]"]
  node_scan_report["Scan report file<br/>[netScan.py]"]
end

node_user(("User"))
node_price_api{{"CoinGecko API"}}
node_geo_api{{"ipwho.is API"}}
node_scan_targets{{"Local network hosts"}}

node_user -->|"selects feature"| node_menu
node_menu -->|"generates password"| node_password
node_menu -->|"requests price"| node_crypto
node_menu -->|"starts scan"| node_local_scan
node_menu -->|"requests info"| node_public_info
node_crypto -->|"requests prices"| node_price_api
node_public_info -->|"requests IP data"| node_geo_api
node_local_scan -->|"pings hosts"| node_scan_targets
node_local_scan -->|"writes report"| node_scan_report

click node_menu "https://github.com/adaamn/12tool/blob/main/main.py"
click node_password "https://github.com/adaamn/12tool/blob/main/func/passGen.py"
click node_crypto "https://github.com/adaamn/12tool/blob/main/func/Crypto.py"
click node_local_scan "https://github.com/adaamn/12tool/blob/main/func/netScan.py"
click node_public_info "https://github.com/adaamn/12tool/blob/main/func/publicInfo.py"
click node_scan_report "https://github.com/adaamn/12tool/blob/main/func/netScan.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_menu,node_user toneBlue
class node_password,node_crypto toneAmber
class node_local_scan,node_public_info,node_scan_report,node_price_api,node_geo_api toneMint
class node_scan_targets toneIndigo
```

## Components

### CLI

- [Menu and dispatch](https://github.com/adaamn/12tool/blob/main/main.py): `main.py`

### Features

- [Password generator](https://github.com/adaamn/12tool/blob/main/func/passGen.py): `func/passGen.py`
- [Crypto prices](https://github.com/adaamn/12tool/blob/main/func/Crypto.py): `func/Crypto.py`

### Network

- [Local IP scan](https://github.com/adaamn/12tool/blob/main/func/netScan.py): `func/netScan.py`
- [Public IP info](https://github.com/adaamn/12tool/blob/main/func/publicInfo.py): `func/publicInfo.py`
- [Scan report file](https://github.com/adaamn/12tool/blob/main/func/netScan.py): `func/netScan.py`

### Other components

- **User**
- **CoinGecko API**
- **ipwho.is API**
- **Local network hosts**

## Connections

- User → Menu and dispatch: selects feature (evidence: `main.py`)
- Menu and dispatch → Password generator: generates password (evidence: `main.py`)
- Menu and dispatch → Crypto prices: requests price (evidence: `main.py`)
- Menu and dispatch → Local IP scan: starts scan (evidence: `main.py`)
- Menu and dispatch → Public IP info: requests info (evidence: `main.py`)
- Crypto prices → CoinGecko API: requests prices (evidence: `func/Crypto.py`)
- Public IP info → ipwho.is API: requests IP data (evidence: `func/publicInfo.py`)
- Local IP scan → Local network hosts: pings hosts (evidence: `func/netScan.py`)
- Local IP scan → Scan report file: writes report (evidence: `func/netScan.py`)
