Language la¶
faker.providers.address
¶
fake.longitude()
# Decimal('116.212749')
fake.building_number()
# u'0373'
fake.street_address()
# u'824 Erica Haven'
fake.postalcode_plus4()
# u'16062-7072'
fake.city_prefix()
# u'Port'
fake.military_ship()
# u'USNS'
fake.city()
# u'Lake Rachel'
fake.zipcode_plus4()
# u'32740-7944'
fake.state_abbr()
# u'NC'
fake.latitude()
# Decimal('-26.808985')
fake.street_suffix()
# u'Station'
fake.city_suffix()
# u'haven'
fake.military_dpo()
# u'Unit 5270 Box 9364'
fake.country_code(representation="alpha-2")
# u'BR'
fake.country()
# u'Tonga'
fake.secondary_address()
# u'Suite 142'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('112.125791')
fake.postalcode()
# u'08940'
fake.address()
# u'072 Diana Ports Apt. 275\nKevinchester, NC 26397-5044'
fake.state()
# u'Connecticut'
fake.military_state()
# u'AP'
fake.street_name()
# u'Ana Corners'
fake.zipcode()
# u'48648'
fake.postcode()
# u'50577'
fake.military_apo()
# u'PSC 9241, Box 3229'
faker.providers.automotive
¶
fake.license_plate()
# u'K10-90I'
faker.providers.bank
¶
fake.bban()
# 'BZDY5937984740978'
fake.bank_country()
# 'GB'
fake.iban()
# 'GB04NUFA2768386899252'
faker.providers.barcode
¶
fake.ean(length=13)
# u'4208790210197'
fake.ean13()
# u'0823099935455'
fake.ean8()
# u'63692709'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(219,89,70)'
fake.color_name()
# u'DarkMagenta'
fake.rgb_color()
# u'23,232,75'
fake.safe_hex_color()
# u'#556600'
fake.safe_color_name()
# u'olive'
fake.hex_color()
# u'#f4433e'
faker.providers.company
¶
fake.company()
# u'Mendez Ltd'
fake.company_suffix()
# u'Inc'
fake.catch_phrase()
# u'Stand-alone zero-defect project'
fake.bs()
# u'seize virtual web services'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'693'
fake.credit_card_provider(card_type=None)
# u'VISA 13 digit'
fake.credit_card_full(card_type=None)
# u'JCB 16 digit\nAmber Nguyen\n3582992199442243 05/27\nCVC: 052\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '04/27'
fake.credit_card_number(card_type=None)
# u'4112833567999694'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'DRC'
fake.currency_code()
# 'MNT'
fake.currency_name()
# 'Australian dollar'
fake.cryptocurrency_name()
# 'DigitalNote'
fake.cryptocurrency()
# ('NEM', 'XEM')
fake.currency()
# ('TWD', 'New Taiwan dollar')
faker.providers.date_time
¶
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 8, 19, 11, 35, 31)
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xf5db1694>
fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 8, 16)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2012, 7, 29, 16, 18, 26)
fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2016, 11, 21)
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 8, 12, 14, 21, 15)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 7, 27)
fake.day_of_week()
# 'Thursday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2015, 1, 20, 8, 34, 31)
fake.date_between(start_date="-30y", end_date="today")
# datetime.date(1997, 4, 28)
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2013, 5, 10, 16, 51, 34)
fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '1973-12-21'
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 8, 16, 9, 31, 47)
fake.date_object(end_datetime=None)
# datetime.date(1980, 12, 27)
fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 3, 20)
fake.iso8601(tzinfo=None, end_datetime=None)
# '1974-07-14T03:38:01'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 9, 9)
fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2017, 10, 10)
fake.month()
# '10'
fake.year()
# '1975'
fake.day_of_month()
# '02'
fake.unix_time(end_datetime=None, start_datetime=None)
# 461568813
fake.timezone()
# u'Europe/Brussels'
fake.century()
# u'II'
fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1958, 9, 11)
fake.time_object(end_datetime=None)
# datetime.time(8, 33, 55)
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 1, 31, 22, 25, 40)
fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(2010, 3, 7, 11, 22, 39)
fake.time(pattern="%H:%M:%S", end_datetime=None)
# '09:27:09'
fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 8, 14)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 8, 4, 7, 1, 21)
fake.month_name()
# 'October'
fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(1021, 3, 4, 7, 0, 5)
fake.time_delta(end_datetime=None)
# datetime.timedelta(16823, 25550)
faker.providers.file
¶
fake.unix_device(prefix=None)
# u'/dev/xvdi'
fake.mime_type(category=None)
# u'text/javascript'
fake.file_path(depth=1, category=None, extension=None)
# u'/in/voluptatum.tiff'
fake.unix_partition(prefix=None)
# u'/dev/sdw1'
fake.file_name(category=None, extension=None)
# u'nulla.mp3'
fake.file_extension(category=None)
# u'mov'
faker.providers.internet
¶
fake.ascii_free_email(*args, **kwargs)
# 'youngleslie@yahoo.com'
fake.image_url(width=None, height=None)
# u'https://placeholdit.imgix.net/~text?txtsize=55&txt=867x382&w=867&h=382'
fake.tld()
# u'info'
fake.email(*args, **kwargs)
# u'debra85@turner.com'
fake.url(schemes=None)
# u'http://www.obrien.com/'
fake.ipv4_private(network=False, address_class=None)
# '10.74.215.78'
fake.user_name(*args, **kwargs)
# u'anthony93'
fake.uri_extension()
# u'.asp'
fake.uri_page()
# u'author'
fake.free_email_domain(*args, **kwargs)
# u'yahoo.com'
fake.safe_email(*args, **kwargs)
# u'monroebryan@example.net'
fake.ascii_email(*args, **kwargs)
# 'emaddox@gmail.com'
fake.ipv4_network_class()
# u'b'
fake.ipv4_public(network=False, address_class=None)
# '35.1.122.125'
fake.ascii_company_email(*args, **kwargs)
# 'dillontorres@thompson-parker.org'
fake.domain_name(*args, **kwargs)
# u'jordan.org'
fake.ipv4(network=False, address_class=None, private=None)
# '47.234.250.57'
fake.domain_word(*args, **kwargs)
# u'edwards-francis'
fake.slug(*args, **kwargs)
# u'soluta-ad'
fake.uri_path(deep=None)
# u'list/categories'
fake.company_email(*args, **kwargs)
# u'mary51@hunt.com'
fake.uri()
# u'https://reyes.com/wp-content/tags/terms/'
fake.ipv6(network=False)
# '57b:4736:e589:4fd7:3248:de13:2559:fc4e'
fake.free_email(*args, **kwargs)
# u'wgonzalez@hotmail.com'
fake.ascii_safe_email(*args, **kwargs)
# 'preynolds@example.net'
fake.mac_address()
# u'25:16:18:67:f5:a5'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'1-85038-732-X'
fake.isbn13(separator="-")
# u'978-0-18-312044-3'
faker.providers.job
¶
fake.job()
# 'Pensions consultant'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Amet at nulla nesciunt voluptates. Provident optio occaecati velit earum dignissimos porro.\nOfficia magni ea explicabo aliquid occaecati.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Mollitia nulla laboriosam corrupti atque. Earum animi tempore placeat temporibus. Debitis harum dolores laboriosam. Dignissimos aspernatur eveniet eligendi in.',
# u'Assumenda est eveniet. Dolor aliquam natus optio architecto cum repellat. Voluptas alias pariatur delectus.',
# u'Quo voluptatem consequatur. Dolore blanditiis itaque impedit est.']
fake.words(nb=3, ext_word_list=None)
# [u'error', u'nobis', u'unde']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Impedit ratione beatae aliquam consequatur.',
# u'Odio necessitatibus adipisci minima iusto aut quo expedita.',
# u'Eius necessitatibus qui quod nostrum eaque.']
fake.word(ext_word_list=None)
# u'explicabo'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Consectetur similique esse molestias nesciunt animi modi. Consequatur necessitatibus doloribus officiis corrupti laboriosam optio. Doloremque tenetur occaecati sunt.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Aliquam molestiae est laudantium natus.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'+#7RYiz*y+'
fake.locale()
# u'hsb_DE'
fake.binary(length=1048576)
# bytearray(b'2\xd0E5\x96wa\x84\x9c/u\x04YU\xdcj\xe3\x87R\xb2\xe6u\xf5m-\xbcb\x92\x1b\x1eW\xc6=V%L\xd11$8\xa0]mS?^\xb6hIO\xc8\xad\x03/I\x0e\xf27\x0b\xb8\xd9;6\xd7K\x0f\x1439SV\xd0\xc6\xd8\x7f\xcd\xbb2\xd8\xf55oed\x97\xbd\x9e\xe7\x94n9\xb2\x10ci\xe2M\xba\xa5\xc2+\x074\xa5\x91\'\xd1y\xbf\x11\x8ceW\xbc\x00\xd6\x89\x889Z(\xd8N+Q,\xcd\xf7\x99\x05\xf7\x82\x1c\x1a}.\xc0\xd8\xdee\x9d\x17aZ6\xf0q60\x95\xd4r\xaf]X\x00\xaa\x80X\xa4\xa5x`(e\xe9\x12\xbb\xe8\x8erR\xe1\xc0\xb5\x9cu\x84,\xbb%\x13\xbd\xc2\xf6\x8e\x06\xac+\x15\xf3\x06\x80[K\x08\x05\xd5!\xc5\xe3\r]\xfb\xd8<\xcb\xc2\x9e\xbc\xf1K\xb6p,Y\x98)\xd6\\\xec"\x0e\xb9\x1f\x93\xee\x87\xa5e4D\x97\xaa\xfa\xaf\n\x8fv\xbah\xd2$\x87<\xc4\xde)\xa5\xefI\xbf\x92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x98K\x9c\xe5\xde\x9f\xb4\x10P\x92w\xe5*\xa0')
fake.md5(raw_output=False)
# 'f3361cc78b421f81286f1b0478280c06'
fake.sha1(raw_output=False)
# '9e476cf20418382b0e2fd1fb164286d64f0ee303'
fake.null_boolean()
# False
fake.sha256(raw_output=False)
# '26020f38e96c79fb668d37ddcddfdf6c79050adeabfd8702fe325d7e111f1dd8'
fake.uuid4()
# '50c4863a-01f8-709d-fbe9-26fd9975168a'
fake.language_code()
# u'raj'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'Oneill'
fake.name_female()
# u'Tiffany Martinez'
fake.prefix_male()
# u'Mr.'
fake.prefix()
# u'Dr.'
fake.name()
# u'Jacqueline Rodriguez'
fake.suffix_female()
# u'DDS'
fake.name_male()
# u'Paul Webb'
fake.first_name()
# u'John'
fake.suffix_male()
# u'MD'
fake.suffix()
# u'DVM'
fake.first_name_male()
# u'Anthony'
fake.first_name_female()
# u'Brandi'
fake.last_name_female()
# u'Gutierrez'
fake.last_name()
# u'Shepard'
fake.prefix_female()
# u'Mrs.'
faker.providers.phone_number
¶
fake.phone_number()
# u'579.433.3346'
fake.msisdn()
# '5260629097915'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'0994 Michael Orchard\nBethfurt, PA 10061-6806',
# 'birthdate': datetime.date(2016, 3, 18),
# 'mail': u'amyevans@hotmail.com',
# 'name': u'Jennifer Garcia',
# 'sex': 'F',
# 'username': u'stephenvaldez'}
fake.profile(fields=None, sex=None)
# { 'address': u'741 Shawn Road Apt. 788\nEast Rachelchester, RI 89144-0976',
# 'birthdate': datetime.date(1971, 7, 12),
# 'blood_group': 'AB+',
# 'company': u'Monroe-Oconnor',
# 'current_location': (Decimal('-85.210934'), Decimal('-116.574681')),
# 'job': 'Maintenance engineer',
# 'mail': u'rebecca73@hotmail.com',
# 'name': u'Emily Moon',
# 'residence': u'94930 Stephanie Mountains\nJonesmouth, MD 91449-7613',
# 'sex': 'F',
# 'ssn': u'161-74-2142',
# 'username': u'arnoldjanice',
# 'website': [u'https://smith-williams.com/', u'https://www.marsh.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'YadijtPRSoElQkAKWeyB',
# Decimal('4608571673.32'),
# u'wUUfJoKDPvVCcVzebPHS',
# 8460,
# 3709,
# u'plLITcggbTigBCiQMiTg',
# u'DaxOjrqdWDIXQHMHfQwA',
# datetime.datetime(1988, 10, 27, 3, 41, 11),
# 1962]
fake.pystr(min_chars=None, max_chars=20)
# u'iXJCPeBgJTSiKZGbpYvf'
fake.pystruct(count=10, *value_types)
# ( [ u'XsqVzuiFgNPAqEQmCXvY',
# u'aPSqyrHYOIbIlqrnOKph',
# u'lYnDxXzHWoXCyLrMADEB',
# u'MkSdYgKfCFERfLFOsGjU',
# u'UAETYoGXrWxdxfdwYOdN',
# 7269,
# u'http://wilkerson.org/',
# Decimal('5574789765.32'),
# Decimal('368.293'),
# u'qhidGapJwzuuUtTENAND'],
# { u'ab': u'hcLPfELnErmaMyTkpAyA',
# u'ad': u'CpMLWyvGmpuwrAVGCYkF',
# u'at': u'bbxziuwBIJBLPzonTeOf',
# u'ea': 8543,
# u'facere': u'nkXgwCFiqutpIPGeAndb',
# u'fugit': 6070,
# u'iste': u'reginarivera@gmail.com',
# u'nisi': u'sjenkins@golden-hernandez.com',
# u'nobis': u'https://www.gates.net/',
# u'quod': datetime.datetime(1987, 3, 30, 11, 24, 58)},
# { u'a': { 7: 9223,
# 8: [4665, -90319.507156, u'RETPTejyOZNyMTLOqFKT'],
# 9: { 7: u'FyrAioCJhhtqGcDbqPiP',
# 8: u'https://www.grant.com/register.htm',
# 9: [u'myWmTIradluFefdhRWTf', 9375]}},
# u'dolorum': { 2: Decimal('5.19023237936'),
# 3: [ Decimal('-6.53489009266E+12'),
# u'https://www.brooks.biz/post/',
# u'BmSxsCIbRGNZMACKNWyN'],
# 4: { 2: u'xrQEafRxbatQIBBTTyql',
# 3: 931,
# 4: [u'zPydSwbOEpIwHCMsXMSl', 7572]}},
# u'illum': { 0: u'https://hayes.org/',
# 1: [ 8931,
# u'FWrFnyxmwopVztOZukTi',
# u'yGvxshMSBUsYLBonEGWa'],
# 2: { 0: u'dmvgovmWrFcTUkIPSxOI',
# 1: u'ayAXpHCJORqMyFmyYQND',
# 2: [ u'mylNjcxuOXkowYrPXmYC',
# datetime.datetime(1976, 3, 23, 21, 43, 38)]}},
# u'maiores': { 9: 418,
# 10: [ Decimal('-548292428.0'),
# 309,
# u'bfBNPYWrSMDlZHHIZYCg'],
# 11: { 9: 526,
# 10: datetime.datetime(2013, 4, 17, 13, 41, 59),
# 11: [2330, u'yclarke@brooks.com']}},
# u'odit': { 6: u'https://www.dalton.com/posts/app/posts/main.html',
# 7: [ 6168,
# u'michael01@martin.org',
# u'VxaKBuXKyYLsdwQsvHJT'],
# 8: { 6: u'GrPTZxoHhHdrhAusFkXu',
# 7: u'rGLSnPsQLewwmkYAXBRc',
# 8: [ Decimal('-135269202.622'),
# u'BjKvBcLxhOXYcEbemACg']}},
# u'quibusdam': { 5: u'CaBROxbjsVHoWIGJekHd',
# 6: [ u'hallsabrina@hotmail.com',
# u'rISNDBYKBsROHgUNWWRp',
# 96123.9],
# 7: { 5: Decimal('27742908774.7'),
# 6: Decimal('8277.170535'),
# 7: [ datetime.datetime(2005, 7, 8, 10, 17, 46),
# 3273]}},
# u'reiciendis': { 3: u'http://www.townsend.com/home/',
# 4: [ u'https://dougherty-garcia.com/tag/category/',
# u'hagVWKvdyYUbazhOGZel',
# datetime.datetime(2000, 2, 8, 3, 14, 37)],
# 5: { 3: u'dRsshLVzauDfrQMVSkiI',
# 4: Decimal('-5.66763827206E+12'),
# 5: [ u'FGYHbzJelcfklyWRzwBB',
# u'https://kelly.com/explore/list/tags/faq.php']}},
# u'repellendus': { 8: Decimal('-977.763665348'),
# 9: [ u'zPLXskVBzMyDMFIpIppb',
# u'kuxDDtZRjeFNixFYPYna',
# u'LofTMjVZGQEISVOFHiFt'],
# 10: { 8: 4989,
# 9: u'OirbvIgfTuZmiDahOEoq',
# 10: [ u'gabPgYsAbYUtLNIBEwjT',
# u'YIncrhplHrPmcASbfWuN']}},
# u'suscipit': { 4: u'https://www.stevens-mathis.com/list/blog/app/index/',
# 5: [ u'yfZparHpAnAsxuqMaakw',
# u'JrPlpjbLayepFJTCeKLA',
# u'joneslatoya@garner-hernandez.info'],
# 6: { 4: u'lcole@johnson.biz',
# 5: u'SWWKhLISBLaocOMRRrPN',
# 6: [Decimal('3883.47698735'), 5913]}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -39135674249543.0
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('-679646569.0')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ datetime.datetime(1973, 11, 8, 12, 30, 1),
# u'QEwOmoUKZNguksgmIUJF',
# u'HZcIrejTTeEnCkzNOTXi',
# u'GOLLUybhGcJLWLBakncI',
# u'rAGuBFRQVDmyDHnUjMVo',
# u'bjophUVhxikRVGWHHHkM',
# 9959]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( u'https://morrison.com/main.htm',
# 6064,
# datetime.datetime(2016, 5, 25, 22, 1, 51),
# 7957,
# Decimal('-2.427399'),
# Decimal('8.63232831472E+12'),
# u'wKcgqMTRiermfSKBGxoV',
# u'jamespatterson@green.net',
# 1855)
fake.pybool()
# True
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([u'mIaldhOFoPRmlyzGjpMu', u'NAnGDgiPgYWDPzyMcvAE', u'QYPxzfVHMWJJwehSmiUu', 9873, datetime.datetime(2013, 5, 7, 13, 36), u'UaTkBZmtLCEvRYBqtrNo', -365644475.843, u'LHyjUdxqqvsVjiKcuIFV', u'kwoods@lee.com', u'ALckmTIOpGtakTkViAsx'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'aperiam': Decimal('-59157229181.0'),
# u'beatae': datetime.datetime(2014, 3, 24, 22, 11),
# u'ea': 5682,
# u'ipsa': u'QIVMyswQPqtEODRuTTsO',
# u'non': 43.17428377,
# u'odit': -931731.8232}
fake.pyint()
# 9552
faker.providers.ssn
¶
fake.ssn(taxpayer_identification_number_type="SSN")
# u'848-33-7962'
fake.ein()
# u'30-0556854'
fake.itin()
# u'953-76-7312'
faker.providers.user_agent
¶
fake.mac_processor()
# u'PPC'
fake.firefox()
# u'Mozilla/5.0 (X11; Linux x86_64; rv:1.9.5.20) Gecko/2014-06-03 04:52:59 Firefox/3.8'
fake.linux_platform_token()
# u'X11; Linux x86_64'
fake.opera()
# u'Opera/9.78.(Windows NT 4.0; an-ES) Presto/2.9.172 Version/12.00'
fake.windows_platform_token()
# u'Windows 98'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/4.0)'
fake.user_agent()
# u'Opera/8.58.(Windows 95; wo-SN) Presto/2.9.186 Version/10.00'
fake.linux_processor()
# u'x86_64'
fake.chrome(version_from=13, version_to=63, build_from=800, build_to=899)
# u'Mozilla/5.0 (X11; Linux i686) AppleWebKit/5360 (KHTML, like Gecko) Chrome/55.0.875.0 Safari/5360'
fake.mac_platform_token()
# u'Macintosh; U; PPC Mac OS X 10_9_4'
fake.safari()
# u'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3 rv:6.0; am-ET) AppleWebKit/531.23.4 (KHTML, like Gecko) Version/4.0.1 Safari/531.23.4'