# kaiqueluizgoncalves/estoque-farmaceutico-ifmt architecture

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

- Interactive diagram: https://gitdiagram.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt
- Repository: https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt

## Overview

A small interactive pharmacy-inventory CLI. A user can view, search, or add medicines; inspect recent usernames behind a PIN; and change that PIN. Inventory, usernames, and the PIN are held in memory in one script, so they do not persist across program runs. The graph reflects the inline menu branches; there are no separate runtime modules.

Main entry points: [`estoque.py`](https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py) (Inventory CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_cli["Inventory CLI<br/>[estoque.py]"]
node_inventory[("Medicine Stock<br/>[estoque.py]")]
node_history[("User History<br/>[estoque.py]")]
node_pin[("History PIN<br/>[estoque.py]")]

node_user -->|"uses menu"| node_cli
node_cli -->|"views, searches, updates"| node_inventory
node_cli -->|"records, displays"| node_history
node_cli -->|"checks, changes"| node_pin

click node_cli "https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py"
click node_inventory "https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py"
click node_history "https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py"
click node_pin "https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.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_user toneBlue
class node_cli toneTeal
class node_inventory,node_history,node_pin toneAmber
```

## Components

### Other components

- **User**
- [Inventory CLI](https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py): `estoque.py`
- [Medicine Stock](https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py): `estoque.py`
- [User History](https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py): `estoque.py`
- [History PIN](https://github.com/kaiqueluizgoncalves/estoque-farmaceutico-ifmt/blob/main/estoque.py): `estoque.py`

## Connections

- User → Inventory CLI: uses menu (evidence: `estoque.py`)
- Inventory CLI → Medicine Stock: views, searches, updates (evidence: `estoque.py`)
- Inventory CLI → User History: records, displays (evidence: `estoque.py`)
- Inventory CLI → History PIN: checks, changes (evidence: `estoque.py`)
