PhoneNumberGenerator generator¶
Generate locale-aware phone numbers from the configured dataset.
Why: Use PhoneNumberGenerator for locale-shaped contact fixtures with optional area-code or mobile constraints; use a source reference when numbers must preserve existing customer identity.
Category: address.
Output: str.
1 | |
Parameters¶
dataset:str | null; DefaultNone— Country dataset controlling the phone-number shape.area_code:str | null; DefaultNone— Optional area code forced into the generated number.is_mobile:bool; DefaultFalse— Optional flag selecting a mobile rather than general number pattern.