Locale fr_FR

faker.providers.address

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

Bases: faker.providers.address.Provider

address()

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

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.address()
...
'94, boulevard Mathilde Boulay\n38242 Guillet-les-Bains'
'224, boulevard de Joubert\n15659 Leroux-la-Forêt'
'9, rue de Descamps\n09753 DiasVille'
'828, boulevard Pottier\n71484 Launaynec'
'59, chemin Vincent Lebreton\n32094 Muller'
building_number()

:example ‘791’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'560'
'576'
'459'
'34'
'59'
city()

:example ‘Sashabury’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'Allain-sur-Mer'
'Alexandre'
'Raymond'
'Guichard'
'Lacombe'
city_prefix()

:example ‘rue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_prefix()
...
'Sainte'
'Sainte'
'Saint'
'Saint'
'Sainte'
city_suffix()

:example ‘town’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
'nec'
'nec'
'-sur-Mer'
'-les-Bains'
'-la-Forêt'
country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Suède'
'République tchèque'
'Irlande'
'Équateur'
'Macau'
country_code(representation='alpha-2')
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_code()
...
'ZW'
'TO'
'LB'
'FI'
'MV'
department()

Randomly returns a french department (‘departmentNumber’ , ‘departmentName’). :example (‘2B’ . ‘Haute-Corse’)

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.department()
...
('85', 'Vendée')
('76', 'Seine-Maritime')
('42', 'Loire')
('26', 'Drôme')
('51', 'Marne')
department_name()

Randomly returns a french department name. :example ‘Ardèche’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.department_name()
...
'Vendée'
'Seine-Maritime'
'Loire'
'Drôme'
'Marne'
department_number()

Randomly returns a french department number.

:example ‘59’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.department_number()
...
'85'
'76'
'42'
'26'
'51'
postcode()

:example 86039-9874

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'60487'
'47593'
'42194'
'89241'
'57815'
region()

:example ‘Guadeloupe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.region()
...
'Mayotte'
'Réunion'
'Midi-Pyrénées'
'Franche-Comté'
'Haute-Normandie'
street_address()

:example ‘791 Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'16, chemin Gomes'
'67, boulevard Bernadette Vasseur'
'94, boulevard de Fischer'
'85, rue Richard Charrier'
'97, boulevard Gilbert'
street_name()

:example ‘Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'avenue de Boulanger'
'chemin Gomes'
'rue de Guichard'
'boulevard Bernadette Vasseur'
'avenue de Pierre'
street_prefix()

:example ‘rue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_prefix()
...
'boulevard'
'avenue'
'chemin'
'rue'
'chemin'
street_suffix()

:example ‘Avenue’

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

faker.providers.automotive

class faker.providers.automotive.fr_FR.Provider(generator)

Bases: faker.providers.automotive.Provider

Implement automotive provider for fr_FR locale.

Sources:

license_plate()

Generate a license plate.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.license_plate()
...
'876-TKG-47'
'XF-194-DD'
'241-NSP-15'
'CL-877-PX'
'016-GUO-09'

faker.providers.bank

class faker.providers.bank.fr_FR.Provider(generator)

Bases: faker.providers.bank.Provider

Implement bank provider for fr_FR locale.

bank_country()

Generate the bank provider’s ISO 3166-1 alpha-2 country code.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bank_country()
...
'FR'
'FR'
'FR'
'FR'
'FR'
bban()

Generate a Basic Bank Account Number (BBAN).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bban()
...
'66048764759382421948924'
'11578156593877840801609'
'75351393328711587148418'
'58398947196593423209471'
'12201868483396947751591'
iban()

Generate an International Bank Account Number (IBAN).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.iban()
...
'FR9166048764759382421948924'
'FR4711578156593877840801609'
'FR4675351393328711587148418'
'FR4358398947196593423209471'
'FR8612201868483396947751591'
swift(length=None, primary=None, use_dataset=False)

Generate a SWIFT code.

SWIFT codes, reading from left to right, are composed of a 4 alphabet character bank code, a 2 alphabet character country code, a 2 alphanumeric location code, and an optional 3 alphanumeric branch code. This means SWIFT codes can only have 8 or 11 characters, so the value of length can only be None or the integers 8 or 11. If the value is None, then a value of 8 or 11 will randomly be assigned.

Because all 8-digit SWIFT codes already refer to the primary branch or office, the primary argument only has an effect if the value of length is 11. If primary is True and length is 11, the 11-digit SWIFT codes generated will always end in 'XXX' to denote that they belong to primary branches/offices.

For extra authenticity, localized providers may opt to include SWIFT bank codes, location codes, and branch codes used in their respective locales. If use_dataset is True, this method will generate SWIFT codes based on those locale-specific codes if included. If those codes were not included, then it will behave as if use_dataset were False, and in that mode, all those codes will just be randomly generated as per the specification.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift()
...
'TKGNFRO2KRV'
'NHTQFRJ6936'
'SXRMFRDP'
'XZMWFRJ2TAZ'
'VRAMFR5I'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=8)
...
'VTKGFRSO'
'UHMPFR6S'
'HTQGFR69'
'VXISFR6Y'
'MCLPFR68'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=8, use_dataset=True)
...
'VTKGFRSO'
'UHMPFR6S'
'HTQGFR69'
'VXISFR6Y'
'MCLPFR68'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11)
...
'VTKGFRSO2KR'
'PXNHFR1WJ69'
'VXISFR6YQDP'
'PXZMFR5J2TA'
'SKVRFRAR5IL'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, primary=True)
...
'VTKGFRSOXXX'
'UHMPFR6SXXX'
'HTQGFR69XXX'
'VXISFR6YXXX'
'MCLPFR68XXX'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, use_dataset=True)
...
'VTKGFRSO2KR'
'PXNHFR1WJ69'
'VXISFR6YQDP'
'PXZMFR5J2TA'
'SKVRFRAR5IL'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, primary=True, use_dataset=True)
...
'VTKGFRSOXXX'
'UHMPFR6SXXX'
'HTQGFR69XXX'
'VXISFR6YXXX'
'MCLPFR68XXX'
swift11(primary=None, use_dataset=False)

Generate an 11-digit SWIFT code.

This method uses swift() under the hood with the length argument set to 11. If primary is set to True, the SWIFT code will always end with 'XXX'. All 11-digit SWIFT codes use this convention to refer to the primary branch/office.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift11()
...
'VTKGFRSO2KR'
'PXNHFR1WJ69'
'VXISFR6YQDP'
'PXZMFR5J2TA'
'SKVRFRAR5IL'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift11(use_dataset=True)
...
'VTKGFRSO2KR'
'PXNHFR1WJ69'
'VXISFR6YQDP'
'PXZMFR5J2TA'
'SKVRFRAR5IL'
swift8(use_dataset=False)

Generate an 8-digit SWIFT code.

This method uses swift() under the hood with the length argument set to 8 and with the primary argument omitted. All 8-digit SWIFT codes already refer to the primary branch/office.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift8()
...
'VTKGFRSO'
'UHMPFR6S'
'HTQGFR69'
'VXISFR6Y'
'MCLPFR68'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift8(use_dataset=True)
...
'VTKGFRSO'
'UHMPFR6S'
'HTQGFR69'
'VXISFR6Y'
'MCLPFR68'

faker.providers.color

class faker.providers.color.fr_FR.Provider(generator)

Bases: faker.providers.color.Provider

Implement color provider for fr_FR locale.

color(hue=None, luminosity=None, color_format='hex')

Generate a color in a human-friendly way.

Under the hood, this method first creates a color represented in the HSV color model and then converts it to the desired color_format. The argument hue controls the H value according to the following rules:

  • If the value is a number from 0 to 360, it will serve as the H value of the generated color.
  • If the value is a tuple/list of 2 numbers from 0 to 360, the color’s H value will be randomly selected from that range.
  • If the value is a valid string, the color’s H value will be randomly selected from the H range corresponding to the supplied string. Valid values are 'monochrome', 'red', 'orange', 'yellow', 'green', 'blue', 'purple', and 'pink'.

The argument luminosity influences both S and V values and is partially affected by hue as well. The finer details of this relationship are somewhat involved, so please refer to the source code instead if you wish to dig deeper. To keep the interface simple, this argument either can be omitted or can accept the following string values:'bright', 'dark', 'light', or 'random'.

