Locale es_MX

faker.providers.address

class faker.providers.address.es_MX.Provider(generator)

Bases: faker.providers.address.es.Provider

address()

:example ‘791 Crist Parks, Sashabury, IL 86039-9874’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.address()
...
'Callejón Letonia 475 Interior 938\nNueva Bélgica, SON 89241-1578'
'Retorno Yucatán 840 Interior 801\nSan Genaro los altos, QRO 75351'
'Viaducto Sáenz 158 Interior 714\nSan Mauro los bajos, TAB 98947-1965'
'Boulevard Nieves 711 Interior 220\nSan Sandra los altos, NAY 84833'
'Diagonal Sur Padilla 515 Edif. 917 , Depto. 953\nVieja Bolivia, CHIH 56012-3098'
building_number()

:example ‘791’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'604'
'764'
'593'
'4219'
'892'
city()

:example ‘Sashabury’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'San Noelia los bajos'
'Vieja Hungría'
'San Emiliano los bajos'
'San Sergio los bajos'
'Vieja Mozambique'
city_adjective()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_adjective()
...
'Vieja'
'Vieja'
'Nueva'
'Nueva'
'Vieja'
city_prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_prefix()
...
'Norte'
'Norte'
'Sur'
'Sur'
'Norte'
city_suffix()

:example ‘town’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
'los altos'
'los altos'
'los bajos'
'de la Montaña'
'los bajos'
country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Sierra Leona'
'República Democrática Popular Lao'
'Irán'
'Egipto'
'Letonia'
country_code(representation='alpha-2')
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_code()
...
'ZW'
'TO'
'LB'
'FI'
'MV'
postcode()

:example 86039-9874

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'60487-6475'
'38242-1948'
'92411-5781'
'59387'
'84080'
secondary_address()

:example ‘020 Interior 999’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.secondary_address()
...
'604 Edif. 876 , Depto. 475'
'382 Interior 421'
'489 Interior 241'
'578 Edif. 156 , Depto. 593'
'778 Edif. 408 , Depto. 016'
state()

example: u’Guerrero’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.state()
...
'Tamaulipas'
'Sinaloa'
'Jalisco'
'Distrito Federal'
'Morelos'
state_abbr()

example: u’GRO’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.state_abbr()
...
'TAMPS'
'SIN'
'JAL'
'DF'
'MOR'
street_address()

:example ‘791 Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'Circuito Sur Márquez 475 Interior 938'
'Andador Ruiz 892 Edif. 411 , Depto. 578'
'Diagonal Togo 778 Edif. 408 , Depto. 016'
'Eje vial Norte Santacruz 513 933'
'Corredor Baca 871 Edif. 484 , Depto. 185'
street_name()

:example ‘Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'Peatonal Sur Cotto'
'Circuito Sonora'
'Continuación Mauricio'
'Continuación Sur Rico'
'Callejón Veracruz de Ignacio de la Llave'
street_prefix()

:example ‘Avenida’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_prefix()
...
'Privada'
'Peatonal'
'Circuito'
'Callejón'
'Continuación'
street_suffix()

:example ‘Avenue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_suffix()
...
'Street'
'Street'
'Street'
'Street'
'Street'

faker.providers.company

class faker.providers.company.es_MX.Provider(generator)

Bases: faker.providers.company.Provider

bs()

:example ‘integrate extensible convergence’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bs()
...
'genera usuarios dinámicas'
'agrega relaciones virales'
'extiende soluciones listo para la web'
'mezcla funcionalidades punto-com'
'mejora usuarios extensibles'
catch_phrase()

:example ‘Robust full-range hub’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase()
...
'software optimizada integrado'
'fidelidad interactiva innovador'
'producto discreta monitoreado'
'red de area local tangible multilateral'
'data-warehouse optimizada orgánico'
company()

:example ‘Acme Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company()
...
'Riojas, Hidalgo y Cotto'
'Corporacin Romero, Enríquez y Longoria'
'Proyectos Maldonado, de la Torre y Rico'
'Grupo Uribe, Zamora y Salcedo'
'Esparza y Quiroz y Asociados'
company_prefix()

Ejemplo: Grupo

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_prefix()
...
'Laboratorios'
'Laboratorios'
'Corporacin'
'Grupo'
'Club'
company_suffix()

:example ‘Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_suffix()
...
'e Hijos'
'e Hijos'
'S.A. de C.V.'
'S.A.'
'S.C.'

