πŸ“Š

Data Faker VN

Generate realistic fake Vietnamese data for testing (names, addresses, phone numbers).

Excel ⭐ Beginner ⏱️ 3 minutes

😫 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:

  1. Records: 1000 rows.
  2. Columns: Full_Name, Email, Phone (09x format), Address, DOB.
  3. 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_VN provides Vietnamese-specific fake data patterns.

πŸ› οΈ Instructions

  1. Install: pip install faker
  2. Copy Prompt β†’ Run.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.