How mini-bomba/instalingpy works
Key Components to Include:
Core Components
• API Interface Layer (libs/instaling.py)
• Database Layer (libs/database.py)
• Operation Modes:
• Interactive Mode (interactive.py)
• Automatic Mode (automatic.py)
• Scheduled Mode (scheduled.py)
• Remote Control System (libs/rcon.py)
• Webhook System (libs/webhooks.py)
External Services
• Instaling.pl API
• MariaDB/MySQL Database
• Discord (for notifications)
• Grafana (for monitoring)
Component Relationships
a. User Interaction Layer:
• Three entry points (interactive.py, automatic.py, scheduled.py)
• Them to the core library components
b. Core Library Layer:
• Center the API interface (instaling.py)
• Connections to supporting modules (utils.py, classes.py, exceptions.py)
• Database interactions through database.py
c. External Services Layer:
• Connections to MariaDB
• Discord webhook integration
• Grafana monitoring connection
Special Features to Highlight
• Word Learning System
• Random Mistake Generator
• Delay Simulation System
• Task Scheduling System
• Remote Control Protocol
[User Interface Layer]
Interactive CLI | Automatic Solver | Scheduled Daemon
• ↓ ↓ ↓
[Core Library Layer]
• ┌─────────── InstalingPy Core ───────────┐
• API Interface ←→ Word Learning │
• Error Handling ←→ Delay Simulation │
• Remote Control ←→ Task Scheduling │
• ┘
• ↓ ↓ ↓
[External Services Layer]
Instaling.pl API MariaDB Discord Grafana
Important Details to Include:
Database Schema Indicators
• Main tables for word storage
• Views for statistics
• Connections for user profiles
Monitoring Flow
• Data collection points
• Metrics being tracked
• Grafana dashboard connection
Configuration Management
• Config file interaction
• Hot-reload capability
• Profile management system
Remember to:
• Use clear, consistent symbols
• Notes about asynchronous operations
• Security boundaries
• Error handling paths
• Configuration file dependencies