How scarab1220/inventario_python works
Project type and purpose
• This is a lightweight desktop full-stack application (single binary) written in Python, implementing an inventory management system with CRUD operations.
• It uses a Tkinter-based GUI for user interaction and persists data to a local JSON/text file.
File structure
• Top-level:
• .gitignore, requirements.txt
• data/ (contains datos.json)
• src/
• src/ breakdown:
• gui.py → View (Tkinter forms, dialogs, buttons)
• inventario.py → Controller/Service (CRUD logic + orchestration)
• producto.py → Domain Model (Product class with id, name, quantity, price)
• storage.py → Data Access Layer (read/write JSON/text file)
• main.py → Application bootstrap (initializes storage, model, GUI)
• data/datos.json stores the persistent inventory.
README for additional insights
• Confirms functionality: create/read/update/delete products, automatic file save, friendly GUI.
• Lists Python 3.10+, uses only standard libs (tkinter, os).
• Mentions file “datos.txt” (in practice JSON file under data/).