π« The Pain Point
Youβre testing a system and need 1000 realistic Vietnamese records. Real data has privacy issues. Random strings look fake and break validation.
π Agentic Solution
A Vietnamese Data Generator with locale-specific fake data.
Key Features:
- Vietnamese Names: Realistic βNguyen Van Anβ style names.
- Addresses: Vietnam provinces, districts, wards.
- Phone Numbers: Valid Vietnamese mobile prefixes.
βοΈ Phase 1: Commander (Quick Fix)
For quick data generation.
Prompt:
βWrite a Python script using Faker with Vietnamese locale to generate:
- Records: 1000 rows.
- Columns: Full_Name, Email, Phone (09x format), Address, DOB.
- Output: Save to
fake_data.xlsx.Ensure unique emails. Print sample rows.β
Result: Realistic test data ready for import.
ποΈ Phase 2: Architect (Permanent Tool)
For QA Testers.
Engineering Prompt:
**Role:** Python GUI Developer (PyQt6 Specialist)
**Task:** Create "Vietnamese Data Generator" Desktop App
**Objective:** A tool to generate high-quality fake datasets for localized system testing.
**Tech Stack:**
* Language: Python 3.10+
* GUI Library: PyQt6 (Cross-platform)
* Data: Faker, Pandas
* Packaging: PyInstaller
**Functional Requirements:**
1. **UI Layout (PyQt6):**
* **Config:** Input for "Number of Rows".
* **Fields:** Checkboxes for "Name", "Phone", "Email", "Address", "Job", "Company".
* **Format:** Dropdown for Excel / CSV / JSON.
* **Action:** "Generate" button.
2. **Core Logic:**
* Initialize `Faker('vi_VN')`.
* Generate DataFrame based on selected columns.
* **Threading:** Progress bar updates during generation loop.
3. **Deliverables:**
* `main.py`: Complete source code.
* `requirements.txt`: Dependencies.
* **Build Instructions:**
* Windows: `pyinstaller --onefile --noconsole main.py`
* macOS: `pyinstaller --windowed --noconsole main.py`
π§ Prompt Decoding
- Faker Locales:
vi_VNprovides Vietnamese-specific fake data patterns.
π οΈ Instructions
- Install:
pip install faker - Copy Prompt β Run.