The argument color_format controls in which color model the color is represented. Valid values are 'hsv', 'hsl', 'rgb', or 'hex' (default).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue='red')
...
'#af2f33'
'#e02141'
'#ef6466'
'#a80a14'
'#ed9e95'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(luminosity='light')
...
'#79c3e0'
'#89ffa1'
'#96cbf7'
'#aafaff'
'#e3f495'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue=(100, 200), color_format='rgb')
...
'rgb(26, 155, 88)'
'rgb(9, 193, 49)'
'rgb(73, 229, 154)'
'rgb(107, 249, 166)'
'rgb(76, 204, 69)'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue='orange', luminosity='bright')
...
'#efc332'
'#edae65'
'#d1861d'
'#ffcc42'
'#e09533'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue=135, luminosity='dark', color_format='hsv')
...
'hsv(135, 96, 45)'
'hsv(135, 98, 57)'
'hsv(135, 94, 61)'
'hsv(135, 99, 47)'
'hsv(135, 94, 50)'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue=(300, 20), luminosity='random', color_format='hsl')
...
'hsl(217, 94, 27)'
'hsl(40, 23, 54)'
'hsl(268, 100, 74)'
'hsl(175, 43, 31)'
'hsl(131, 47, 11)'
color_name()

Generate a color name.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color_name()
...
'Turquoise'
'Vert océan'
'Amande'
'Bleu ardoise foncé'
'Brun pérou'
hex_color()

Generate a color formatted as a hex triplet.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.hex_color()
...
'#d82c08'
'#629f70'
'#c2094d'
'#e3e707'
'#6baa95'
rgb_color()

Generate a color formatted as a comma-separated RGB value.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.rgb_color()
...
'197,215,20'
'132,248,207'
'155,244,183'
'111,71,144'
'71,48,128'
rgb_css_color()

Generate a color formatted as a CSS rgb() function.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.rgb_css_color()
...
'rgb(197,215,20)'
'rgb(132,248,207)'
'rgb(155,244,183)'
'rgb(111,71,144)'
'rgb(71,48,128)'
safe_color_name()

Generate a web-safe color name.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_color_name()
...
'fuchsia'
'jaune'
'sarcelle'
'rouge'
'bleu'
safe_hex_color()

Generate a web-safe color formatted as a hex triplet.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_hex_color()
...
'#cc5500'
'#dd7700'
'#114400'
'#884400'
'#ff8800'

faker.providers.company

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

Bases: faker.providers.company.Provider

bs()

:example ‘integrate extensible convergence’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bs()
...
'generate enterprise technologies'
'incentivize dot-com niches'
'extend B2C vortals'
'engage ubiquitous convergence'
'morph enterprise e-commerce'
catch_phrase()

:example ‘integrate extensible convergence’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase()
...
"L'assurance d'atteindre vos buts en toute tranquilité"
'Le pouvoir de concrétiser vos projets naturellement'
"La liberté d'atteindre vos buts de manière sûre"
'La possibilité de concrétiser vos projets sans soucis'
'Le plaisir de changer à la pointe'
catch_phrase_attribute()

Returns a random catch phrase attribute.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase_attribute()
...
'à sa source'
"à l'état pur"
'avant-tout'
'plus simplement'
'naturellement'
catch_phrase_noun()

Returns a random catch phrase noun.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase_noun()
...
"l'avantage"
'la possibilité'
"l'assurance"
'le confort'
"l'art"
catch_phrase_verb()

Returns a random catch phrase verb.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase_verb()
...
"d'atteindre vos buts"
"d'atteindre vos buts"
'de changer'
"d'évoluer"
"d'innover"
company()

:example ‘Acme Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company()
...
'Allain'
'Renaud Alexandre SARL'
'Gomez'
'Pineau Lacombe S.A.R.L.'
'Maury Guillet S.A.'
company_suffix()

:example ‘Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_suffix()
...
'et Fils'
'S.A.S.'
'SARL'
'S.A.'
'S.A.R.L.'
siren()

Generates a siren number (9 digits).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.siren()
...
'660 487 647'
'593 824 219'
'489 241 157'
'815 659 387'
'784 080 160'
siret(max_sequential_digits=2)

Generates a siret number (14 digits). It is in fact the result of the concatenation of a siren number (9 digits), a sequential number (4 digits) and a control number (1 digit) concatenation. If $max_sequential_digits is invalid, it is set to 2. :param max_sequential_digits The maximum number of digits for the sequential number (> 0 && <= 4).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.siret()
...
'604 876 475 00499'
'824 219 489 00272'
'115 781 565 00399'
'387 784 080 00811'
'609 753 513 00929'

faker.providers.date_time

class faker.providers.date_time.fr_FR.Provider(generator)

Bases: faker.providers.date_time.Provider

am_pm()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.am_pm()
...
'AM'
'AM'
'AM'
'AM'
'PM'
century()

:example ‘XVII’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.century()
...
'XVIII'
'XVI'
'IX'
'VI'
'XI'
date(pattern='%Y-%m-%d', end_datetime=None)

Get a date string between January 1, 1970 and now :param pattern format :example ‘2008-11-27’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date()
...
'1996-03-20'
'1998-08-15'
'1972-10-03'
'1987-08-15'
'2004-10-16'
date_between(start_date='-30y', end_date='today')

Get a Date object based on a random date between two given dates. Accepts date strings that can be recognized by strtotime().

:param start_date Defaults to 30 years ago :param end_date Defaults to “today” :example Date(‘1999-02-02’) :return Date

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_between()
...
datetime.date(2019, 7, 7)
datetime.date(2003, 11, 21)
datetime.date(2016, 7, 27)
datetime.date(2005, 2, 2)
datetime.date(1992, 2, 28)
date_between_dates(date_start=None, date_end=None)

Takes two Date objects and returns a random date between the two given dates. Accepts Date or Datetime objects

Parameters:
  • date_start – Date
  • date_end – Date

:return Date

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_between_dates()
...
datetime.date(2020, 10, 13)
datetime.date(2020, 10, 13)
datetime.date(2020, 10, 13)
datetime.date(2020, 10, 13)
datetime.date(2020, 10, 13)
date_object(end_datetime=None)

Get a date object between January 1, 1970 and now :example datetime.date(2016, 9, 20)

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_object()
...
datetime.date(1996, 3, 20)
datetime.date(1998, 8, 15)
datetime.date(1972, 10, 3)
datetime.date(1987, 8, 15)
datetime.date(2004, 10, 16)
date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)

Generate a random date of birth represented as a Date object, constrained by optional miminimum_age and maximum_age parameters.

:param tzinfo Defaults to None. :param minimum_age Defaults to 0. :param maximum_age Defaults to 115.

:example Date(‘1979-02-02’) :return Date

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_of_birth()
...
datetime.date(2019, 9, 16)
datetime.date(1957, 3, 19)
datetime.date(2007, 12, 10)
datetime.date(1962, 1, 8)
datetime.date(1910, 4, 17)
date_this_century(before_today=True, after_today=False)

Gets a Date object for the current century.

Parameters:
  • before_today – include days in current century before today
  • after_today – include days in current century after today

:example Date(‘2012-04-04’) :return Date

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_this_century()
...
datetime.date(2013, 2, 8)
datetime.date(2014, 4, 23)
datetime.date(2001, 5, 18)
datetime.date(2008, 10, 22)
datetime.date(2017, 5, 24)
date_this_decade(before_today=True, after_today=False)

Gets a Date object for the decade year.

Parameters:
  • before_today – include days in current decade before today
  • after_today – include days in current decade after today

:example Date(‘2012-04-04’) :return Date

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_this_decade()
...
datetime.date(2020, 5, 29)
datetime.date(2020, 6, 12)
datetime.date(2020, 1, 16)
datetime.date(2020, 4, 10)
datetime.date(2020, 7, 17)
date_this_month(before_today=True, after_today=False)

Gets a Date object for the current month.

Parameters:
  • before_today – include days in current month before today
  • after_today – include days in current month after today
  • tzinfo – timezone, instance of datetime.tzinfo subclass

