A set of group-buying helper tools built with Python + HTML:
- Order Sheet Generator (
表單.py) - Order Message Generator (
訊息.py) - Quantity Statistics Tool (
統計.py,數量統計.html)
This repository contains tools to streamline common group-buy workflows:
- Parse order comments into structured tables
- Generate per-customer order messages from Excel
- Count order quantities from raw comment text
- Parses Facebook group-buy comments
- Supports automatic accumulation for repeated customer entries
- Handles mixed formats like
Name + numberand text+quantity patterns - Displays merged order data in a GUI table (Tkinter Treeview)
- Exports results to Excel (
.xlsx)
- Loads order data from Excel (
.xlsx,.xls) - Generates personalized order messages per customer
- Search by customer name
- Sort customers by product ordering status
- Copy single message to clipboard
- Edit and save message text in-app
- Export all messages to a
.txtfile
- Product mode: count by product code (e.g.,
A+1,B*2) - Total mode: sum all
+n/*nvalues - Supports full-width/half-width normalization (NFKC)
- Quick copy of output result
group_buying/
├── README.md
├── requirements.txt
├── 表單.py
├── 訊息.py
├── 統計.py
└── 數量統計.html
- Python 3.10+ (recommended)
- pip
git clone https://github.com/August980422/group_buying.git
cd group_buying
python -m venv venvActivate virtual environment:
- macOS / Linux
source venv/bin/activate - Windows
venv\Scripts\activate
Install dependencies:
pip install -r requirements.txtcustomtkinter==5.2.2openpyxl==3.1.5pandas==2.2.3pyperclip==1.9.0
python 表單.pypython 訊息.pypython 統計.pyOpen this file directly in your browser:
數量統計.html
- Product counting:
A+1,B 2,C*3 - Total counting: sums numbers after
+or*
- Some filenames are in Chinese (e.g.,
表單.py,訊息.py). Use a UTF-8 compatible environment. - Excel column structure affects message-generation results; keep a consistent sheet format.
訊息.pyuses system clipboard viapyperclip.
GPL-v3
GitHub: @422August