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()
...
'Circuito Segura 647 Interior 593\nVieja Chile, CHIS 89241-1578'
'Continuación Sur Urías 784 Interior 080\nVieja Turquía, AGS 53513-9332'
'Continuación Sauceda 148 Interior 418\nSan Paola de la Montaña, NL 19659-3423'
'Peatonal Coahuila de Zaragoza 220 186\nSan Octavio de la Montaña, JAL 94775-1591'
'Cerrada Angola 413 Edif. 525 , Depto. 601\nNueva Austria, COAH 13991'
administrative_unit()

example: u’Guerrero’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.administrative_unit()
...
'Sinaloa'
'Tabasco'
'Baja California Sur'
'Morelos'
'Zacatecas'
building_number()

:example ‘791’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'6048'
'6475'
'382'
'2194'
'924'
city()

:example ‘Sashabury’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'San Lucía de la Montaña'
'San Nayeli los bajos'
'San Hernán los bajos'
'San Rodolfo de la Montaña'
'Vieja Chile'
city_adjective()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_adjective()
...
'Vieja'
'Vieja'
'Nueva'
'Vieja'
'Vieja'
city_prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_prefix()
...
'Norte'
'Norte'
'Sur'
'Norte'
'Norte'
city_suffix()

:example ‘town’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
'los bajos'
'los bajos'
'de la Montaña'
'los bajos'
'los altos'
country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Letonia'
'Malawi'
'Australia'
'Gambia'
'Pakistán'
country_code(representation='alpha-2')
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_code()
...
'MV'
'PS'
'NL'
'BB'
'IL'
current_country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country()
...
'Mexico'
'Mexico'
'Mexico'
'Mexico'
'Mexico'
current_country_code()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country_code()
...
'MX'
'MX'
'MX'
'MX'
'MX'
postcode()

:example 86039-9874

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'60487-6475'
'82421'
'89241-1578'
'56593'
'78408-0160'
secondary_address()

:example ‘020 Interior 999’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.secondary_address()
...
'604 Interior 876'
'759 Interior 382'
'219 Interior 489'
'411 578'
'565 938'
state()

example: u’Guerrero’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.state()
...
'Sinaloa'
'Tabasco'
'Baja California Sur'
'Morelos'
'Zacatecas'
state_abbr()

example: u’GRO’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.state_abbr()
...
'SIN'
'TAB'
'BCS'
'MOR'
'ZAC'
street_address()

:example ‘791 Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'Andador Norte Segura 647 Interior 593'
'Calle Chiapas 489 Edif. 241 , Depto. 157'
'Eje vial Puebla 387 Edif. 784 , Depto. 080'
'Viaducto Sur Salcido 351 Interior 393'
'Privada México 158 714'
street_name()

:example ‘Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'Eje vial Sur Huerta'
'Diagonal Norte Romero'
'Prolongación Jalisco'
'Circunvalación Chile'
'Retorno Henríquez'
street_prefix()

:example ‘Avenida’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_prefix()
...
'Diagonal'
'Eje vial'
'Andador'
'Circuito'
'Periférico'
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()
...
'incuba esquemas proactivas'
'fortalece servicios web front-end'
'compromete interfaces eficientes'
'entrega tecnologías distribuidas'
'orquesta arquitecturas intuitivas'
catch_phrase()

:example ‘Robust full-range hub’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase()
...
'instalación multitarea enfocado al negocio'
'flexibilidad regional recontextualizado'
'interfaz híbrida realineado'
'conjunto terciaria basado en funcionalidad'
'sistema abierto sensible al contexto mandatorio'
company()

:example ‘Acme Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company()
...
'Peres, Arevalo y Huerta'
'Palacios y Madrigal S.C.'
'Vergara-Gamez S. R.L. de C.V.'
'Corporacin Cintrón-Cadena'
'Industrias Zarate, Contreras y Marín'
company_prefix()

Ejemplo: Grupo

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_prefix()
...
'Proyectos'
'Club'
'Proyectos'
'Club'
'Despacho'
company_suffix()

:example ‘Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_suffix()
...
'y Asociados'
'S.C.'
'y Asociados'
'S.C.'
'A.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()
...
'Judith'
'Lucía'
'Alfredo'
'Francisco Javier'
'Nayeli'
first_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Judith'
'Lucía'
'Alfredo'
'Francisco Javier'
'Nayeli'
first_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Judith'
'Lucía'
'Alfredo'
'Francisco Javier'
'Nayeli'
first_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Judith'
'Lucía'
'Alfredo'
'Francisco Javier'
'Nayeli'
language_name()

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

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.language_name()
...
'Luba-Katanga'
'Malay'
'Aymara'
'Interlingue'
'Quechua'
last_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name()
...
'Olmos'
'Peres'
'Arevalo'
'Huerta'
'Segura'
last_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Olmos'
'Peres'
'Arevalo'
'Huerta'
'Segura'
last_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Olmos'
'Peres'
'Arevalo'
'Huerta'
'Segura'
last_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Olmos'
'Peres'
'Arevalo'
'Huerta'
'Segura'
name()

:example ‘John Doe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Lucía Arevalo'
'Nayeli Mercedes Palacios Madrigal'
'Jorge Vergara'
'Natalia Clara Lerma'
'Barbara Serafín Henríquez'
name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Lucía Arevalo'
'Nayeli Mercedes Palacios Madrigal'
'Jorge Vergara'
'Natalia Clara Lerma'
'Barbara Serafín Henríquez'
name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Lucía Arevalo'
'Nayeli Mercedes Palacios Madrigal'
'Jorge Vergara'
'Natalia Clara Lerma'
'Barbara Serafín Henríquez'
name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Lucía Arevalo'
'Nayeli Mercedes Palacios Madrigal'
'Jorge Vergara'
'Natalia Clara Lerma'
'Barbara Serafín Henríquez'
prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
'Lic.'
'Lic.'
'Sr(a).'
'Mtro.'
'Ing.'
prefix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
'Lic.'
'Lic.'
'Sr(a).'
'Mtro.'
'Ing.'
prefix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
'Lic.'
'Lic.'
'Sr(a).'
'Mtro.'
'Ing.'
prefix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
'Lic.'
'Lic.'
'Sr(a).'
'Mtro.'
'Ing.'
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()
...
'+687'
'+595'
'+880'
'+964'
'+41'
msisdn()

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

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.msisdn()
...
'6048764759382'
'2194892411578'
'5659387784080'
'6097535139332'
'1158714841858'
phone_number()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.phone_number()
...
'604-876-4759x382'
'(219)489-2411'
'(578)156-5938x77840'
'(016)097-5351x3933'
'871-158-7148'

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()
...
'RIFG200706MDGGRJA9'
'LIUI580107MNTXMP09'
'SUDW080929MYNZFKA5'
'KIDD621029MASXHG02'
'QIRJ110205MZSDSE06'
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()
...
'QITG200706U3E'
'UICR5801079KA'
'WITZ08092983U'
'JUGV6210290U5'
'LIWX1102051OA'
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'