:example DateTime(‘2012-04-04 11:02:02’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_this_month()
...
datetime.date(2020, 10, 11)
datetime.date(2020, 10, 5)
datetime.date(2020, 10, 10)
datetime.date(2020, 10, 11)
datetime.date(2020, 10, 6)
date_this_year(before_today=True, after_today=False)

Gets a Date object for the current year.

Parameters:
  • before_today – include days in current year before today
  • after_today – include days in current year after today

:example Date(‘2012-04-04’) :return Date

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_this_year()
...
datetime.date(2020, 5, 29)
datetime.date(2020, 6, 12)
datetime.date(2020, 1, 16)
datetime.date(2020, 4, 10)
datetime.date(2020, 7, 17)
date_time(tzinfo=None, end_datetime=None)

Get a datetime object for a date between January 1, 1970 and now :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘2005-08-16 20:39:21’) :return datetime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time()
...
datetime.datetime(1996, 3, 20, 7, 46, 39)
datetime.datetime(1998, 8, 15, 8, 43, 22)
datetime.datetime(1972, 10, 3, 5, 52, 26)
datetime.datetime(1987, 8, 15, 9, 51, 25)
datetime.datetime(2004, 10, 16, 19, 14, 57)
date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)

Get a datetime object for a date between January 1, 001 and now :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘1265-03-22 21:15:52’) :return datetime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_ad()
...
datetime.datetime(932, 7, 17, 1, 20, 13)
datetime.datetime(2009, 8, 3, 21, 25)
datetime.datetime(58, 3, 29, 17, 26, 45)
datetime.datetime(1023, 4, 21, 11, 47, 46)
datetime.datetime(1961, 7, 18, 3, 50, 16)
date_time_between(start_date='-30y', end_date='now', tzinfo=None)

Get a DateTime object based on a random date between two given dates. Accepts date strings that can be recognized by strtotime().

:param start_date Defaults to 30 years ago :param end_date Defaults to “now” :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘1999-02-02 11:42:52’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_between()
...
datetime.datetime(2019, 7, 8, 12, 38, 51)
datetime.datetime(2003, 11, 23, 1, 54, 31)
datetime.datetime(2016, 7, 28, 22, 43, 31)
datetime.datetime(2005, 2, 4, 2, 22, 53)
datetime.datetime(1992, 2, 29, 12, 57, 25)
date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)

Takes two DateTime objects and returns a random datetime between the two given datetimes. Accepts DateTime objects.

Parameters:
  • datetime_start – DateTime
  • datetime_end – DateTime
  • tzinfo – timezone, instance of datetime.tzinfo subclass