faker.providers.person

class faker.providers.person.es_MX.Provider(generator)

Bases: faker.providers.person.Provider

first_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name()
...
'Renato'
'Noelia'
'Gloria'
'Delia'
'Javier'
first_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Renato'
'Noelia'
'Gloria'
'Delia'
'Javier'
first_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Renato'
'Noelia'
'Gloria'
'Delia'
'Javier'
first_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Renato'
'Noelia'
'Gloria'
'Delia'
'Javier'
language_name()

Generate a random i18n language name (e.g. English).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.language_name()
...
'Swahili'
'Sardinian'
'Georgian'
'French'
'Ganda'
last_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name()
...
'Serrano'
'Riojas'
'Hidalgo'
'Cotto'
'Márquez'
last_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Serrano'
'Riojas'
'Hidalgo'
'Cotto'
'Márquez'
last_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Serrano'
'Riojas'
'Hidalgo'
'Cotto'
'Márquez'
last_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Serrano'
'Riojas'
'Hidalgo'
'Cotto'
'Márquez'
name()

:example ‘John Doe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Lic. Gloria Cotto'
'Gerardo Olga Enríquez Longoria'
'Sergio Jacobo de la Torre Rico'
'Darío Uribe'
'Ing. Sara Esparza'
name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Lic. Gloria Cotto'
'Gerardo Olga Enríquez Longoria'
'Sergio Jacobo de la Torre Rico'
'Darío Uribe'
'Ing. Sara Esparza'
name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Lic. Gloria Cotto'
'Gerardo Olga Enríquez Longoria'
'Sergio Jacobo de la Torre Rico'
'Darío Uribe'
'Ing. Sara Esparza'
name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Lic. Gloria Cotto'
'Gerardo Olga Enríquez Longoria'
'Sergio Jacobo de la Torre Rico'
'Darío Uribe'
'Ing. Sara Esparza'
prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
'Ing.'
'Lic.'
'Mtro.'
'Dr.'
'Mtro.'
prefix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
'Ing.'
'Lic.'
'Mtro.'
'Dr.'
'Mtro.'
prefix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
'Ing.'
'Lic.'
'Mtro.'
'Dr.'
'Mtro.'
prefix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
'Ing.'
'Lic.'
'Mtro.'
'Dr.'
'Mtro.'
suffix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix()
...
''
''
''
''
''
suffix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_female()
...
''
''
''
''
''
suffix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_male()
...
''
''
''
''
''
suffix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_nonbinary()
...
''
''
''
''
''

faker.providers.phone_number

class faker.providers.phone_number.es_MX.Provider(generator)

Bases: faker.providers.phone_number.Provider

country_calling_code()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_calling_code()
...
'+211'
'+599 4'
'+800'
'+503'
'+82'
msisdn()

https://en.wikipedia.org/wiki/MSISDN

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.msisdn()
...
'6048764759382'
'1948924115781'
'5938778408016'
'0975351393328'
'1587148418583'
phone_number()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.phone_number()
...
'604-876-4759x38242'
'1-948-924-1157x8156'
'387.784.0801'
'(609)753-5139x3328'
'1-158-714-8418'

faker.providers.ssn

class faker.providers.ssn.es_MX.Provider(generator)

Bases: faker.providers.ssn.Provider

A Faker provider for the Mexican SSN, RFC and CURP

curp()

See https://es.wikipedia.org/wiki/Clave_%C3%9Anica_de_Registro_de_Poblaci%C3%B3n.

Returns:a random Mexican CURP (Unique Population Registry Code)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.curp()
...
'FIJB190611HNLBFHA0'
'MUUH561212HOCKZA09'
'DOLO070904HTCLZPA9'
'EALK611003MZSMGY05'
'BUWF100110MTCBMZ08'
rfc(natural=True)

See https://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes

Parameters:natural (bool) – Whether to return the RFC of a natural person. Otherwise return the RFC of a legal person.
Returns:a random Mexican RFC
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.rfc()
...
'HEJD190611YHU'
'KOZP561212GF4'
'SULU0709048VT'
'ZIUB611003VPC'
'WAFB100110R2Z'
ssn()

Mexican Social Security Number, as given by IMSS.

Returns:a random Mexican SSN
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ssn()
...
'50539706643'
'34626566359'
'39456195591'
'28176446186'
'18129641058'