Language en_CA¶
faker.providers.address
¶
fake.latitude()
# Decimal('82.388878')
fake.street_name()
# u'Cisneros Turnpike'
fake.address()
# u'890 Lee Harbor Suite 154\nScottshire, NL S6L9P8'
fake.street_address()
# u'3241 Christine Stream'
fake.postcode()
# u'55026'
fake.longitude()
# Decimal('-72.103361')
fake.country()
# u'Saint Pierre and Miquelon'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('-86.893735')
fake.postal_code_letter()
# u'X'
fake.province()
# u'Ontario'
fake.city_prefix()
# u'West'
fake.street_suffix()
# u'Hollow'
fake.city_suffix()
# u'fort'
fake.building_number()
# u'592'
fake.country_code()
# u'UY'
fake.secondary_address()
# u'Suite 970'
fake.city()
# u'New Lawrenceview'
fake.province_abbr()
# u'NS'
fake.postalcode()
# u'J3J9J6'
faker.providers.automotive
¶
fake.license_plate()
# u'YS2 83W'
faker.providers.barcode
¶
fake.ean(length=13)
# u'8448386421965'
fake.ean13()
# u'7921901745148'
fake.ean8()
# u'17784467'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(178,42,22)'
fake.color_name()
# u'BlanchedAlmond'
fake.rgb_color()
# u'252,127,186'
fake.safe_hex_color()
# u'#88aa00'
fake.safe_color_name()
# u'olive'
fake.hex_color()
# u'#848ee8'
faker.providers.company
¶
fake.company()
# u'Garner, Davis and Christian'
fake.company_suffix()
# u'Inc'
fake.catch_phrase()
# u'Open-architected mobile productivity'
fake.bs()
# u'whiteboard virtual e-services'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'720'
fake.credit_card_provider(card_type=None)
# u'JCB 16 digit'
fake.credit_card_full(card_type=None)
# u'Discover\nLisa Avila\n6011930805674597 04/25\nCVC: 375\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '01/20'
fake.credit_card_number(card_type=None)
# u'4701847453285908'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'DOGE'
fake.currency_code()
# 'HKD'
faker.providers.date_time
¶
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2004, 3, 10, 5, 39, 32)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2007, 3, 23, 5, 43, 45)
fake.time(pattern="%H:%M:%S")
# '07:15:37'
fake.date_time_ad(tzinfo=None)
# datetime.datetime(956, 6, 24, 13, 47, 36)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2017, 8, 21)
fake.day_of_week()
# 'Friday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2014, 7, 31, 11, 24, 56)
fake.time_object()
# datetime.time(19, 8, 28)
fake.iso8601(tzinfo=None)
# '1999-06-11T05:34:05'
fake.time_delta()
# datetime.timedelta(2801, 69494)
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2017, 9, 6, 20, 17, 13)
fake.date_object()
# date(1981, 12, 20)
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2017, 9, 13, 11, 1, 36)
fake.date_time(tzinfo=None)
# datetime(1982, 11, 13, 21, 38, 6)
fake.date(pattern="%Y-%m-%d")
# '2004-10-10'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2017, 9, 11)
fake.month()
# '11'
fake.unix_time()
# 854276475
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 9, 5, 20, 19, 2)
fake.day_of_month()
# '23'
fake.year()
# '2005'
fake.timezone()
# u'Australia/Broken_Hill'
fake.century()
# u'VIII'
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xb4fa8af8>
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 4, 15, 7, 8)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2017, 8, 8, 13, 2, 52)
fake.month_name()
# 'March'
faker.providers.file
¶
fake.file_path(depth=1, category=None, extension=None)
# u'/dolore/quos.json'
fake.mime_type(category=None)
# u'message/http'
fake.file_name(category=None, extension=None)
# u'totam.webm'
fake.file_extension(category=None)
# u'png'
faker.providers.internet
¶
fake.url()
# u'https://holt.biz/'
fake.company_email()
# u'victoria28@wong.biz'
fake.uri()
# u'https://www.king-tyler.com/post.asp'
fake.domain_word(*args, **kwargs)
# u'chambers'
fake.ipv4(network=False)
# '75.198.166.133'
fake.domain_name(levels=1)
# u'todd-martinez.com'
fake.tld()
# u'com'
fake.uri_path(deep=None)
# u'explore/tag/search'
fake.free_email()
# u'baileynathaniel@gmail.com'
fake.slug(*args, **kwargs)
# u'aliquid'
fake.free_email_domain()
# u'hotmail.com'
fake.uri_extension()
# u'.php'
fake.ipv6(network=False)
# '248a:3a1:58be:cea8:92b2:7805:5b14:654f'
fake.user_name(*args, **kwargs)
# u'oholder'
fake.image_url(width=None, height=None)
# u'https://placeholdit.imgix.net/~text?txtsize=55&txt=41x152&w=41&h=152'
fake.email()
# u'grosspamela@yahoo.com'
fake.uri_page()
# u'category'
fake.mac_address()
# u'64:27:43:ee:09:44'
fake.safe_email()
# u'sharon97@example.com'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'0-7596-6186-3'
fake.isbn13(separator="-")
# u'978-1-4425-1760-8'
faker.providers.job
¶
fake.job()
# 'Editor, commissioning'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Dicta ad pariatur temporibus id rem eos corporis. Sunt eligendi iste accusamus inventore voluptas quibusdam laboriosam.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Beatae tenetur dolores ad veniam repellat. Minus facilis architecto dolorum est at omnis. Praesentium similique quisquam atque consectetur. Earum quisquam inventore atque ab et non.',
# u'Unde quas fugit alias maiores. Fugit ipsa ea tempore. Possimus consectetur mollitia illo iste dolor repudiandae quisquam.',
# u'Dolore eaque molestias ipsa fugiat necessitatibus totam quam eius. Laborum sunt deserunt ut totam error reiciendis. Suscipit doloribus nemo ut dolorem eligendi accusantium. Iste natus possimus dolore vel adipisci.']
fake.words(nb=3, ext_word_list=None)
# [u'aliquid', u'ipsum', u'architecto']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Distinctio quis tempora tenetur voluptatem ipsam minima facere.',
# u'Perferendis facilis totam perferendis officia.',
# u'Aperiam voluptate molestias sint dolor dolor illo et.']
fake.word(ext_word_list=None)
# u'accusamus'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Reprehenderit enim maxime cupiditate molestias. Aliquam accusantium dicta quidem voluptas. Voluptatum quam possimus accusamus ducimus ut molestias. Soluta magnam amet nemo doloribus assumenda et beatae provident.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Commodi facilis sapiente voluptatibus dolores placeat dolores.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'+3oPn9IxXs'
fake.locale()
# u'kl_GL'
fake.binary(length=1048576)
# bytearray(b'\x9b\xf2\xb5*\xbe\x81\xd8o<e\xb8\x83\x1a}\x05\x12YUC\x0e+\xb1\x1f\x1d\x01\xc3\xf7\xfd3y\xec\'\xd29\xa5#\x97\r\x8d\x9b\xa3\x1d\xdb\xd2`o\x8d?[\xc2\xda\x00\'y\'\x04w{2"\xa4\x9fV"\xd6jS\xfcX\x12\x8c\x99{\xa1\x8ch\x87H\xe1#\xd7\xd36$dO\xf8c\x99R\x9a\xd7[E\xb05z\x1d\x9d\xfe\xaf\\c:\x97\xb0\x93\x80O\xeb\x9ar\xd5\xdd\xfe\xa6\xc3\xe4F\xb8u\x9e\xd9\xad#"\xf0~u\x06qM.b\xd1\xd4\x1ay(y\xff\x86\x9bkL\x88uK\xd1z\x1f\x92Bp\xd6\xf7\xcc\xde\x7f\xcd\xd3\xde\x16&\x95S\x0e\xdc\x06\x80\xc3\xc4\xa5\xf1Xi\x00\xec\xb7\xd7\x92o\x00}\x91i \xf8\x98\x05\\V\xd8N\x18\x8b\xb9\x0cl\xb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xcc\xf3\xd2kB`\xb4\x19\\\x9b0\x0b\xa5Q\xf4\x1d\xd3\xef\xed\x19\xbev\xdd\xb4Av\xb6\x17\xea\x94\xfa\xf0\x0bOn\xd0\xcd\\\x88\x8db\x04\xabX\xf3\x89a')
fake.md5(raw_output=False)
# 'c1cb750444afaca1d870201334a9a5ce'
fake.sha1(raw_output=False)
# '3d4271cc857c0faef9c66a263c6cc69812dea8aa'
fake.null_boolean()
# False
fake.sha256(raw_output=False)
# 'b80730787da575ed1050f05fef2ef3b16aa3b671ac6549f3aa7f4e28cb468e23'
fake.uuid4()
# '6fd7958e-f188-e0f2-331e-805a9f5d6ea8'
fake.language_code()
# u'tr'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'Velasquez'
fake.name_female()
# u'Jennifer Hammond'
fake.prefix_male()
# u'Mr.'
fake.prefix()
# u'Miss'
fake.name()
# u'John Austin'
fake.suffix_female()
# u'DVM'
fake.name_male()
# u'Tristan Melendez'
fake.first_name()
# u'Marc'
fake.suffix_male()
# u'MD'
fake.suffix()
# u'Jr.'
fake.first_name_male()
# u'Dean'
fake.first_name_female()
# u'Heather'
fake.last_name_female()
# u'Terry'
fake.last_name()
# u'Chavez'
fake.prefix_female()
# u'Dr.'
faker.providers.phone_number
¶
fake.phone_number()
# u'+1 (550) 254-1349'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'11711 Phelps Knolls Suite 407\nNorth Williamshire, NL E9S 1L2',
# 'birthdate': '1992-10-24',
# 'mail': u'fletcherjessica@hotmail.com',
# 'name': u'Nathaniel Calderon',
# 'sex': 'M',
# 'username': u'vramirez'}
fake.profile(fields=None, sex=None)
# { 'address': u'9558 Kristin Burg\nHeatherport, NT K2C2X7',
# 'birthdate': '2008-03-25',
# 'blood_group': 'B+',
# 'company': u'Mendoza, Fritz and Lewis',
# 'current_location': (Decimal('-82.2388895'), Decimal('15.452716')),
# 'job': 'Surveyor, planning and development',
# 'mail': u'alexanderreid@hotmail.com',
# 'name': u'Donna Cooper',
# 'residence': u'875 Annette Courts Apt. 083\nMorrisontown, NL X9N5E1',
# 'sex': 'F',
# 'ssn': u'350 748 2410 ',
# 'username': u'pauldaniel',
# 'website': [u'http://www.caldwell-logan.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ 7464,
# u'bIpZKxRbLiZiOVyDxroj',
# 9508,
# u'CLJYFLeLSKBqckxmNijV',
# u'gjenkins@gmail.com',
# u'http://www.warner.com/terms.html',
# 1625,
# u'acvuLlyQXMjOPyuuaEWt']
fake.pystr(min_chars=None, max_chars=20)
# u'dpHVLePyKbZnnaTcXoBr'
fake.pystruct(count=10, *value_types)
# ( [ u'njohnson@golden.org',
# u'jacksonkatherine@gmail.com',
# 3664,
# -17425837.341881,
# datetime(1988, 5, 2, 9, 2, 23),
# u'kwCAwJIuBhsgWvqevzqL',
# Decimal('-99568582582.3'),
# 3814,
# u'qNfdPdsKEmBRdykvDhYD',
# u'covRyuivtNnzAPwPeaOd'],
# { u'assumenda': u'ashleysmith@yahoo.com',
# u'delectus': u'edjquInMflFBDysjHnjZ',
# u'deserunt': 4179,
# u'est': u'HoSjSeanmyrHRunNtAok',
# u'illum': Decimal('-569679008.418'),
# u'ipsa': Decimal('-50918.2353158'),
# u'nulla': u'vfAOfhbzSxEgTyXgyEzw',
# u'odit': u'jWUjMSKRrMEtvISxRTbb',
# u'ratione': u'aEFGtMdxTiFELsTOakAt',
# u'voluptatem': u'rebeccacastillo@price.com'},
# { u'aliquam': { 6: u'mcGVIMNivTfNfTsKMBWQ',
# 7: [ Decimal('1.16285615064E+12'),
# datetime(1978, 2, 1, 14, 11, 50),
# Decimal('9.20298110438E+12')],
# 8: { 6: u'https://adams.com/',
# 7: u'kevingordon@hotmail.com',
# 8: [ -6750.1,
# u'https://pope-johnson.com/register.jsp']}},
# u'corrupti': { 3: u'TKLdsvuxHylVkaELMCzC',
# 4: [ u'jDGRUZyLSRbMCPpGbyAE',
# u'http://chung.net/categories/tags/register.asp',
# Decimal('-9.60999')],
# 5: { 3: Decimal('18037.4228337'),
# 4: datetime(2014, 5, 5, 19, 44, 18),
# 5: [ u'FPHzqlrwFFgQNwRHNsuM',
# u'http://www.steele.com/main/wp-content/author.htm']}},
# u'doloribus': { 0: -62315.0,
# 1: [ u'http://www.hudson.com/tags/search/list/index.php',
# datetime(1971, 12, 6, 6, 30, 25),
# u'http://schmitt-powers.com/register/'],
# 2: { 0: u'RXlZMbLAlydBIOqMIagi',
# 1: u'BWcQLJrjCIZJTtwMQpJM',
# 2: [u'NAGNYxVkOPuiAKyujfcX', 3430]}},
# u'laboriosam': { 4: u'ericlopez@yahoo.com',
# 5: [1199, u'FgLBoMOKGPUYPQoQumDr', 4333],
# 6: { 4: u'dOhZxlhtJljKvUEouzXT',
# 5: 3154,
# 6: [ Decimal('44871556279.5'),
# u'bkFygsyDKzydKlyioyFp']}},
# u'laborum': { 5: -21712327.179,
# 6: [ 9617,
# datetime(2017, 3, 26, 10, 56, 7),
# datetime(2008, 10, 18, 1, 2, 33)],
# 7: { 5: Decimal('-957.58425'),
# 6: 3639,
# 7: [4131, 1715]}},
# u'magnam': { 8: -872377573.6,
# 9: [ datetime(2016, 3, 13, 3, 0, 6),
# -986380773361.0,
# u'aprilbishop@hotmail.com'],
# 10: { 8: u'vMjCQBkeWkiDYhFKRSoH',
# 9: u'rAtxYjiDRFeISNLZBQxs',
# 10: [3221, u'KzWgmWUWQpPCQrWjKtlS']}},
# u'mollitia': { 1: 885800663225.949,
# 2: [ Decimal('-50026478769.7'),
# 8513,
# Decimal('-5.60088952529')],
# 3: { 1: u'https://www.mendoza.net/category.php',
# 2: -99578562.8,
# 3: [ Decimal('5190954.5639'),
# u'TslqlRuMSFvlGtNBWDHL']}},
# u'nihil': { 7: 7434,
# 8: [ 4792,
# datetime(1978, 10, 1, 8, 5, 19),
# Decimal('7308513517.86')],
# 9: { 7: u'AGLFdiwWFpAnWlXvubqm',
# 8: u'JbaJvGsGhjUrgUnlyBVT',
# 9: [ u'wreynolds@barnes-jordan.info',
# u'GAJlUjgttQdIbxrxojUx']}},
# u'quam': { 9: u'CqLzZsKbkNfnaRoKuOiw',
# 10: [ u'RLUcdQTgsPBXFyzROPsL',
# 4188,
# Decimal('-27919612956.9')],
# 11: { 9: u'qofbXHcyJMSlamCsPKya',
# 10: Decimal('-8.40061313609E+14'),
# 11: [6224, datetime(2007, 1, 23, 9, 17, 8)]}},
# u'sit': { 2: u'KglSCnlyUZoafbsgJlYB',
# 3: [ u'scQTWkERVFJjXiHFBASM',
# u'https://www.thomas.com/search/',
# u'eIlvKGrsARlHMrwImUmZ'],
# 4: { 2: u'QmuIcUhPgnOZKGkXWUmy',
# 3: u'nffCjVznaBQpxRrMctDJ',
# 4: [ u'kjones@gmail.com',
# u'hWmrZiNJLQFLsgihtvIE']}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -155230201.729
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('18440.821')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'tvwLjijqkluzEByiLWVW',
# Decimal('-226637218.7'),
# -7457007138.352,
# u'dZLAiThqBCNCVaKJHYzC',
# u'NxeMgWlHSOEqSevtYTZQ',
# u'tQCJvFygHEmBVscCVsUo',
# -1071633097.0,
# u'kOJEKInIgmRuVkuEQGgG',
# u'SsfPXOQXdPxegdcghhPL',
# u'DrFLfPXtlPLQuikgFOlv',
# u'rjWXQASxotihdKXroGpl']
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( u'http://www.rice.com/tag/blog/author.asp',
# u'FeVrybUKCmQTJHVwQiRp',
# u'https://young.biz/posts/posts/post/',
# u'vJfZqGRBAnuStYUHfyrO',
# u'ypwHTSgxtzzJdRdxfxHG',
# datetime(2005, 10, 21, 9, 32, 5),
# 5097,
# 7161,
# u'vyDeyjmsRTnWJfrRDmNq',
# 8125,
# u'https://www.white-becker.com/faq.htm')
fake.pybool()
# True
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([u'https://www.kramer.biz/homepage/', datetime(1995, 6, 2, 13, 31, 50), u'GbZVcQeiBMijGoqvJagW', u'gZkxHErCnSYDIpOZaATH', 1948029899.0, 8526, u'https://burton-wang.info/category/', u'http://drake-freeman.com/index/', Decimal('-696725.852'), u'sZILgdwpjKPfbIuILvqa', 4123, u'judith28@yahoo.com'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'ab': u'IOzErVnSYTIQWMRMxKnP',
# u'amet': u'https://martin-jackson.com/',
# u'animi': 1027,
# u'fugiat': 7050,
# u'odio': 9054,
# u'quia': -711981.0,
# u'quibusdam': u'odoyle@gmail.com',
# u'quis': u'UTLJHGkujtLDBqOYTWEb',
# u'sunt': 322,
# u'veniam': datetime(1981, 5, 14, 7, 16, 21),
# u'voluptatibus': Decimal('34.190537'),
# u'voluptatum': u'uEayrHuzRUbpaLfhDjWC'}
fake.pyint()
# 5284
faker.providers.ssn
¶
fake.ssn()
# u'489 711 036 '
faker.providers.user_agent
¶
fake.mac_processor()
# u'PPC'
fake.firefox()
# u'Mozilla/5.0 (Windows 98; Win 9x 4.90; cs-CZ; rv:1.9.2.20) Gecko/2010-08-29 21:36:01 Firefox/3.6.2'
fake.linux_platform_token()
# u'X11; Linux i686'
fake.opera()
# u'Opera/9.23.(Windows NT 4.0; sk-SK) Presto/2.9.170 Version/12.00'
fake.windows_platform_token()
# u'Windows NT 6.1'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.2; Trident/3.0)'
fake.user_agent()
# u'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_8_2) AppleWebKit/5361 (KHTML, like Gecko) Chrome/15.0.845.0 Safari/5361'
fake.chrome()
# u'Mozilla/5.0 (X11; Linux i686) AppleWebKit/5322 (KHTML, like Gecko) Chrome/14.0.806.0 Safari/5322'
fake.linux_processor()
# u'i686'
fake.mac_platform_token()
# u'Macintosh; U; Intel Mac OS X 10_6_5'
fake.safari()
# u'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_0 like Mac OS X; fi-FI) AppleWebKit/531.43.1 (KHTML, like Gecko) Version/3.0.5 Mobile/8B113 Safari/6531.43.1'