:example DateTime(‘1999-02-02 11:42:52’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_between_dates()
...
datetime.datetime(2020, 10, 13, 14, 49, 12)
datetime.datetime(2020, 10, 13, 14, 49, 12)
datetime.datetime(2020, 10, 13, 14, 49, 12)
datetime.datetime(2020, 10, 13, 14, 49, 12)
datetime.datetime(2020, 10, 13, 14, 49, 12)
date_time_this_century(before_now=True, after_now=False, tzinfo=None)

Gets a DateTime object for the current century.

Parameters:
  • before_now – include days in current century before today
  • after_now – include days in current century after today
  • tzinfo – timezone, instance of datetime.tzinfo subclass

:example DateTime(‘2012-04-04 11:02:02’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_this_century()
...
datetime.datetime(2013, 2, 8, 15, 53, 19)
datetime.datetime(2014, 4, 23, 16, 21, 41)
datetime.datetime(2001, 5, 18, 2, 56, 13)
datetime.datetime(2008, 10, 22, 16, 55, 42)
datetime.datetime(2017, 5, 24, 21, 37, 28)
date_time_this_decade(before_now=True, after_now=False, tzinfo=None)

Gets a DateTime object for the decade year.

Parameters:
  • before_now – include days in current decade before today
  • after_now – include days in current decade after today
  • tzinfo – timezone, instance of datetime.tzinfo subclass

:example DateTime(‘2012-04-04 11:02:02’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_this_decade()
...
datetime.datetime(2020, 5, 29, 14, 44, 47)
datetime.datetime(2020, 6, 12, 8, 0, 40)
datetime.datetime(2020, 1, 16, 17, 20, 30)
datetime.datetime(2020, 4, 10, 13, 16, 44)
datetime.datetime(2020, 7, 17, 13, 25, 32)
date_time_this_month(before_now=True, after_now=False, tzinfo=None)

Gets a DateTime object for the current month.

Parameters:
  • before_now – include days in current month before today
  • after_now – include days in current month after today
  • tzinfo – timezone, instance of datetime.tzinfo subclass

:example DateTime(‘2012-04-04 11:02:02’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_this_month()
...
datetime.datetime(2020, 10, 10, 8, 25, 17)
datetime.datetime(2020, 10, 11, 5, 0, 2)
datetime.datetime(2020, 10, 1, 23, 35, 1)
datetime.datetime(2020, 10, 7, 6, 49, 47)
datetime.datetime(2020, 10, 13, 9, 50, 20)
date_time_this_year(before_now=True, after_now=False, tzinfo=None)

Gets a DateTime object for the current year.

Parameters:
  • before_now – include days in current year before today
  • after_now – include days in current year after today
  • tzinfo – timezone, instance of datetime.tzinfo subclass

:example DateTime(‘2012-04-04 11:02:02’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.date_time_this_year()
...
datetime.datetime(2020, 5, 29, 14, 44, 47)
datetime.datetime(2020, 6, 12, 8, 0, 40)
datetime.datetime(2020, 1, 16, 17, 20, 30)
datetime.datetime(2020, 4, 10, 13, 16, 44)
datetime.datetime(2020, 7, 17, 13, 25, 32)
day_of_month()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.day_of_month()
...
'20'
'15'
'03'
'15'
'16'
day_of_week()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.day_of_week()
...
'Mercredi'
'Samedi'
'Mardi'
'Samedi'
'Samedi'
future_date(end_date='+30d', tzinfo=None)

Get a Date object based on a random date between 1 day from now and a given date. Accepts date strings that can be recognized by strtotime().

:param end_date Defaults to “+30d” :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘1999-02-02 11:42:52’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.future_date()
...
datetime.date(2020, 11, 1)
datetime.date(2020, 11, 3)
datetime.date(2020, 10, 15)
datetime.date(2020, 10, 26)
datetime.date(2020, 11, 7)
future_datetime(end_date='+30d', tzinfo=None)

Get a DateTime object based on a random date between 1 second form now and a given date. Accepts date strings that can be recognized by strtotime().

:param end_date Defaults to “+30d” :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘1999-02-02 11:42:52’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.future_datetime()
...
datetime.datetime(2020, 11, 1, 7, 39, 48)
datetime.datetime(2020, 11, 3, 0, 49, 18)
datetime.datetime(2020, 10, 15, 13, 59, 16)
datetime.datetime(2020, 10, 26, 4, 28, 48)
datetime.datetime(2020, 11, 7, 10, 29, 54)
iso8601(tzinfo=None, end_datetime=None)
Parameters:tzinfo – timezone, instance of datetime.tzinfo subclass

:example ‘2003-10-21T16:05:52+0000’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.iso8601()
...
'1996-03-20T07:46:39'
'1998-08-15T08:43:22'
'1972-10-03T05:52:26'
'1987-08-15T09:51:25'
'2004-10-16T19:14:57'
month()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.month()
...
'03'
'08'
'10'
'08'
'10'
month_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.month_name()
...
'Mars'
'Août'
'Octobre'
'Août'
'Octobre'
past_date(start_date='-30d', tzinfo=None)

Get a Date object based on a random date between a given date and 1 day ago. Accepts date strings that can be recognized by strtotime().

:param start_date Defaults to “-30d” :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘1999-02-02 11:42:52’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.past_date()
...
datetime.date(2020, 10, 1)
datetime.date(2020, 10, 3)
datetime.date(2020, 9, 14)
datetime.date(2020, 9, 25)
datetime.date(2020, 10, 7)
past_datetime(start_date='-30d', tzinfo=None)

Get a DateTime object based on a random date between a given date and 1 second ago. Accepts date strings that can be recognized by strtotime().

:param start_date Defaults to “-30d” :param tzinfo: timezone, instance of datetime.tzinfo subclass :example DateTime(‘1999-02-02 11:42:52’) :return DateTime

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.past_datetime()
...
datetime.datetime(2020, 10, 2, 7, 39, 47)
datetime.datetime(2020, 10, 4, 0, 49, 17)
datetime.datetime(2020, 9, 15, 13, 59, 15)
datetime.datetime(2020, 9, 26, 4, 28, 47)
datetime.datetime(2020, 10, 8, 10, 29, 53)
pytimezone(*args, **kwargs)

Generate a random timezone (see faker.timezone for any args) and return as a python object usable as a tzinfo to datetime or other fakers.

:example faker.pytimezone() :return dateutil.tz.tz.tzfile

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.pytimezone()
...
tzfile('/usr/share/zoneinfo/Africa/Harare')
tzfile('/usr/share/zoneinfo/Europe/Vienna')
tzfile('/usr/share/zoneinfo/Asia/Pyongyang')
tzfile('/usr/share/zoneinfo/Africa/Johannesburg')
tzfile('/usr/share/zoneinfo/Asia/Muscat')
time(pattern='%H:%M:%S', end_datetime=None)

Get a time string (24h format by default) :param pattern format :example ‘15:02:34’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.time()
...
'07:46:39'
'08:43:22'
'05:52:26'
'09:51:25'
'19:14:57'
time_delta(end_datetime=None)

Get a timedelta object

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.time_delta()
...
datetime.timedelta(0)
datetime.timedelta(0)
datetime.timedelta(0)
datetime.timedelta(0)
datetime.timedelta(0)
time_object(end_datetime=None)

Get a time object :example datetime.time(15, 56, 56, 772876)

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.time_object()
...
datetime.time(7, 46, 39)
datetime.time(8, 43, 22)
datetime.time(5, 52, 26)
datetime.time(9, 51, 25)
datetime.time(19, 14, 57)
time_series(start_date='-30d', end_date='now', precision=None, distrib=None, tzinfo=None)

Returns a generator yielding tuples of (<datetime>, <value>).

The data points will start at start_date, and be at every time interval specified by precision. distrib is a callable that accepts <datetime> and returns <value>

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.time_series()
...
<generator object Provider.time_series at 0x7f86bf9e4750>
<generator object Provider.time_series at 0x7f86bf9e4750>
<generator object Provider.time_series at 0x7f86bf9e4750>
<generator object Provider.time_series at 0x7f86bf9e4750>
<generator object Provider.time_series at 0x7f86bf9e4750>
timezone()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.timezone()
...
'Africa/Harare'
'Europe/Vienna'
'Asia/Pyongyang'
'Africa/Johannesburg'
'Asia/Muscat'
unix_time(end_datetime=None, start_datetime=None)

Get a timestamp between January 1, 1970 and now, unless passed explicit start_datetime or end_datetime values. :example 1061306726

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.unix_time()
...
827307999
903170602
86939546
556019485
1097954097
year()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.year()
...
'1996'
'1998'
'1972'
'1987'
'2004'

faker.providers.internet

class faker.providers.internet.fr_FR.Provider(generator)

Bases: faker.providers.internet.Provider

ascii_company_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_company_email()
...
'vallain@alexandre.com'
'constancelacombe@vasseur.fr'
'martin89@berger.fr'
'yjoubert@maillot.fr'
'sguichard@lombard.fr'
ascii_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_email()
...
'nboulanger@bouygtel.fr'
'ygomez@lacombe.org'
'nguillet@lecoq.fr'
'lorraineboutin@live.com'
'maillotedith@faivre.net'
ascii_free_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_free_email()
...
'vallain@laposte.net'
'adele47@sfr.fr'
'hpicard@hotmail.fr'
'ferrandcamille@club-internet.fr'
'diane24@gmail.com'
ascii_safe_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_safe_email()
...
'vallain@example.org'
'adele47@example.com'
'hpicard@example.org'
'ferrandcamille@example.com'
'diane24@example.org'
company_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_email()
...
'vallain@alexandre.com'
'constancelacombe@vasseur.fr'
'martin89@berger.fr'
'yjoubert@maillot.fr'
'sguichard@lombard.fr'
dga(year=None, month=None, day=None, tld=None, length=None)

Generates a domain name by given date https://en.wikipedia.org/wiki/Domain_generation_algorithm

Return type:str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.dga()
...
'hxqvaffcmfsccynscisxeajjagjahtnfcm.com'
'cnrhkwsauxvmqcengcluh.fr'
'iiulfpgbvqcdaeh.fr'
'dgunygtn.com'
'uqniukqjckmjabijnuqholpsjayatffafysbsyaaytuquhbpmpviajxnaro.fr'
domain_name(levels=1)

Produce an Internet domain name with the specified number of subdomain levels.

>>> domain_name()
nichols-phillips.com
>>> domain_name(2)
williamson-hopkins.jackson.com
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.domain_name()
...
'allain.net'
'alexandre.com'
'pineau.com'
'guillet.com'
'lecoq.fr'
domain_word()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.domain_word()
...
'allain'
'renaud'
'gomez'
'pineau'
'maury'
email(domain=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.email()
...
'nboulanger@bouygtel.fr'
'ygomez@lacombe.org'
'nguillet@lecoq.fr'
'lorraineboutin@live.com'
'maillotedith@faivre.net'
free_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.free_email()
...
'vallain@laposte.net'
'adele47@sfr.fr'
'hpicard@hotmail.fr'
'ferrandcamille@club-internet.fr'
'diane24@gmail.com'
free_email_domain()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.free_email_domain()
...
'tele2.fr'
'ifrance.com'
'orange.fr'
'laposte.net'
'bouygtel.fr'
hostname(levels=1)

Produce a hostname with specified number of subdomain levels.

>>> hostname()
db-01.nichols-phillips.com
>>> hostname(0)
laptop-56
>>> hostname(2)
web-12.williamson-hopkins.jackson.com
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.hostname()
...
'email-60.alexandre.com'
'laptop-93.vasseur.fr'
'lt-48.couturier.fr'
'desktop-15.chevalier.fr'
'web-77.martins.fr'
http_method()

Returns random HTTP method https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

Return type:str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.http_method()
...
'TRACE'
'OPTIONS'
'PUT'
'POST'
'DELETE'
image_url(width=None, height=None)

Returns URL to placeholder image Example: http://placehold.it/640x480

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.image_url()
...
'https://www.lorempixel.com/788/861'
'https://placeimg.com/995/829/any'
'https://dummyimage.com/621x976'
'https://dummyimage.com/447x285'
'https://placeimg.com/194/513/any'
ipv4(network=False, address_class=None, private=None)

Returns a random IPv4 address or network with a valid CIDR.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
  • private – Public or private
Returns:

IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4()
...
'171.174.170.81'
'95.25.112.121'
'51.105.121.194'
'195.110.164.126'
'141.250.247.54'
ipv4_network_class()

Returns a IPv4 network class ‘a’, ‘b’ or ‘c’.

Returns:IPv4 network class
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_network_class()
...
'c'
'c'
'b'
'a'
'b'
ipv4_private(network=False, address_class=None)

Returns a private IPv4.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
Returns:

Private IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_private()
...
'192.168.215.85'
'10.248.203.131'
'172.25.180.188'
'192.168.111.215'
'172.19.8.218'
ipv4_public(network=False, address_class=None)

Returns a public IPv4 excluding private blocks.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
Returns:

Public IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_public()
...
'195.174.170.81'
'15.227.46.15'
'164.218.94.112'
'214.253.123.155'
'134.17.181.9'
ipv6(network=False)

Produce a random IPv6 address or network with a valid CIDR

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv6()
...
'e3e7:682:c209:4cac:629f:6fbf:d82c:7cd'
'f728:b4fa:4248:5e3a:a5d:2f35:6baa:9455'
'eb11:67b3:67a9:c378:7c65:c1e6:82e2:e662'
'f7c1:bd87:4da5:e709:d471:3d61:c8a7:639'
'e443:df78:9558:867f:5ba9:1fb0:7a02:4204'
mac_address()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.mac_address()
...
'c5:d7:14:84:f8:cf'
'9b:f4:b7:6f:47:90'
'47:30:80:4b:9e:32'
'25:a9:f1:33:b5:de'
'a1:68:f4:e2:85:1f'
port_number(is_system=False, is_user=False, is_dynamic=False)

Returns a network port number https://tools.ietf.org/html/rfc6335

Parameters:
  • is_system – System or well-known ports
  • is_user – User or registered ports
  • is_dynamic – Dynamic / private / ephemeral ports
Return type:

int

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.port_number()
...
50494
55125
5306
33936
63691
safe_domain_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_domain_name()
...
'example.net'
'example.net'
'example.com'
'example.org'
'example.com'
safe_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_email()
...
'vallain@example.org'
'adele47@example.com'
'hpicard@example.org'
'ferrandcamille@example.com'
'diane24@example.org'
slug(value=None)

Django algorithm

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.slug()
...
'sens-rayon-geste'
'longtemps-francois'
'embrasser-jambe'
'te-ligne-dresser'
'ouvrage-dessiner'
tld()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.tld()
...
'fr'
'fr'
'net'
'com'
'org'
uri()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri()
...
'https://www.alexandre.com/category/list/main.html'
'http://delattre.fr/'
'http://www.chartier.org/tag/tags/privacy/'
'http://lombard.fr/blog/posts/login.php'
'http://girard.fr/wp-content/author.jsp'
uri_extension()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_extension()
...
'.jsp'
'.php'
'.htm'
'.html'
'.htm'
uri_page()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_page()
...
'terms'
'about'
'homepage'
'main'
'register'
uri_path(deep=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_path()
...
'posts/tag'
'explore/tag'
'explore/category'
'categories'
'main/main'
url(schemes=None)
Parameters:schemes – a list of strings to use as schemes, one will chosen randomly.

If None, it will generate http and https urls. Passing an empty list will result in schemeless url generation like “://domain.com”.

Returns:a random url string.
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.url()
...
'https://renaud.fr/'
'http://www.lacombe.org/'
'http://pierre.fr/'
'https://berger.fr/'
'https://chevalier.fr/'
user_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.user_name()
...
'vallain'
'brigittegomes'
'ygomez'
'philippine82'
'manonguillet'

faker.providers.job

class faker.providers.job.fr_FR.Provider(generator)

Bases: faker.providers.job.Provider

job()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.job()
...
'secrétaire juridique'
'prototypiste en matériaux souples'
'garde (chasse, pêche, littoral, rivière, parcs nationaux)'
'conducteur de machines agricoles'
'ingénieur en acoustique'

faker.providers.lorem

class faker.providers.lorem.fr_FR.Provider(generator)

Bases: faker.providers.lorem.Provider

Implement lorem provider for fr_FR locale.

Word list is drawn from the French Education Ministry’s website Eduscol. The “lexical frequency list” can be found in the source(s) below.

Sources:

paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)

Generate a paragraph.

The nb_sentences argument controls how many sentences the paragraph will contain, and setting variable_nb_sentences to False will generate the exact amount, while setting it to True (default) will generate a random amount (+/-40%, minimum of 1) using randomize_nb_elements().

Under the hood, sentences() is used to generate the sentences, so the argument ext_word_list works in the same way here as it would in that method.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.paragraph(nb_sentences=5)
...
'Appartenir verre jour terrible sauter verser. Nécessaire te ligne dresser rapport ouvrage. Voile marchand près obliger chaud. Prouver surtout police interroger. Événement engager passé courir.'
'Heure magnifique attirer terrible terrain bête seigneur. Abandonner le sol dernier entrer sombre continuer monde. Revenir chaque meilleur beauté votre. Vue jusque élever échapper céder escalier toile. Véritable obtenir noir histoire nouveau. Enlever depuis connaissance sable anglais visible.'
'Autant poésie certain cher apparaître avis précieux. Police secours mais magnifique demain cruel poète. Nation huit petit voyager terre ressembler. Entrée camarade noir espoir.'
'Afin De doigt près faute commencer. Rose bon chat pouvoir après mourir. Observer autrement ceci consulter sauter carte beauté. Année aider vendre conscience.'
'Creuser réussir traiter ailleurs grâce bon difficile. Autre élever haine attendre instant. Bon voir couler exister public secret terrible comme.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.paragraph(nb_sentences=5, variable_nb_sentences=False)
...
'Rayon geste dieu longtemps françois répéter. Verser existence suffire dame chance. Rapport ouvrage dessiner témoin. Tâche encore prouver surtout police interroger bon habitant. Passé courir métier heure magnifique attirer terrible terrain.'
"Problème fort saison plaindre. Or sans espace. Prendre attitude terre d'autres revenir chaque. Honte avis ensemble livrer toute brusquement mériter. Menacer rompre matin véritable."
'Menacer durant beauté retour enlever depuis connaissance sable. Or personne jambe. Poésie certain cher apparaître. Surprendre toit mauvais fois. Dos rocher serrer supérieur nombre tu nation.'
'Larme passer précipiter visite exiger entrée camarade. Parler sentier dernier public car dans rester escalier. Bon chat pouvoir après. Particulier traiter observer autrement ceci consulter sauter. Foi fatigue visage année.'
'Corde vide printemps. Creuser réussir traiter ailleurs grâce bon difficile. Autre élever haine attendre instant. Bon voir couler exister public secret terrible comme. Vers assister plus sentiment etc.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.paragraph(nb_sentences=5, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
'Abc jkl def jkl jkl jkl. Ghi jkl ghi def jkl ghi. Jkl ghi ghi ghi abc. Ghi jkl ghi def. Def def ghi abc.'
'Def ghi abc jkl jkl abc jkl. Abc def jkl abc def jkl abc ghi. Jkl abc ghi abc jkl. Jkl def def def abc def jkl. Jkl ghi ghi def ghi. Def abc abc jkl abc jkl.'
'Abc ghi abc abc abc abc ghi. Ghi jkl ghi ghi abc abc ghi. Ghi def ghi jkl jkl jkl. Def abc ghi def.'
'Abc def ghi def abc. Jkl abc abc ghi abc ghi. Ghi abc abc abc jkl abc abc. Abc abc jkl abc.'
'Abc jkl jkl abc def abc def. Abc def def abc def. Abc jkl abc def ghi jkl jkl abc.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.paragraph(nb_sentences=5, variable_nb_sentences=False, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
'Jkl def def ghi def jkl. Jkl def jkl abc abc. Jkl ghi def jkl. Jkl def ghi jkl ghi def abc def. Ghi abc ghi def ghi abc jkl jkl.'
'Ghi def jkl ghi. Ghi jkl def. Ghi abc jkl abc jkl abc. Def abc def ghi jkl abc ghi. Ghi jkl ghi jkl.'
'Ghi def abc jkl def abc abc jkl. Ghi ghi def. Ghi abc abc abc. Jkl jkl ghi def. Def jkl jkl jkl ghi jkl ghi.'
'Def ghi ghi jkl def def abc. Ghi jkl abc ghi abc abc jkl def. Abc abc ghi abc. Ghi jkl ghi abc abc abc jkl. Def def jkl abc.'
'Abc jkl ghi. Abc jkl jkl abc def abc def. Abc def def abc def. Abc jkl abc def ghi jkl jkl abc. Jkl abc ghi jkl def.'
paragraphs(nb=3, ext_word_list=None)

Generate a list of paragraphs.

This method uses paragraph() under the hood to generate paragraphs, and the nb argument controls exactly how many sentences the list will contain. The ext_word_list argument works in exactly the same way as well.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.paragraphs(nb=5)
...
['Appartenir verre jour terrible sauter verser. Nécessaire te ligne dresser rapport ouvrage. Voile marchand près obliger chaud.', 'Surtout police interroger bon. Engager passé courir métier heure magnifique.', 'Terrain bête seigneur presser réponse paraître or. Dernier entrer sombre continuer monde demi.', 'Honte avis ensemble livrer toute brusquement mériter. Menacer rompre matin véritable.', 'Noir histoire nouveau fin moyen écarter contenir. Anglais visible difficile autant. Sortir toit semaine surprendre. Police secours mais magnifique demain cruel poète.']
['Dos larme passer précipiter visite exiger entrée camarade. Parler sentier dernier public car dans rester escalier. Bon chat pouvoir après.', 'Observer autrement ceci consulter sauter carte beauté. Année aider vendre conscience. Jeter propos attendre poète.', 'Pain second auteur autre élever haine. Lieu apparence bon voir. Difficile tandis que intérêt tache montrer.', 'Résistance cinq classe malheur. Nouveau hésiter complet intérieur.', 'Songer terreur peine flamme personne chiffre posséder. Que esprit après douze dépasser un étroit. Plein nombre suite si cerveau.']
['Quoi santé avoir nourrir précéder clair. Parvenir feu sonner monsieur garde.', 'Genou peur arbre hiver dieu ciel malade. Te occuper à apparaître entretenir secours armer. Construire yeux partager bande promener voilà.', 'Engager croiser principe abri saint maladie. Contenter oh coucher éloigner. Bois si forêt avoir.', 'Réunir campagne devenir perdre rouge pauvre camarade. Doute agir appartenir point.', 'Tromper transformer témoin appeler race préférer. Prêter tache passé fauteuil marquer couvrir noir. Champ doigt essuyer.']
['Est pain appel coin. Eaux force mener éclater jaune départ arme condamner. Propre éloigner sec également brûler minute jeune.', "Ceci campagne lettre apercevoir espérer porte. Théâtre parcourir fer vieux. Aujourd'Hui barbe raconter attendre.", 'Fond lutte horizon juger.', 'Goût fait voisin digne remplir. Contraire camarade sac seulement alors maître. Caresser former coûter appeler trou. Papier bout importance expression sang.', 'Vite chemin frapper poids soudain lendemain terre entourer. Vue partie songer meilleur tout accuser près.']
['Animal chemin deviner répondre semaine nécessaire. Auprès barbe soleil apparence debout appartenir affirmer. Époque clair chemise personnage vêtement lire table.', 'Mouvement poésie révolution. Voix quinze tantôt court mari nuit saluer jeunesse. Offrir déjà soin ah sous quatre.', 'Montrer escalier le dire salle relever fils. Attirer passer centre dur sauter aspect.', 'Général large société principe plein cheveu voilà.', 'Or finir arbre. Rencontre ah nuage cesse entre précipiter peine. Fille remplacer juste soulever ombre.']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.paragraphs(nb=5, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
['Abc jkl def jkl jkl jkl. Ghi jkl ghi def jkl ghi. Jkl ghi ghi ghi abc.', 'Jkl ghi def abc. Def ghi abc ghi def ghi.', 'Jkl abc jkl ghi jkl ghi ghi. Abc def jkl abc ghi abc.', 'Def abc def ghi jkl abc ghi. Ghi jkl ghi jkl.', 'Ghi def ghi def ghi def abc. Abc jkl def abc. Jkl jkl jkl jkl. Ghi jkl ghi ghi abc abc ghi.']
['Def def ghi ghi jkl def def abc. Ghi jkl abc ghi abc abc jkl def. Abc abc ghi abc.', 'Ghi abc abc abc jkl abc abc. Abc abc jkl abc. Def ghi abc ghi.', 'Ghi jkl abc abc def def. Ghi abc abc jkl. Def jkl def jkl ghi.', 'Jkl abc abc ghi. Ghi def abc def.', 'Jkl jkl ghi def ghi abc ghi. Ghi def abc def abc jkl def. Ghi ghi jkl jkl abc.']
['Ghi jkl abc ghi ghi abc. Ghi def jkl ghi def.', 'Def ghi abc def def abc ghi. Jkl ghi abc abc def jkl abc. Abc jkl ghi abc ghi jkl.', 'Def abc ghi abc jkl ghi. Abc ghi abc def. Abc jkl def abc.', 'Jkl abc def ghi jkl ghi abc. Def abc abc ghi.', 'Jkl jkl jkl abc ghi ghi. Ghi jkl ghi def ghi abc ghi. Abc def def.']
['Def ghi abc abc. Def def ghi def def abc abc abc. Ghi def jkl def abc ghi def.', 'Abc abc def abc def ghi. Jkl ghi def jkl. Abc abc ghi abc.', 'Def ghi def def.', 'Def def jkl def jkl. Abc abc jkl jkl abc ghi. Abc def abc abc jkl. Ghi abc def def jkl.', 'Jkl abc def ghi jkl def jkl def. Jkl ghi jkl ghi jkl abc ghi.']
['Abc abc def jkl jkl ghi. Abc abc jkl abc abc abc abc. Def abc abc ghi jkl ghi jkl.', 'Ghi ghi jkl. Jkl ghi jkl abc ghi ghi jkl def. Ghi abc jkl abc jkl ghi.', 'Ghi def def def jkl jkl def. Abc ghi abc def jkl abc.', 'Def def jkl ghi ghi abc jkl.', 'Ghi def abc. Jkl abc ghi abc def ghi ghi. Def jkl def jkl ghi.']
sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)

Generate a sentence.

The nb_words argument controls how many words the sentence will contain, and setting variable_nb_words to False will generate the exact amount, while setting it to True (default) will generate a random amount (+/-40%, minimum of 1) using randomize_nb_elements().

Under the hood, words() is used to generate the words, so the argument ext_word_list works in the same way here as it would in that method.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentence(nb_words=10)
...
'Rayon geste dieu longtemps françois répéter embrasser jambe nécessaire te.'
'Chance changement bien retrouver voile marchand près obliger chaud blond autrefois servir.'
'Interroger bon habitant oncle tendre vers jardin soir difficile revoir.'
'Terrain bête seigneur presser réponse paraître or sans espace prouver prendre attitude terre.'
'Demi verser revenir honte avis ensemble livrer toute.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentence(nb_words=10, variable_nb_words=False)
...
'Sens rayon geste dieu longtemps françois répéter embrasser jambe nécessaire.'
'Te ligne dresser rapport ouvrage dessiner témoin visite robe tâche.'
'Encore prouver surtout police interroger bon habitant oncle tendre vers.'
'Jardin soir difficile revoir mensonge adresser problème fort saison plaindre.'
'Abandonner le sol dernier entrer sombre continuer monde demi verser.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentence(nb_words=10, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
'Jkl def def ghi def jkl def def ghi jkl.'
'Abc abc abc jkl jkl ghi ghi ghi abc abc abc jkl.'
'Def abc def ghi jkl jkl def jkl def jkl.'
'Jkl abc jkl ghi jkl ghi ghi jkl def ghi ghi abc jkl.'
'Abc jkl jkl def abc def ghi jkl.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentence(nb_words=10, variable_nb_words=True, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
'Jkl def def ghi def jkl def def ghi jkl.'
'Abc abc abc jkl jkl ghi ghi ghi abc abc abc jkl.'
'Def abc def ghi jkl jkl def jkl def jkl.'
'Jkl abc jkl ghi jkl ghi ghi jkl def ghi ghi abc jkl.'
'Abc jkl jkl def abc def ghi jkl.'
sentences(nb=3, ext_word_list=None)

Generate a list of sentences.

This method uses sentence() under the hood to generate sentences, and the nb argument controls exactly how many sentences the list will contain. The ext_word_list argument works in exactly the same way as well.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentences()
...
['Rayon geste dieu longtemps françois répéter.', 'Verser existence suffire dame chance.', 'Rapport ouvrage dessiner témoin.']
['Tâche encore prouver surtout police interroger bon habitant.', 'Passé courir métier heure magnifique attirer terrible terrain.', 'Problème fort saison plaindre.']
['Or sans espace.', "Prendre attitude terre d'autres revenir chaque.", 'Honte avis ensemble livrer toute brusquement mériter.']
['Menacer rompre matin véritable.', 'Menacer durant beauté retour enlever depuis connaissance sable.', 'Or personne jambe.']
['Poésie certain cher apparaître.', 'Surprendre toit mauvais fois.', 'Dos rocher serrer supérieur nombre tu nation.']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentences(nb=5)
...
['Rayon geste dieu longtemps françois répéter.', 'Verser existence suffire dame chance.', 'Rapport ouvrage dessiner témoin.', 'Tâche encore prouver surtout police interroger bon habitant.', 'Passé courir métier heure magnifique attirer terrible terrain.']
['Problème fort saison plaindre.', 'Or sans espace.', "Prendre attitude terre d'autres revenir chaque.", 'Honte avis ensemble livrer toute brusquement mériter.', 'Menacer rompre matin véritable.']
['Menacer durant beauté retour enlever depuis connaissance sable.', 'Or personne jambe.', 'Poésie certain cher apparaître.', 'Surprendre toit mauvais fois.', 'Dos rocher serrer supérieur nombre tu nation.']
['Larme passer précipiter visite exiger entrée camarade.', 'Parler sentier dernier public car dans rester escalier.', 'Bon chat pouvoir après.', 'Particulier traiter observer autrement ceci consulter sauter.', 'Foi fatigue visage année.']
['Corde vide printemps.', 'Creuser réussir traiter ailleurs grâce bon difficile.', 'Autre élever haine attendre instant.', 'Bon voir couler exister public secret terrible comme.', 'Vers assister plus sentiment etc.']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.sentences(nb=5, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
['Jkl def def ghi def jkl.', 'Jkl def jkl abc abc.', 'Jkl ghi def jkl.', 'Jkl def ghi jkl ghi def abc def.', 'Ghi abc ghi def ghi abc jkl jkl.']
['Ghi def jkl ghi.', 'Ghi jkl def.', 'Ghi abc jkl abc jkl abc.', 'Def abc def ghi jkl abc ghi.', 'Ghi jkl ghi jkl.']
['Ghi def abc jkl def abc abc jkl.', 'Ghi ghi def.', 'Ghi abc abc abc.', 'Jkl jkl ghi def.', 'Def jkl jkl jkl ghi jkl ghi.']
['Def ghi ghi jkl def def abc.', 'Ghi jkl abc ghi abc abc jkl def.', 'Abc abc ghi abc.', 'Ghi jkl ghi abc abc abc jkl.', 'Def def jkl abc.']
['Abc jkl ghi.', 'Abc jkl jkl abc def abc def.', 'Abc def def abc def.', 'Abc jkl abc def ghi jkl jkl abc.', 'Jkl abc ghi jkl def.']
text(max_nb_chars=200, ext_word_list=None)

Generate a text string.

The max_nb_chars argument controls the approximate number of characters the text string will have, and depending on its value, this method may use either words(), sentences(), or paragraphs() for text generation. The ext_word_list argument works in exactly the same way it would in any of those methods.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.text(max_nb_chars=20)
...
'Sens rayon geste.'
'Longtemps françois.'
'Embrasser jambe.'
'Te ligne dresser.'
'Ouvrage dessiner.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.text(max_nb_chars=80)
...
'Rayon geste dieu longtemps françois répéter.'
'Rapport ouvrage dessiner témoin.'
'Passé courir métier heure magnifique attirer terrible terrain.'
"Or sans espace. Prendre attitude terre d'autres revenir chaque."
'Menacer rompre matin véritable.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.text(max_nb_chars=160)
...
'Appartenir verre jour terrible sauter verser. Nécessaire te ligne dresser rapport ouvrage. Voile marchand près obliger chaud.'
'Terrain bête seigneur presser réponse paraître or. Dernier entrer sombre continuer monde demi.'
'Dos larme passer précipiter visite exiger entrée camarade. Parler sentier dernier public car dans rester escalier. Bon chat pouvoir après.'
'Pain second auteur autre élever haine. Lieu apparence bon voir. Difficile tandis que intérêt tache montrer.'
'Songer terreur peine flamme personne chiffre posséder. Que esprit après douze dépasser un étroit. Plein nombre suite si cerveau.'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.text(ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
'Abc jkl def jkl jkl jkl. Ghi jkl ghi def jkl ghi. Jkl ghi ghi ghi abc.\nJkl ghi def abc. Def ghi abc ghi def ghi.\nJkl abc jkl ghi jkl ghi ghi. Abc def jkl abc ghi abc.'
'Ghi def ghi def ghi def abc. Abc jkl def abc. Jkl jkl jkl jkl. Ghi jkl ghi ghi abc abc ghi.\nDef def ghi ghi jkl def def abc. Ghi jkl abc ghi abc abc jkl def. Abc abc ghi abc.'
'Ghi jkl abc abc def def. Ghi abc abc jkl. Def jkl def jkl ghi.\nJkl abc abc ghi. Ghi def abc def.\nJkl jkl ghi def ghi abc ghi. Ghi def abc def abc jkl def. Ghi ghi jkl jkl abc.'
'Def ghi abc def def abc ghi. Jkl ghi abc abc def jkl abc. Abc jkl ghi abc ghi jkl.\nDef abc ghi abc jkl ghi. Abc ghi abc def. Abc jkl def abc.\nJkl abc def ghi jkl ghi abc. Def abc abc ghi.'
'Def ghi abc abc. Def def ghi def def abc abc abc. Ghi def jkl def abc ghi def.\nAbc abc def abc def ghi. Jkl ghi def jkl. Abc abc ghi abc.\nDef ghi def def.'
texts(nb_texts=3, max_nb_chars=200, ext_word_list=None)

Generate a list of text strings.

The nb_texts argument controls how many text strings the list will contain, and this method uses text() under the hood for text generation, so the two remaining arguments, max_nb_chars and ext_word_list will work in exactly the same way as well.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.texts(nb_texts=5)
...
['Appartenir verre jour terrible sauter verser. Nécessaire te ligne dresser rapport ouvrage. Voile marchand près obliger chaud.', 'Terrain bête seigneur presser réponse paraître or. Dernier entrer sombre continuer monde demi.\nHonte avis ensemble livrer toute brusquement mériter. Menacer rompre matin véritable.', 'Dos larme passer précipiter visite exiger entrée camarade. Parler sentier dernier public car dans rester escalier. Bon chat pouvoir après.', 'Pain second auteur autre élever haine. Lieu apparence bon voir. Difficile tandis que intérêt tache montrer.\nRésistance cinq classe malheur. Nouveau hésiter complet intérieur.', 'Quoi santé avoir nourrir précéder clair. Parvenir feu sonner monsieur garde.']
['Engager croiser principe abri saint maladie. Contenter oh coucher éloigner. Bois si forêt avoir.\nRéunir campagne devenir perdre rouge pauvre camarade. Doute agir appartenir point.', 'Est pain appel coin. Eaux force mener éclater jaune départ arme condamner. Propre éloigner sec également brûler minute jeune.', 'Fond lutte horizon juger.\nGoût fait voisin digne remplir. Contraire camarade sac seulement alors maître. Caresser former coûter appeler trou. Papier bout importance expression sang.', 'Animal chemin deviner répondre semaine nécessaire. Auprès barbe soleil apparence debout appartenir affirmer. Époque clair chemise personnage vêtement lire table.', 'Montrer escalier le dire salle relever fils. Attirer passer centre dur sauter aspect.\nGénéral large société principe plein cheveu voilà.']
['Part essuyer ceci pointe palais réserver cent tendre. Terre sommet point robe lutte. Apercevoir folie faute contenter exemple.', 'Boire remarquer puissance amour. Groupe général lequel soi entrée détail étude. Expérience amener étouffer accuser.\nAutorité suivre craindre cours pleurer transformer. Quitter éclater poser toute.', 'Partir connaître volonté bonheur naturel chute sur. Revoir enfoncer dernier rappeler.\nGens après cerveau aide avec autrefois. Également général tôt nommer effort éviter.', 'Oeil chiffre premier tour conseil glisser complet. Étage maintenir examiner parole bas rappeler écouter.', 'Sueur presque hier qui événement somme plein. Nous animal respirer empêcher établir. Silencieux sueur reconnaître aussi simplement droit chacun.']
['Eh question arrivée paix ajouter intérieur. Sentir violence porte.\nAccompagner appel pain yeux son précieux. Changer mot continuer habitant prince.', 'Anglais partager somme face quelque plutôt.\nEffet bas soleil ramasser rejoindre source fumer art. Pitié peine mémoire puissance gros il devant.', "Devant main content avis solitude éternel. Dessus propre élever l'un fin. Éteindre prêter appuyer tracer autre imposer projet.\nViolence imposer caractère avouer blond réfléchir.", "Prêt remplir lourd impression particulier. Dégager caresser répéter blond puis. D'Abord souffrir vrai accompagner mari.", 'Faire partie roi sortir choix comprendre. Chair court terme lequel. Demain cerveau déjà fin oh.\nLeur terreur où aller nouveau jusque en valoir. Penser peu léger un jeune enfant sept.']
['Étendre clef âgé mourir assurer. Cheveu aile pareil ainsi appuyer début perdre auprès.\nVie gloire suite curieux habitude existence. Peine proposer reposer front.', 'Front flot absence champ. Seigneur précieux aventure demeurer sans composer troisième. Quel secret miser printemps.', 'Relever morceau dire. Image produire français. Arrêter donner voyage deux poids premier tourner.\nLumière fine science dessiner campagne vision revoir. Nez problème point étudier terrain.', 'Montagne hésiter état accrocher.\nQuinze construire mensonge goutte tu. Malheur attitude passage nation. Part mêler fin habiter endroit admettre rencontrer.', 'Exposer tu mode fumer oreille rêver. Surveiller exprimer vision cinq corde. Pareil lequel public désirer suffire dormir.']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.texts(nb_texts=5, max_nb_chars=50)
...
['Rayon geste dieu longtemps françois répéter.', 'Rapport ouvrage dessiner témoin.', 'Problème fort saison plaindre. Or sans espace.', 'Menacer rompre matin véritable.', 'Or personne jambe.']
['Surprendre toit mauvais fois.', 'Bon chat pouvoir après.', 'Foi fatigue visage année. Corde vide printemps.', 'Autre élever haine attendre instant.', 'Vers assister plus sentiment etc.']
['Que esprit après douze dépasser un étroit.', 'Fixer garde pendre abattre contre.', 'Franc premier genou. Colon au préférer.', 'Armer saint vieux garder mener vent vingt.', 'Adresser rappeler visage pluie or.']
['Jamais toit pareil aider.', 'Doute agir appartenir point.', 'Prêter tache passé fauteuil marquer couvrir noir.', 'Prison est pain appel coin vision.', 'En signe propre.']
['Puissant sujet théâtre parcourir fer vieux.', 'Bleu militaire eaux.', 'Groupe exister au société.', 'Lequel devenir passer vrai.', 'Voisin vite chemin frapper.']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.texts(nb_texts=5, max_nb_chars=50, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
['Jkl def def ghi def jkl. Jkl def jkl abc abc.', 'Jkl def ghi jkl ghi def abc def.', 'Ghi def jkl ghi. Ghi jkl def.', 'Def abc def ghi jkl abc ghi. Ghi jkl ghi jkl.', 'Ghi ghi def. Ghi abc abc abc. Jkl jkl ghi def.']
['Def ghi ghi jkl def def abc.', 'Abc abc ghi abc. Ghi jkl ghi abc abc abc jkl.', 'Abc jkl ghi. Abc jkl jkl abc def abc def.', 'Abc jkl abc def ghi jkl jkl abc.', 'Abc jkl ghi abc ghi. Jkl jkl ghi def ghi abc ghi.']
['Ghi ghi jkl jkl abc. Def def ghi abc abc.', 'Def ghi def. Abc abc ghi.', 'Abc jkl jkl def ghi jkl jkl. Jkl def ghi def.', 'Abc ghi jkl def jkl. Def jkl ghi abc.', 'Def abc abc ghi. Def def ghi jkl jkl jkl ghi.']
['Abc def def. Ghi def ghi abc abc jkl.', 'Def jkl ghi. Def def def abc jkl.', 'Ghi jkl jkl ghi def jkl. Abc abc ghi abc.', 'Jkl ghi abc abc abc jkl ghi. Def def abc jkl.', 'Def def ghi jkl. Ghi abc def def jkl.']
['Jkl def jkl def def def. Ghi jkl abc ghi ghi.', 'Def ghi def jkl ghi jkl abc abc.', 'Jkl ghi jkl ghi ghi ghi jkl.', 'Ghi abc jkl abc jkl ghi. Ghi def abc jkl jkl.', 'Def jkl abc abc def. Jkl ghi abc ghi jkl def abc.']
word(ext_word_list=None)

Generate a word.

This method uses words() under the hood with the nb argument set to 1 to generate the result.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.word()
...
'sens'
'rayon'
'geste'
'dieu'
'longtemps'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.word(ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
'jkl'
'jkl'
'def'
'def'
'ghi'
words(nb=3, ext_word_list=None, unique=False)

Generate a list of words.

The nb argument controls the number of words in the resulting list, and if ext_word_list is provided, words from that list will be used instead of those from the locale provider’s built-in word list.

If unique is True, this method will return a list containing unique words. Under the hood, random_sample() will be used for sampling without replacement. If unique is False, random_choices() is used instead, and the list returned may contain duplicates.

Warning

Depending on the length of a locale provider’s built-in word list or on the length of ext_word_list if provided, a large nb can exhaust said lists if unique is True, raising an exception.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.words()
...
['sens', 'rayon', 'geste']
['dieu', 'longtemps', 'françois']
['répéter', 'embrasser', 'jambe']
['nécessaire', 'te', 'ligne']
['dresser', 'rapport', 'ouvrage']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.words(nb=5)
...
['sens', 'rayon', 'geste', 'dieu', 'longtemps']
['françois', 'répéter', 'embrasser', 'jambe', 'nécessaire']
['te', 'ligne', 'dresser', 'rapport', 'ouvrage']
['dessiner', 'témoin', 'visite', 'robe', 'tâche']
['encore', 'prouver', 'surtout', 'police', 'interroger']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.words(nb=5, ext_word_list=['abc', 'def', 'ghi', 'jkl'])
...
['jkl', 'jkl', 'def', 'def', 'ghi']
['def', 'jkl', 'def', 'def', 'ghi']
['jkl', 'ghi', 'def', 'jkl', 'ghi']
['def', 'jkl', 'jkl', 'jkl', 'jkl']
['def', 'ghi', 'jkl', 'ghi', 'def']
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.words(nb=4, ext_word_list=['abc', 'def', 'ghi', 'jkl'], unique=True)
...
['jkl', 'def', 'abc', 'ghi']
['jkl', 'def', 'ghi', 'abc']
['ghi', 'jkl', 'abc', 'def']
['ghi', 'abc', 'jkl', 'def']
['def', 'jkl', 'abc', 'ghi']

faker.providers.person

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

Bases: faker.providers.person.Provider

first_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name()
...
'Michelle'
'Manon'
'Agnès'
'Matthieu'
'Brigitte'
first_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Philippine'
'Nath'
'Gabrielle'
'Christiane'
'Julie'
first_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Stéphane'
'Raymond'
'William'
'Emmanuel'
'Jérôme'
first_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Michelle'
'Manon'
'Agnès'
'Matthieu'
'Brigitte'
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()
...
'Delmas'
'Allain'
'Boulanger'
'Renaud'
'Alexandre'
last_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Delmas'
'Allain'
'Boulanger'
'Renaud'
'Alexandre'
last_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Delmas'
'Allain'
'Boulanger'
'Renaud'
'Alexandre'
last_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Delmas'
'Allain'
'Boulanger'
'Renaud'
'Alexandre'
name()

:example ‘John Doe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Nath de la Renaud'
'Françoise Raymond'
'Isaac Le Lacombe'
'Claudine Maury'
'Christelle Lacombe'
name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Nath-Gabrielle Renaud'
'Françoise Raymond'
'Jacqueline Pineau'
'Josette Vasseur du Guillet'
'Suzanne Lecoq'
name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Raymond-William Renaud'
'Guillaume Raymond'
'Isaac Pineau'
'Jérôme Vasseur du Guillet'
'Thomas Lecoq'
name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Nath de la Renaud'
'Françoise Raymond'
'Isaac Le Lacombe'
'Claudine Maury'
'Christelle Lacombe'
prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
'du'
'du'
'de la'
'de la'
'Le'
prefix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
'du'
'du'
'de la'
'de la'
'Le'
prefix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
'du'
'du'
'de la'
'de la'
'Le'
prefix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
'du'
'du'
'de la'
'de la'
'Le'
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.fr_FR.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()
...
'03 60 48 76 47'
'+33 3 38 24 21 94'
'08 08 92 41 15'
'+33 8 01 56 59 38'
'+33 8 08 40 80 16'

faker.providers.ssn

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

Bases: faker.providers.ssn.Provider

A Faker provider for the French VAT IDs

ssn()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ssn()
...
'604-87-6475'
'382-42-1948'
'924-11-5781'
'593-87-7840'
'801-60-9753'
vat_id()

http://ec.europa.eu/taxation_customs/vies/faq.html#item_11 :return: a random French VAT ID

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.vat_id()
...
'FR6U 048764759'
'FRqL 242194892'
'FR5y 781565938'
'FR4m 080160975'
'FR13 933287115'