π« 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)
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "Vietnamese Data Generator".
**Requirements:**
1. **GUI:**
* Number of records input.
* Field checkboxes (Name, Email, Phone, Address, etc.).
* Output format (Excel, CSV, JSON).
* "Generate" button.
2. **Logic:**
* Use Faker with vi_VN locale.
* Custom providers for VN-specific data.
* Ensure unique constraints where needed.
3. **Deliverables:**
* `data_faker.py`
* `run.bat`, `run.sh`
* `requirements.txt`
π§ Prompt Decoding
- Faker Locales:
vi_VNprovides Vietnamese-specific fake data patterns.
π οΈ Instructions
- Install:
pip install faker - Copy Prompt β Run.