Releases: danghoangnhan/nlpFaker
Releases · danghoangnhan/nlpFaker
v2.0.1 — Complete OOP Rewrite
What's New
Complete rewrite of nlpFaker with proper OOP architecture, uv packaging, and 16 generators.
Highlights
- OOP architecture:
BaseGeneratorABC with per-instance RNG for seed isolation - uv + pyproject.toml: Zero runtime dependencies (pandas removed)
- NlpFaker facade: Unified API with lazy initialization and
batch()support - 16 generators: name, id_number, mobile, address, email, company, landline, datetime (ROC 民國 calendar), license_plate, postal_code, tax_id (統一編號), invoice (統一發票), credit_card (Luhn-valid), bank_account, job_title, credential
- Validators:
validate_id_number(),validate_tax_id(),validate_mobile(),validate_credit_card() - Exporter: JSON, CSV, SQL INSERT — stdlib only
- CLI:
nlpfaker name -n 10,nlpfaker profile -n 5 -f json - 57 pytest tests all passing
- CI: GitHub Actions for Python 3.10-3.13
Quick Start
from nlpFaker import NlpFaker
fake = NlpFaker(seed=42)
fake.name() # "陳怡君"
fake.id_number() # "A123456789"
fake.profile() # complete fake person dictFull Changelog: https://github.com/danghoangnhan/nlpFaker/commits/v2.0.1