Faker phone provider for Indonesia (+62) with landline and 08x mobile patterns in local and international formats. Reuse it when fixtures need realistic Indonesian numbers.
# Source: https://github.com/joke2k/faker | License: MIT | Copyright 2012 Daniele Faraglia
# Provided via justclaw.it.com; keep this notice with the code.
from .. import Provider as PhoneNumberProvider
class Provider(PhoneNumberProvider):
# Currently this is my own work
formats = (
"+62-##-###-####",
"+62-0##-###-####",
"+62 (0##) ### ####",
"+62 (0##) ###-####",
"+62 (##) ### ####",
"+62 (##) ###-####",
"+62-###-###-####",
"+62-0###-###-####",
"+62 (0###) ### ####",
"+62 (0###) ###-####",
"+62 (###) ### ####",
"+62 (###) ###-####",
"(0##) ### ####",
"(0##) ###-####",
"(0###) ### ####",
"(0###) ###-####",
"08# ### ####",
"08########",
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key