UrlGenerator generator¶
Generate locale-aware URLs with optional allowed schemes.
Why: Use UrlGenerator for locale-aware web-address fixtures constrained to allowed schemes; use DomainGenerator when only the host name is required.
Category: net.
Output: str.
1 | |
Parameters¶
locale:str | null; DefaultNone— Faker locale used to generate URL components.schemes:list[str] | null; DefaultNone— Allowed URI schemes; generated values are rewritten to one of these schemes.