Language en_CA¶
faker.providers.address
¶
fake.latitude()
# Decimal('3.547573')
fake.street_name()
# u'Richardson Plains'
fake.address()
# u'61383 Rodriguez Mill\nClarkport, BC H2A7T4'
fake.street_address()
# u'984 Randolph Shoals'
fake.postcode()
# u'04757'
fake.country_code(representation="alpha-2")
# u'ZW'
fake.longitude()
# Decimal('142.983628')
fake.country()
# u'France'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('108.106159')
fake.postal_code_letter()
# u'E'
fake.province()
# u'Quebec'
fake.city_prefix()
# u'West'
fake.city_suffix()
# u'fort'
fake.building_number()
# u'2803'
fake.street_suffix()
# u'Parkway'
fake.secondary_address()
# u'Suite 853'
fake.city()
# u'Leachstad'
fake.province_abbr()
# u'MB'
fake.postalcode()
# u'C2M9A2'
faker.providers.automotive
¶
fake.license_plate()
# u'194869'
faker.providers.bank
¶
fake.bban()
# 'ICOU0756326605256'
fake.bank_country()
# 'GB'
fake.iban()
# 'GB92YZIA8665141523241'
faker.providers.barcode
¶
fake.ean(length=13)
# u'5009379445660'
fake.ean13()
# u'3570771491538'
fake.ean8()
# u'87558647'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(39,113,131)'
fake.color_name()
# u'Crimson'
fake.rgb_color()
# u'96,16,188'
fake.safe_hex_color()
# u'#ee9900'
fake.safe_color_name()
# u'blue'
fake.hex_color()
# u'#c600de'
faker.providers.company
¶
fake.company()
# u'Williams-Castro'
fake.company_suffix()
# u'LLC'
fake.catch_phrase()
# u'Optional maximized initiative'
fake.bs()
# u'leverage viral action-items'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'328'
fake.credit_card_provider(card_type=None)
# u'VISA 19 digit'
fake.credit_card_full(card_type=None)
# u'Diners Club / Carte Blanche\nAbigail George\n30032728873420 12/27\nCVC: 769\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '08/26'
fake.credit_card_number(card_type=None)
# u'5137105835170954'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'NEO'
fake.currency_code()
# 'BDT'
fake.currency_name()
# 'Zimbabwean dollar'
fake.cryptocurrency_name()
# 'Coinye'
fake.cryptocurrency()
# ('ETH', 'Ethereum')
fake.currency()
# ('GEL', 'Georgian lari')
faker.providers.date_time
¶
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 8, 23, 15, 16, 28)
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xf5c2ead0>
fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 8, 17)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(1999, 12, 4, 8, 16, 11)
fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2018, 4, 21)
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 8, 8, 19, 38, 50)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 8, 1)
fake.day_of_week()
# 'Sunday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 7, 24, 22, 3, 15)
fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2009, 1, 1)
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2009, 7, 30, 21, 15, 10)
fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '1993-12-11'
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 8, 17, 8, 10, 41)
fake.date_object(end_datetime=None)
# datetime.date(1995, 5, 19)
fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 4, 5)
fake.iso8601(tzinfo=None, end_datetime=None)
# '1982-06-14T07:22:21'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 9, 10)
fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2013, 12, 24)
fake.month()
# '03'
fake.year()
# '1970'
fake.day_of_month()
# '13'
fake.unix_time(end_datetime=None, start_datetime=None)
# 237639755
fake.timezone()
# u'Europe/Luxembourg'
fake.century()
# u'VIII'
fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1982, 3, 21)
fake.time_object(end_datetime=None)
# datetime.time(12, 34, 4)
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 3, 4, 8, 42, 1)
fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(2015, 9, 4, 11, 14, 40)
fake.time(pattern="%H:%M:%S", end_datetime=None)
# '15:36:16'
fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 8, 12)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 8, 4, 21, 18, 11)
fake.month_name()
# 'October'
fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(742, 12, 3, 11, 18, 25)
fake.time_delta(end_datetime=None)
# datetime.timedelta(6447, 29465)
faker.providers.file
¶
fake.unix_device(prefix=None)
# u'/dev/sdl'
fake.mime_type(category=None)
# u'application/EDI-X12'
fake.file_path(depth=1, category=None, extension=None)
# u'/sed/harum.pptx'
fake.unix_partition(prefix=None)
# u'/dev/sdk3'
fake.file_name(category=None, extension=None)
# u'illum.txt'
fake.file_extension(category=None)
# u'jpeg'
faker.providers.internet
¶
fake.ascii_free_email(*args, **kwargs)
# 'dakota50@gmail.com'
fake.image_url(width=None, height=None)
# u'https://dummyimage.com/368x899'
fake.tld()
# u'info'
fake.email(*args, **kwargs)
# u'teresa58@hutchinson.com'
fake.url(schemes=None)
# u'https://www.todd-kim.com/'
fake.ipv4_private(network=False, address_class=None)
# '172.18.25.155'
fake.user_name(*args, **kwargs)
# u'nelsondavid'
fake.uri_extension()
# u'.asp'
fake.uri_page()
# u'register'
fake.free_email_domain(*args, **kwargs)
# u'yahoo.com'
fake.safe_email(*args, **kwargs)
# u'schwartztroy@example.net'
fake.ascii_email(*args, **kwargs)
# 'lmorales@duffy-dunn.com'
fake.ipv4_network_class()
# u'c'
fake.ipv4_public(network=False, address_class=None)
# '170.180.251.42'
fake.ascii_company_email(*args, **kwargs)
# 'jennifer54@porter.com'
fake.domain_name(*args, **kwargs)
# u'flores.org'
fake.ipv4(network=False, address_class=None, private=None)
# '87.248.77.30'
fake.domain_word(*args, **kwargs)
# u'montgomery-rogers'
fake.slug(*args, **kwargs)
# u'doloribus-libero'
fake.uri_path(deep=None)
# u'posts'
fake.company_email(*args, **kwargs)
# u'oliveredward@melton-adkins.com'
fake.uri()
# u'https://kennedy-yang.com/category/tag/categories/author/'
fake.ipv6(network=False)
# '59ec:3599:71d3:34a:c614:716d:9126:9bf9'
fake.free_email(*args, **kwargs)
# u'kathy90@hotmail.com'
fake.ascii_safe_email(*args, **kwargs)
# 'taylorking@example.org'
fake.mac_address()
# u'f8:9d:78:20:f5:8c'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'0-680-02540-5'
fake.isbn13(separator="-")
# u'978-1-262-83712-2'
faker.providers.job
¶
fake.job()
# 'Sports coach'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Deserunt fugiat consequuntur blanditiis aliquid. Officiis culpa nesciunt quibusdam. Reprehenderit esse voluptatem praesentium illo facere.\nAccusamus aliquam aliquid distinctio.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Vitae expedita nulla dicta. Laboriosam dolor ipsa non dolorum adipisci consequatur. Vitae totam dolorum et non consectetur.',
# u'Vero officiis eligendi eveniet officia. Omnis totam nam ab possimus cupiditate. Quaerat ea veritatis molestiae ullam quaerat ipsa.',
# u'Error beatae quos modi libero assumenda porro. Id nesciunt voluptatibus vitae temporibus id qui.']
fake.words(nb=3, ext_word_list=None)
# [u'ullam', u'maiores', u'rem']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Quod illo unde vitae reiciendis voluptatum assumenda aut.',
# u'Illum nemo modi.',
# u'Corrupti accusamus dicta rerum similique.']
fake.word(ext_word_list=None)
# u'occaecati'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Rerum voluptatibus fugiat. At iure accusantium ullam quaerat. Itaque pariatur laboriosam.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'At eius pariatur perspiciatis ad enim.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'L!(l4Zfp^m'
fake.locale()
# u'tg_TJ'
fake.binary(length=1048576)
# bytearray(b'\xec\xe8\x96,\x1b\xfc\xaf5ymRQK\xf1\xc3\xb9+\x1d\x8f\x8a\xb1\x14\xae\xac\xf5\xdc\xc2Xo\x95\x037h\xaa\xe2\x81\r\xb7\xfc\xb3Nw"\xd1\xab\xc9\xef\x06\xe6/\xc9\xa4m\xccs]\xd4\xd4\xa3"\xd0\xf2DZ\x8ezMR\xebXr\x95\x0e\x9e\x16\xc7\xae(\xa4\x90\xbb\xdfv\x100e\x04e\xd5Q\x12(\x14\x04\x9e\xc7\xcd"s\x82\xa1\x84$\xa6\x92\xe2\x17\x94\x8a\xf975o\xc2~t\x0c\x1b\x84\x0e\x8d\x9d\x80\x8fQh\x89s\x03\xa0Ok\x15\x1e\xb7\xf2\xa6\xb4\xf7\x10\xcf\x98\xa8\x9a\xd4\\\xfe\x87\xd4\x19\x8d\x84\xceH\xd4\x9c\xdf[\xde.\x11d\x8f<\xff\xe8\xe6\xc0\x9f\xb32\xeaQ\x9a\xae\xa24\xd7(\xc7\xa5\x9b\xaa#\xa6p*\xd4\xc2#\xcdD:M\x7f\xeab\xb9\xe1\xcf\xaf\x80\xe6\xfb\xb8s?\xfb\x96\xf7\x9b\\0Q\xe5\xef\xbdt;\x0e\xe4\x1a\x11f?\x94\xe1p\x86\xab\xd0\xd9\x9b\x8e\x96<J\x97\x94\x9b\\Ji\x99?\xe8\xab\xa5Zz\x1b\xaa\xe3d\x11>r\xed\x1e\xac\xf48\xcfSpG\xc9\x07\xf7\xed\xc5+\xa5\xaa@T\xc4\xcc\xbfJ\x0cJ=4\xa2\x08\xd3\xd0\xb2#\xc3\x1f\xd4\xeb\xa4\n\x90\x1a\xe7\x88#\xbb\xf4\xbf=\x88r\xb4\x1f\xe1\xc1\x8ex\xdf>\x17\xeb\xb5o\xba@(\x0cF\x0b\xbd}\x9b \x1eneqm\xdc\xe4C\xd7\x83\xf58u,-\xde{)a#\xf1\x0fy\xd6\xde\x19p\x9b\x8d\x1f~\xade\x06}\x9duc\xe1BO\xb3,S\x9c\x8b\x9d\xc1K\xcdsY|\xc6\xca\xb9\xf1J\xfb\x92#\xee\x0eo\x8b\xea \xfb\xdf\xde\xf7\xe5\n\x07\x12\x81B\x92\x83\x1eL/-!\xcfFH\xa7\x7f*\xf4\xd1Q\x0f\xb0\xe9X\xd4\xfc\xbc,\xd0c0\xfc@\x1c\xb20\xe3"\x8f=\xb5\xea\xc6\xd3\x1eu\xc4n1"_!\xf8&\xcc\x0f\xa2\xdb\x82j\xc4#\xafn\xe1\xaa\x8c\xbc\xd9?\xf0\x91,\x0eX~\xbe\xa8\xafmB/2\xcc"\xf1\xb1\x84\x88\xc3Bw\xfd\xe9#\xd1Sq\xf2lOs\x0cX\xdbabD\xb2\x93M\x03u^\x1b\xefW\xcd\x1a\x9a\x06\x94\xf5\x18\x9a\x9e\x17\x8a,a\xfe\xbe\xaf\xb5\xd6\x01\xfa\x06:\xa7R\xad\xa6Zd9\x17\xb0\xa1\x06\x00\x15\xb0C(}\x10\xbc\x1c\x8b\xfd\xf5\xbd\x7f\x1by\x88M\xb2\x01d\xd7\xce\x89P\x0f\xa6s\xb3Y\xfe\nO\xe8\x86\x02o\xf6\xc0\x87C\xc7\xafj&\xca\xd1\xc3\xba\x12w7\xa7\xff\xf9\xc8<\xee\xb5\t\x95\x9c\x82\x96\x06w\x9ehP\x83<@i\xe0,<i\xd8\x9c\x8f\x12\x94\x80%6h\x18K\'\xb1p<\xa2\xfb\x8d\xd3\x0b\xc7\'Ti\x9e\xf8kZ\x0cK@(.2\x1b\xac\xb9V\xb2f\n\x1a\xde0Q\xfcT\x9a\xb9\x1c\xa0\xfc\xee\xf1w\xee\xf9\xdf\x04]v\x1fN(\x08~\xe5)[\xd1\x05\xb6\xa80\xc7\xbdqrB\x90\xe1l\r|\x94\x98\x06Q>\x9a\\\xff\xfe%\xd5\xb4\x8b\xb0[U\xe7\xce\xe6\xa0v\xddK\xb0J\x9e\xa7zG\x8b\xf9\xcakf\xb3\x93<NH\x937V#R\x0fM\x06\xdf\x0c\x11\xb77\xac\x8c\x80\xa8\xb9\xf5\xfc\t\x94V\x8d!\xab\xb5G\x82\x1a9\x8e\xc0\xd9}{\x04\x8d\xf0\x93Q\x83\xf2\x13\xe7jz\xbb\xfc\x13\x9d\nL\xa7\x17\xcc<C\xeaB\x83\xc5\xed\x17C\xdc8X\xf1\x9bfYY\xc9\xce\xfb\xcc\xb9 \xc5\xeedAe\xff1\xfbD\xe4-\xd4R\x8cx\x11\xfeo7\x01\xa2\xd8\xde\xf8\xe3H2-\xa3\xa1\x84T\xd7z!\xc5u{\xf2\xd1e\xe4\xae\x00JFP\x8fb_\xd7\xd3\x15\x91\xee\x1b}\xc3\xd3\x94\x19\x9cM\xfa\xba\nDmm\x02{p\xe4QD\xf9\xac!\x98\xde\xf2\x0fB\x1e\x1a\xfb\xc7\x0f?;\x84\xa8\xb9\x99Z\xcc\x9b\x86f8\r4\xc6[7%;\xe7Lq\x1c\x94\x80\xfa\xad\x9f\xfc\x9e\x11\xe3\x13&^\xb3o\x9cCy\xc9\x976Q\xf8u-\x99\xab\xb0W\x15\x9aSp\x04\xea\xd2\x87\xda1\xf1\xe2O$Z&\xc8\xd1&K\xe9]s\xfd\x9c\xc0\x96\x17\xb7\x1d\x80o\n\xf5\x11?\xff\xda\x8eaD^\xefc\xdce7\x1fm\xbb\\{\xf5\x0e')
fake.md5(raw_output=False)
# 'c69cdbbd8e1a3d2fb97760dc66499f7a'
fake.sha1(raw_output=False)
# '5ab62bfbfbfa8fd90b91aa075409241aa828590d'
fake.null_boolean()
# True
fake.sha256(raw_output=False)
# '20582905c76e3276e04294daa64b6d4c4bf47bb2a891fb40e711a14e1675460d'
fake.uuid4()
# '134a1b93-f13e-7011-b578-2c7b5ee6c557'
fake.language_code()
# u'mi'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'Miller'
fake.name_female()
# u'Mary Taylor'
fake.prefix_male()
# u'Dr.'
fake.prefix()
# u'Dr.'
fake.name()
# u'Blake Walker'
fake.suffix_female()
# u'MD'
fake.name_male()
# u'Christopher Harrell'
fake.first_name()
# u'James'
fake.suffix_male()
# u'DVM'
fake.suffix()
# u'DDS'
fake.first_name_male()
# u'Charles'
fake.first_name_female()
# u'Dawn'
fake.last_name_female()
# u'Shepherd'
fake.last_name()
# u'Murphy'
fake.prefix_female()
# u'Ms.'
faker.providers.phone_number
¶
fake.phone_number()
# u'390.309.8527'
fake.msisdn()
# '2960157815552'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'51632 Barbara Alley\nZavalaside, NB A1S5J1',
# 'birthdate': datetime.date(1959, 3, 31),
# 'mail': u'martinmitchell@yahoo.com',
# 'name': u'Patrick Grant',
# 'sex': 'M',
# 'username': u'katherinehansen'}
fake.profile(fields=None, sex=None)
# { 'address': u'0870 Kim Spring\nBooneland, PE E7R1P5',
# 'birthdate': datetime.date(1994, 2, 13),
# 'blood_group': 'AB-',
# 'company': u'Conway Inc',
# 'current_location': (Decimal('-43.553425'), Decimal('175.055028')),
# 'job': 'Herbalist',
# 'mail': u'qmoran@yahoo.com',
# 'name': u'Renee Hartman',
# 'residence': u'779 Lopez Tunnel Apt. 719\nPort Jessica, BC G9P 7P3',
# 'sex': 'F',
# 'ssn': u'114 733 744',
# 'username': u'pamela58',
# 'website': [ u'http://www.harris.biz/',
# u'https://www.guzman-davis.net/',
# u'http://castillo.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ 9144,
# 2027,
# 5496,
# u'KdxsYmdotxkyZlSBRJDK',
# u'uOfnVNggGdvouLCSCbGP',
# u'brian67@riddle-allen.org',
# u'wmHmovhNpEzDVYMIUuuZ',
# u'wgMXkTgmcELiOSsBXFMC',
# u'xotlFvBCQgHjEUFQOixn',
# u'jcrawford@gmail.com',
# u'yxgcgntZXUzXaotbHCXl',
# u'https://www.west-thompson.com/blog/author/',
# datetime.datetime(1988, 7, 6, 11, 30, 7)]
fake.pystr(min_chars=None, max_chars=20)
# u'LfyoUlQYeOlzwDPtkTQc'
fake.pystruct(count=10, *value_types)
# ( [ datetime.datetime(2006, 12, 9, 4, 37, 41),
# u'https://williams-forbes.com/blog/app/post.htm',
# Decimal('-9.538458815'),
# u'bellandrea@hotmail.com',
# Decimal('-28772.0'),
# 7565,
# u'zpppdotRMXWUDpYDJCPH',
# 1596,
# u'https://www.washington-torres.biz/posts/about/',
# datetime.datetime(1973, 10, 7, 0, 45, 31)],
# { u'eaque': 9877,
# u'impedit': u'sMTnnHVXFcfcGPKDMteD',
# u'laborum': -27093302664.3,
# u'minus': u'MZSRjbkreYxGVzfYhCkx',
# u'nisi': u'http://www.shaw.com/app/posts/main/faq/',
# u'odit': 7749717920.365,
# u'quae': 9959,
# u'quidem': u'zPjfoXuOHOmZexztdrDw',
# u'repellendus': u'https://www.shields.com/wp-content/privacy.php',
# u'sit': u'nXVpGozWznsURLuEgqwx'},
# { u'accusamus': { 9: Decimal('77917439.4443'),
# 10: [ u'FTxgZzifqHMFcXPLFBrR',
# 9696,
# u'yhlpVHAHeGsvCqOZycps'],
# 11: { 9: u'aEuQMwbszJDdgKnQekbO',
# 10: 3196,
# 11: [2950, 5607]}},
# u'aliquam': { 6: u'FWafZlAjRzxXckhKZKrk',
# 7: [ u'fchristensen@johnson.com',
# u'spotoMkRmTjYZAkeTyXg',
# datetime.datetime(1981, 2, 7, 13, 4, 55)],
# 8: { 6: u'sTjELQKnfjOYxqlWzTsa',
# 7: u'IawmVGXJwGRFrPSsLSiN',
# 8: [ u'https://lara.com/search/login/',
# u'AqombiLAbXSfyNmpihhB']}},
# u'consectetur': { 5: u'cynthia85@lyons-hardy.biz',
# 6: [ Decimal('-41746515115.4'),
# 4252,
# u'bSpwleoOzVpbZDoakMxG'],
# 7: { 5: u'DNpEKdrMwSCZYRAobstZ',
# 6: datetime.datetime(1995, 7, 27, 21, 20, 22),
# 7: [ datetime.datetime(1986, 8, 30, 16, 49, 29),
# u'JIAUgGIwAZwhBVFPnPkt']}},
# u'deserunt': { 1: -56293.0,
# 2: [ u'INIVqajUdwSXhzOTtHqg',
# u'jxTxIBRurIYqsLhqElRq',
# 5067],
# 3: { 1: 81249.2,
# 2: u'OfqvipcBQDxYESekqFGL',
# 3: [-81089868620392.0, u'privera@long.biz']}},
# u'esse': { 8: -22792888942.5,
# 9: [ -53399.0,
# u'jennifersmith@brown.info',
# u'gpatton@hardy.com'],
# 10: { 8: u'ViowdJSFVOiIUrmbAeXl',
# 9: u'rvQAPUDPWfMmrwhFNxkn',
# 10: [6142, u'http://www.stevens.com/post/']}},
# u'excepturi': { 4: u'grantkathleen@burch.com',
# 5: [ u'qKVLqelonAsNLquNRtqs',
# u'kSNvePlVujeFFZULuJAz',
# u'mcknightmichelle@hotmail.com'],
# 6: { 4: 8891307.22994684,
# 5: datetime.datetime(2018, 1, 6, 16, 37, 57),
# 6: [ u'qcabrera@yahoo.com',
# Decimal('185312441988')]}},
# u'illum': { 7: 7655,
# 8: [ u'qQkGIfivaBiLSPqnVkLq',
# datetime.datetime(2003, 4, 10, 14, 29, 29),
# u'RgtRhPvlcwUuobDCCdNh'],
# 9: { 7: u'VwSKmKrVztrICbYrwUgp',
# 8: u'SnxhwvWJWDdLyTZjyKxh',
# 9: [6975, u'yallen@velasquez-hall.com']}},
# u'ipsum': { 3: 518.0,
# 4: [ u'yFTpbRiMOwFMSlmBMZzL',
# u'KbgWWsIwOSfDHkSWjiYt',
# 8749145218472.0],
# 5: { 3: u'aXATgWoLhLNxXUvMCmmz',
# 4: datetime.datetime(2011, 1, 4, 19, 41, 41),
# 5: [ u'DNcVuyaYinSoPhNNNOGo',
# datetime.datetime(1988, 2, 3, 14, 38, 49)]}},
# u'quis': { 2: Decimal('5667.596907'),
# 3: [ 6669,
# u'robertsmichelle@yahoo.com',
# u'wyMqxhKUkLjzIcULKExg'],
# 4: { 2: u'JOZVfuklGuflnhVnEOGf',
# 3: datetime.datetime(1975, 8, 31, 19, 42, 8),
# 4: [ u'hSfhqqhCoCcnoPRwonCX',
# u'https://wells.com/faq.html']}},
# u'voluptates': { 0: 8438,
# 1: [ u'cpoGnMzFTNAIGcpHsFvf',
# u'http://www.escobar-kelly.info/',
# u'HVIfZvNzGYlovLEngMYG'],
# 2: { 0: u'SuXdpIsqTrUfuzeduEvK',
# 1: u'rbncWgLqJAoHBPBUuhCx',
# 2: [ u'JIagXVQutXkqYWeQurwq',
# u'https://www.gomez.com/about.jsp']}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -4001.12827
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('-7550074775.1')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ 5076,
# u'PzLJCTykSqjuFEHqudUs',
# datetime.datetime(1974, 2, 15, 15, 6, 48),
# u'CjFltQkZrYopwkQWtRwu',
# u'courtneyward@terry.com',
# u'hWBLeZmZNxiCufCrdfXH',
# datetime.datetime(1981, 8, 4, 18, 9, 28),
# u'VtdQvwpcGeadKngWgQbj',
# u'RyYIshZRZrkkjEeHOrOn',
# 35939039645.663,
# datetime.datetime(2010, 8, 30, 5, 13, 13)]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( 9987,
# datetime.datetime(1972, 6, 29, 22, 36, 9),
# Decimal('-48235225.1609'),
# Decimal('242594196818'),
# u'VafdkhIUngTryUNMvqHq',
# u'lynnallen@brown.com',
# 2226,
# u'https://valdez.org/author.jsp',
# datetime.datetime(2013, 6, 27, 0, 17, 10))
fake.pybool()
# False
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([u'leRHseXUykZZbfxutPlV', u'wvCzOjjZEQLycfouCjpI', datetime.datetime(2013, 5, 6, 2, 50, 35), u'HGHXrHwLhIhrcZWSrbMK', u'jennifer04@sanchez.com', Decimal('-92395.75833')])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'at': datetime.datetime(2007, 5, 1, 15, 7, 27),
# u'autem': datetime.datetime(2008, 6, 1, 15, 3, 26),
# u'blanditiis': 46610.2678890291,
# u'dicta': u'FgBzNyPXrYqnHPscYRke',
# u'dolorem': -920183.854,
# u'ducimus': u'IyMnASwcsqGWjCEGWOBL',
# u'facilis': Decimal('81298.843734'),
# u'illum': u'https://koch.com/tags/register.html',
# u'odit': datetime.datetime(2010, 10, 10, 10, 56, 47),
# u'pariatur': u'PIpoBKTrYQdgmlPtnixF',
# u'provident': 4827,
# u'reprehenderit': u'hENRzqquQsmdPNLrveYh',
# u'sunt': Decimal('-30428.533594')}
fake.pyint()
# 7489
faker.providers.ssn
¶
fake.ssn()
# u'140 266 289'
faker.providers.user_agent
¶
fake.mac_processor()
# u'U; PPC'
fake.firefox()
# u'Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/2010-01-31 11:36:26 Firefox/3.6.6'
fake.linux_platform_token()
# u'X11; Linux i686'
fake.opera()
# u'Opera/9.64.(X11; Linux i686; uk-UA) Presto/2.9.181 Version/10.00'
fake.windows_platform_token()
# u'Windows NT 6.0'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 7.0; Windows CE; Trident/4.0)'
fake.user_agent()
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_1; rv:1.9.2.20) Gecko/2013-02-11 13:55:21 Firefox/3.8'
fake.linux_processor()
# u'i686'
fake.chrome(version_from=13, version_to=63, build_from=800, build_to=899)
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_12_2) AppleWebKit/5312 (KHTML, like Gecko) Chrome/42.0.813.0 Safari/5312'
fake.mac_platform_token()
# u'Macintosh; U; PPC Mac OS X 10_11_0'
fake.safari()
# u'Mozilla/5.0 (Windows; U; Windows NT 4.0) AppleWebKit/534.24.6 (KHTML, like Gecko) Version/5.0.4 Safari/534.24.6'