Language nl_NL¶
faker.providers.address
¶
fake.latitude()
# Decimal('20.4946885')
fake.street_name()
# u'Kairing'
fake.address()
# u'Michaelpad 9\n7244 WL\nBest'
fake.street_address()
# u'Leonsingel 09'
fake.postcode()
# u'1593AZ'
fake.longitude()
# Decimal('35.793983')
fake.country()
# u'Roemeni\xeb'
fake.province()
# u'Groningen'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('30.056231')
fake.street_suffix()
# u'laan'
fake.city_suffix()
# u'Ville'
fake.building_number()
# u'9'
fake.country_code()
# u'SB'
fake.city()
# u'Vegelinsoord'
faker.providers.automotive
¶
fake.license_plate()
# u'417-AHK1AY 379'
faker.providers.barcode
¶
fake.ean(length=13)
# u'4896929903968'
fake.ean13()
# u'1648819475054'
fake.ean8()
# u'92547858'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(62,128,208)'
fake.color_name()
# u'PaleVioletRed'
fake.rgb_color()
# u'166,241,244'
fake.safe_hex_color()
# u'#aa0000'
fake.safe_color_name()
# u'teal'
fake.hex_color()
# u'#f8a048'
faker.providers.company
¶
fake.company()
# u'Sire, Cant and Hakker'
fake.company_suffix()
# u'Ltd'
fake.catch_phrase()
# u'Optimized foreground emulation'
fake.bs()
# u'revolutionize seamless methodologies'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'876'
fake.credit_card_provider(card_type=None)
# u'JCB 15 digit'
fake.credit_card_full(card_type=None)
# u'Mastercard\nBenjamin Haneberg\n5255966768133681 04/22\nCVV: 072\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '03/19'
fake.credit_card_number(card_type=None)
# u'6011995391846222'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'VTC'
fake.currency_code()
# 'GHS'
faker.providers.date_time
¶
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2014, 8, 12, 20, 13, 9)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2016, 11, 27, 12, 38, 10)
fake.time(pattern="%H:%M:%S")
# '04:19:56'
fake.date_time_ad(tzinfo=None)
# datetime.datetime(1879, 12, 11, 15, 48, 19)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2017, 7, 18)
fake.day_of_week()
# 'Tuesday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2010, 11, 16, 7, 52, 1)
fake.time_object()
# datetime.time(15, 17, 46)
fake.iso8601(tzinfo=None)
# '1999-01-09T12:46:44'
fake.time_delta()
# datetime.timedelta(2510, 55334)
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2017, 7, 21, 7, 42, 40)
fake.date_object()
# date(1974, 4, 21)
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2017, 7, 22, 8, 22, 48)
fake.date_time(tzinfo=None)
# datetime(2002, 12, 25, 15, 52, 32)
fake.date(pattern="%Y-%m-%d")
# '2009-05-29'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2017, 8, 11)
fake.month()
# '08'
fake.unix_time()
# 941428519
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 7, 19, 0, 44, 9)
fake.day_of_month()
# '18'
fake.year()
# '2002'
fake.timezone()
# u'Europe/Dublin'
fake.century()
# u'XXI'
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 4, 3, 18, 19, 20)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2017, 6, 28, 5, 2, 7)
fake.month_name()
# 'January'
faker.providers.file
¶
fake.file_path(depth=1, category=None, extension=None)
# u'/minima/temporibus.bmp'
fake.mime_type(category=None)
# u'audio/basic'
fake.file_name(category=None, extension=None)
# u'impedit.avi'
fake.file_extension(category=None)
# u'css'
faker.providers.internet
¶
fake.url()
# u'https://kunen.info/'
fake.company_email()
# u'evan-luinenburg@wright.info'
fake.uri()
# u'http://www.van.com/main/'
fake.domain_word(*args, **kwargs)
# u'van'
fake.ipv4(network=False)
# '186.15.16.59'
fake.domain_name(levels=1)
# u'van.com'
fake.tld()
# u'biz'
fake.uri_path(deep=None)
# u'posts'
fake.free_email()
# u'emmajansse@yahoo.com'
fake.slug(*args, **kwargs)
# u'voluptate'
fake.free_email_domain()
# u'hotmail.com'
fake.uri_extension()
# u'.htm'
fake.ipv6(network=False)
# '59b:986f:fd8b:906a:f6ab:c1bc:90f0:9a67'
fake.user_name(*args, **kwargs)
# u'uwestermann'
fake.image_url(width=None, height=None)
# u'https://placeholdit.imgix.net/~text?txtsize=55&txt=617x412&w=617&h=412'
fake.email()
# u'saxolukas@vos.com'
fake.uri_page()
# u'index'
fake.mac_address()
# u'c5:76:e3:e6:e7:59'
fake.safe_email()
# u'lizewesterbeek@example.org'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'0-489-42693-X'
fake.isbn13(separator="-")
# u'978-0-273-78989-5'
faker.providers.job
¶
fake.job()
# 'Data scientist'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Dignissimos veritatis sed asperiores. Impedit ipsam vel neque velit voluptatum. Illo quibusdam veritatis nihil necessitatibus nesciunt aliquam eos ratione.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Vel ipsum placeat commodi repellat. Voluptatem quasi ab placeat repudiandae voluptatem facere corporis. Autem earum voluptas totam magnam.',
# u'Beatae sapiente similique quis autem necessitatibus. Error harum dolorem accusamus soluta reiciendis blanditiis maxime. Mollitia eaque quasi consequuntur blanditiis cumque illum. Sapiente a numquam voluptates repellendus eligendi quaerat mollitia.',
# u'Ducimus reiciendis quos nam doloribus dolor sed deserunt praesentium. Deserunt in dolorum rerum voluptatum enim assumenda placeat dolorem. Rem commodi quia sed possimus voluptate officiis. Libero quisquam laboriosam soluta illo veritatis ex autem aperiam.']
fake.words(nb=3, ext_word_list=None)
# [u'quam', u'exercitationem', u'soluta']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Laboriosam repellendus quam nulla alias eaque.',
# u'Eum eius dolores sed quia illo reprehenderit.',
# u'Porro aliquid tempore eveniet eligendi voluptatum deserunt similique et.']
fake.word(ext_word_list=None)
# u'quis'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Libero delectus ipsum quod sint aliquid accusamus. Odit numquam illum reprehenderit quam provident saepe iste temporibus. Dolores magnam quam ut in consequatur soluta ullam.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Occaecati distinctio consequatur consectetur ad saepe ipsam magnam rerum.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'1p8GEMQa@w'
fake.locale()
# u'pap_CW'
fake.binary(length=1048576)
# bytearray(b"j\xfe\xdas\xe7\xdb\xf0\xf2B[\xd5\xc97\xf9\xe3\xc2\xde\xc72\xfc}\x11\x91\x1c\x00\x91?7\x05\xca;-,\xfb\x9a}\x93\xc7\x12\n\x1c\xd5\xa3H\x10\xc1\na#D>\xb2\xff\xc1\x80\xad\xd5\x07\xc6\xf1i\x06\xca\x8fH4;\xe1\x1e\xe2agE\xf5\xa0\x12\x8b\xfc\x11\xae\xe6T\x87\xd4yo\xe1\x96\xe7$>\x87\xa1\xf6M\x1a\x1eG\x90\xe4m\x99j?\x82\x12\xfd\x91K\x19\xdb\xfa\x81U\x97.\xf5\x8a3\x1b\x92\x84v\xcfvk\xc1\xac}E0 \x05j\xff\x8b/\x1d\xf5p\xf8Y\xe7DLT\x0fFC\x88\xa8\xcd\x7f\xbc\x06L\xbe\x9b\x95Y\xf6\x01\xc4\xc351\x12\x18\x93\xa6@C\x15Gs6\n\xf3.\xd9~\xc0\x02\x9e 4\x8b\xa2i>@\xbc\xcc\xfdYt,\x8fz\x9ec\x83\xcf\xa2l\x9483\xfe\xac\xb7\tM\x17\xf6\xb6G\'\\%\xfb\xe1v\xd8\xf3\xef\xb3\x85\x9aV\x8b\xc2\x11\xb7\x8b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`\x1a\x84P\xc5\x18Gk\xdc\x06\xa6\xf1\xfaZ\xd6")
fake.md5(raw_output=False)
# 'a42e45ea88f6ad787ecfd6e463f58990'
fake.sha1(raw_output=False)
# 'bbee1d9c3f3a11544d4c5b55e072eef3ccb3c357'
fake.null_boolean()
# False
fake.sha256(raw_output=False)
# '44b2228b403173749cb18c163f2325a6bcde081bb85499073deb83357f280ec0'
fake.uuid4()
# '0dbfbaff-1e81-351b-b3d9-5cd708fb7033'
fake.language_code()
# u'sw'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'van Rijnsbergen'
fake.name_female()
# u'Ayden Simonis'
fake.prefix_male()
# ''
fake.prefix()
# ''
fake.name()
# u'Fay Sitters'
fake.suffix_female()
# ''
fake.name_male()
# u'Mees van de Eerenbeemt'
fake.first_name()
# u'Noortje'
fake.suffix_male()
# ''
fake.suffix()
# ''
fake.first_name_male()
# u'Rik'
fake.first_name_female()
# u'Olivia'
fake.last_name_female()
# u'Schrant'
fake.last_name()
# u'Schelvis'
fake.prefix_female()
# ''
faker.providers.phone_number
¶
fake.phone_number()
# u'(024)-2810026'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'Elinsteeg 68\n7944GC\nGlimmen',
# 'birthdate': '1978-03-13',
# 'mail': u'nova33@gmail.com',
# 'name': u'Olaf Roukes',
# 'sex': 'F',
# 'username': u'van-der-ploegashley'}
fake.profile(fields=None, sex=None)
# { 'address': u'Jenniferweg 02\n1923 NG\nKattendijke',
# 'birthdate': '2012-09-28',
# 'blood_group': 'B+',
# 'company': u'Heerschop, Bruijne van der Veen and Perkins',
# 'current_location': (Decimal('-19.165171'), Decimal('-99.849811')),
# 'job': 'Dancer',
# 'mail': u'nheerschop@gmail.com',
# 'name': u'Fenne van Bernicia',
# 'residence': u'Julianbaan 5\n1870TR\nMarrum',
# 'sex': 'F',
# 'ssn': u'367048292',
# 'username': u'astrijker',
# 'website': [ u'https://www.jacobs.com/',
# u'http://pison.com/',
# u'https://www.wagenvoort-wilcken.com/',
# u'https://huurdeman.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'GqjTtpadGZJFARqOyZHD',
# u'bnNtQovMaktNNZagQWXP',
# Decimal('-6.726634'),
# u'rglYkApPmgNzPlOHyBxV',
# 64297.308027054,
# u'leonvan-grinsven@gmail.com',
# u'IFSaFRhfAVHHTswjnjle',
# u'van-hagenjulie@yahoo.com',
# datetime(1995, 8, 22, 4, 47, 23)]
fake.pystr(min_chars=None, max_chars=20)
# u'ndBKWsVfznPHbuDVywOT'
fake.pystruct(count=10, *value_types)
# ( [ u'MpXsieiMnnUYRtusIqyr',
# u'sBvEPVAFniRvhSffDeqM',
# Decimal('-89504.6358273'),
# Decimal('6.96671544159E+13'),
# u'lfmBTdJdTyzAzeoOWllR',
# -3229220462.0,
# u'AgNXJYmprCjDEqGxlFjy',
# 2292,
# Decimal('46923275.4998'),
# -15240882.900278],
# { u'autem': u'elize82@yahoo.com',
# u'eum': u'KTFYSsCAeXBycnIdSwRb',
# u'fugiat': datetime(2008, 3, 16, 22, 30, 15),
# u'molestiae': u'http://www.spruyt.com/main/',
# u'necessitatibus': -45.6653887,
# u'qui': Decimal('15215097272.9'),
# u'reprehenderit': Decimal('85063291.48'),
# u'sint': u'youssef41@van.com',
# u'sunt': u'BrnpBTPZOOjselDxYiHS'},
# { u'atque': { 6: 4208,
# 7: [ 5640,
# u'sven93@yahoo.com',
# u'hSnLYeeZqXIuEfpslLgM'],
# 8: { 6: 1040,
# 7: u'SXvtaqRvnUtHgMgKNIJs',
# 8: [ Decimal('-662.3'),
# u'IbNTYUUcbiRzoTdUfwJI']}},
# u'iure': { 9: u'http://kwaadland.net/',
# 10: [ u'FkqcKZkBleoZpEJgMUEv',
# u'WKwMdVFBdTNbrIEqkazc',
# 9018133.852674],
# 11: { 9: 3292051419.69,
# 10: u'https://www.de.com/explore/index/',
# 11: [u'vrFLzodLRQZsJVRZoTGA', -24.483278925]}},
# u'modi': { 3: u'YNEmIdEmlTYgQRHLLQEo',
# 4: [ u'DNPZoQSfkwzdrLcTldJX',
# u'MzkLVKxvkfQGJlMlCjcq',
# 3953],
# 5: { 3: 8608,
# 4: u'PINslqxHvWSqphuemcKb',
# 5: [ u'xzaal@yahoo.com',
# datetime(1992, 1, 27, 2, 42, 18)]}},
# u'nesciunt': { 8: 6378,
# 9: [ u'fUCXUMRNKQedOqaqKueQ',
# u'ndvRQpGZHpVkswnMHMlH',
# u'oYulreRKJUXdBzgDKMro'],
# 10: { 8: u'HkMqjqAigaSPxXrPPjMG',
# 9: u'http://van.com/privacy/',
# 10: [3735, Decimal('126.2124')]}},
# u'officiis': { 1: u'http://van.com/author/',
# 2: [ u'TMWfdZBWXakvausLIJbM',
# u'HcdhZjlNDoQYkKULawJF',
# 774],
# 3: { 1: Decimal('5437512815.0'),
# 2: -966.89754312,
# 3: [ Decimal('-96027208.5693'),
# Decimal('6819071.5')]}},
# u'porro': { 4: u'uvIKAxdoBbXJvzhHVzNu',
# 5: [ u'EBYLCQqrmTDZhFlujrMI',
# u'renskevan-schweinfurt@bellemans.com',
# u'fvan-salmen@gmail.com'],
# 6: { 4: u'https://kuijpers-wilcken.net/post.php',
# 5: u'TEXjnUigRiTWJjLAQInW',
# 6: [ u'atEUTkSJeYsNcLekXvRC',
# u'lHQsJrafBtWeqgyGisCa']}},
# u'quas': { 0: -533504047573548.0,
# 1: [u'itWMRzxiLNNFILyYlAcY', 3297, 4321],
# 2: { 0: u'eXxUApNBQoThZMbsJipY',
# 1: u'yaAkXmTycITSEXNoWfJh',
# 2: [ -517515.473036,
# Decimal('6.61103686557E+12')]}},
# u'repellendus': { 2: 3276,
# 3: [ Decimal('3.00130904398E+13'),
# u'wbave@van.com',
# u'nbvudHPchArKOPpAcKXP'],
# 4: { 2: datetime(2001, 11, 30, 16, 25, 55),
# 3: u'qSjPzVyOGavJWoyvfFOE',
# 4: [ u'https://poncelet-verhoeven.org/terms.htm',
# 951]}},
# u'similique': { 7: 8451,
# 8: [ u'qcAuUfHPzwJPKpbgEkFC',
# u'uxWjSewlXvFCaKUylZSl',
# u'gbouwhuisen@dijkstra.org'],
# 9: { 7: u'SHQMcMyhgmgxolgCjreU',
# 8: u'gerritvan-den-nieuwenhuijsen@yahoo.com',
# 9: [ u'tessaamalrada@gmail.com',
# u'bPzqaVdcQSyknkLiENDC']}},
# u'voluptate': { 5: Decimal('-766.396190723'),
# 6: [7381, 5874, u'CkukqodcZFpJivCwOJgE'],
# 7: { 5: u'aeYIpPTBhVwapSGItQJR',
# 6: datetime(1982, 8, 1, 6, 6, 25),
# 7: [u'PfhrfswwkawAQytEFnMz', 42.0]}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# 31597235492452.5
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('-8.745429856E+12')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ datetime(1989, 8, 1, 15, 41, 52),
# u'xXIYjpDNubNtxQlqLLaw',
# u'stichterolaf@van.com',
# u'mrvzmmQXCBXDvDIDHTNy',
# 5421,
# u'FlzWIXpdaMZLgctXbJcc',
# u'iooYpovWOpsHorjWGIGI',
# datetime(1994, 5, 13, 2, 59, 35),
# u'mare41@zaal.biz',
# u'VnHgrmeyquxXvlWohklb',
# u'EuPEoZgNAXEwkcHQyPre',
# Decimal('-8.950495')]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( 576,
# u'http://www.rijntjes-steenbeek.info/faq.asp',
# u'http://koster.net/faq.html',
# u'wessel68@yahoo.com',
# 9644,
# 892859416896942.0,
# u'hWWdTkSemnBaBiCpzlYh',
# u'CTBvXhwpGKmocvqwlxAA',
# Decimal('52162118292.0'),
# u'RAEGjfrcwTXjVBtOHonQ',
# datetime(1978, 1, 13, 19, 49, 43),
# -37.766396671,
# u'ZaeJuUCQGlqxOMToTTry',
# u'kmrtLmZhRaGUFSowjjWj')
fake.pybool()
# False
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([Decimal('-9.26231427912E+13'), 1730, 9354, 7586, 5149, 8824, datetime(2015, 11, 7, 13, 9, 58), 9565, -585088.675826, 6170, Decimal('-74.61815'), u'ZLsmzTsLWZpwbqtRWTnY', u'WbXPEYvajggBYTloiovT'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'accusamus': -5720210863488.31,
# u'aspernatur': 4198,
# u'beatae': 8601644102913.63,
# u'consequuntur': u'yhcDGPFVxYRXBRcFDUAn',
# u'ducimus': datetime(1987, 4, 8, 7, 40, 18),
# u'illo': datetime(1977, 5, 1, 15, 48, 11),
# u'iste': datetime(1996, 5, 28, 23, 3, 18),
# u'laborum': 3354,
# u'mollitia': Decimal('2.47718334057E+14'),
# u'quia': 8991,
# u'rerum': Decimal('5764.9'),
# u'veniam': 9592}
fake.pyint()
# 4292
faker.providers.ssn
¶
fake.ssn()
# u'350471824'
faker.providers.user_agent
¶
fake.mac_processor()
# u'U; Intel'
fake.firefox()
# u'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_0; rv:1.9.3.20) Gecko/2015-07-29 16:30:24 Firefox/7.0'
fake.linux_platform_token()
# u'X11; Linux i686'
fake.opera()
# u'Opera/8.89.(Windows NT 5.2; ja-JP) Presto/2.9.184 Version/12.00'
fake.windows_platform_token()
# u'Windows NT 5.01'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0)'
fake.user_agent()
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_6_0) AppleWebKit/5311 (KHTML, like Gecko) Chrome/15.0.841.0 Safari/5311'
fake.chrome()
# u'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_9) AppleWebKit/5331 (KHTML, like Gecko) Chrome/15.0.818.0 Safari/5331'
fake.linux_processor()
# u'x86_64'
fake.mac_platform_token()
# u'Macintosh; U; Intel Mac OS X 10_8_2'
fake.safari()
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_6_5 rv:5.0; be-BY) AppleWebKit/534.10.5 (KHTML, like Gecko) Version/5.0 Safari/534.10.5'