Desktop utility for printing numbered labels as PDF and updating a Google Sheets inventory when reassembling laptops.
python main.py
Requirements: Python 3.10+, Windows/macOS/Linux.
pip install -r requirements.txt
Labels tab — generate a PDF of sequentially numbered labels in three formats:
| Format | Page size | Labels per page |
|---|---|---|
| Single | ×ばつ40 mm landscape | 1 |
| Grid ×ばつ2 | ×ばつ40 mm | 4 |
| Grid ×ばつ4 | ×ばつ75 mm | 16 |
Enter one or more number ranges, pick a font size, and click Generate PDF. Enable Auto-print to send directly to a printer. Temporary mode deletes the file when the app closes.
Reassembly tab — record which parts were installed in a laptop. Looks up each part ID in a Google Sheet, marks it as shipped, writes the grade to the laptop row, and recalculates the laptop category (NEW/A/B/C/D). Outputs a ready-to-paste comment and tech operation text.
- Create a Google Cloud project and enable the Sheets API.
- Create an OAuth 2.0 Desktop client and download
credentials.json. - Place
credentials.jsonnext tomain.py(or in%APPDATA%/WarehouseMaster/). - Copy
sheet_config.example.jsontosheet_config.jsonand edit it to match your spreadsheet structure (worksheet names, column indices, status values). - Open Settings and paste the spreadsheet URL.
On first run the browser will open for OAuth consent; the token is stored in %APPDATA%/WarehouseMaster/token.json.
Stack: Python 3.10, PyQt5, reportlab, gspread, google-auth.
# run from source
python main.py
# build standalone exe (Windows)
pyinstaller WarehouseMaster.spec
Inter.ttf is licensed under the SIL Open Font License 1.1.
MIT