This project is a refactored version of the original monolithic Currentv2.py printer app. The codebase is now organized into logical modules for maintainability and clarity.
app/- App entry point and Flask app creationconfig/- Configuration management (load/save config, defaults)shopify_api/- Shopify API interaction (GraphQL, inventory)label_utils/- Label creation, image manipulation, barcode handlingprinter_utils/- Printer communication (Brother, Epson, etc.)spreadsheet_utils/- Spreadsheet loading, parsing, and utilitiesroutes/- Flask route handlers, grouped by functionality:index.py- Main page and admin configproducts.py- Product endpointsprinting.py- Print label, print status, cancel printinventory.py- Inventory status and updateadmin.py- Admin login, config, product managementdebug.py- Debug log endpoint
- Install dependencies (see requirements.txt)
- Set up your configuration (see
config/config.py) - Run the app:
python app/app.py
- The original monolithic file is preserved as
Currentv2.pyfor reference. - All secrets (API keys, tokens) must be set via environment variables or config files, not in code.