Language en_US¶
faker.providers.address
¶
fake.longitude()
# Decimal('100.944471')
fake.building_number()
# u'3241'
fake.street_address()
# u'5597 Justin Grove'
fake.postalcode_plus4()
# u'95461-3503'
fake.city_prefix()
# u'North'
fake.military_ship()
# u'USNV'
fake.city()
# u'Isaacview'
fake.zipcode_plus4()
# u'19474-8119'
fake.state_abbr()
# u'MT'
fake.latitude()
# Decimal('54.105650')
fake.street_suffix()
# u'Via'
fake.city_suffix()
# u'bury'
fake.military_dpo()
# u'Unit 5048 Box 7743'
fake.country_code(representation="alpha-2")
# u'GD'
fake.country()
# u'Philippines'
fake.secondary_address()
# u'Apt. 110'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('-61.339999')
fake.postalcode()
# u'11194'
fake.address()
# u'48832 John Well\nLake Daniellebury, AZ 78082-7378'
fake.state()
# u'Nevada'
fake.military_state()
# u'AE'
fake.street_name()
# u'Crystal Isle'
fake.zipcode()
# u'07269'
fake.postcode()
# u'75530-2624'
fake.military_apo()
# u'PSC 5767, Box 0264'
faker.providers.automotive
¶
fake.license_plate()
# u'853VN'
faker.providers.bank
¶
fake.bban()
# 'FYMQ7891136944383'
fake.bank_country()
# 'GB'
fake.iban()
# 'GB68DXFX7848099938286'
faker.providers.barcode
¶
fake.ean(length=13)
# u'0735796483750'
fake.ean13()
# u'2830332683316'
fake.ean8()
# u'31251419'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(157,96,233)'
fake.color_name()
# u'PaleGoldenRod'
fake.rgb_color()
# u'99,197,166'
fake.safe_hex_color()
# u'#bbaa00'
fake.safe_color_name()
# u'aqua'
fake.hex_color()
# u'#488c70'
faker.providers.company
¶
fake.company()
# u'Williams, Jenkins and Brock'
fake.company_suffix()
# u'PLC'
fake.catch_phrase()
# u'Pre-emptive systemic alliance'
fake.bs()
# u'monetize cross-media convergence'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'972'
fake.credit_card_provider(card_type=None)
# u'JCB 16 digit'
fake.credit_card_full(card_type=None)
# u'VISA 19 digit\nMary Green\n4400831286888469846 09/25\nCVC: 903\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '11/20'
fake.credit_card_number(card_type=None)
# u'6011656566231588'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'STC'
fake.currency_code()
# 'MGA'
fake.currency_name()
# 'Eritrean nakfa'
fake.cryptocurrency_name()
# 'EOS.IO'
fake.cryptocurrency()
# ('NXT', 'Nxt')
fake.currency()
# ('EUR', 'Euro')
faker.providers.date_time
¶
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 9, 10, 1, 58, 9)
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xf5c6aeb8>
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(1996, 12, 31, 13, 16, 57)
fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2012, 5, 6)
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 8, 9, 11, 28, 8)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 8, 5)
fake.day_of_week()
# 'Thursday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 10, 8, 11, 55, 44)
fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2006, 2, 9)
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2013, 11, 22, 21, 11, 46)
fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '1978-06-01'
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 8, 17, 8, 10, 42)
fake.date_object(end_datetime=None)
# datetime.date(1995, 9, 26)
fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 7, 23)
fake.iso8601(tzinfo=None, end_datetime=None)
# '1998-09-21T01:00:02'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 9, 15)
fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2015, 12, 19)
fake.month()
# '12'
fake.year()
# '2011'
fake.day_of_month()
# '06'
fake.unix_time(end_datetime=None, start_datetime=None)
# 175024797
fake.timezone()
# u'Europe/Minsk'
fake.century()
# u'VI'
fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1904, 8, 10)
fake.time_object(end_datetime=None)
# datetime.time(1, 44, 13)
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 2, 22, 14, 32, 46)
fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1978, 9, 30, 21, 50, 14)
fake.time(pattern="%H:%M:%S", end_datetime=None)
# '14:59:09'
fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 8, 9)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 8, 3, 4, 30, 14)
fake.month_name()
# 'April'
fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(58, 1, 1, 22, 34, 48)
fake.time_delta(end_datetime=None)
# datetime.timedelta(17651, 42896)
faker.providers.file
¶
fake.unix_device(prefix=None)
# u'/dev/vdw'
fake.mime_type(category=None)
# u'image/pjpeg'
fake.file_path(depth=1, category=None, extension=None)
# u'/rule/century.html'
fake.unix_partition(prefix=None)
# u'/dev/vdo0'
fake.file_name(category=None, extension=None)
# u'job.pages'
fake.file_extension(category=None)
# u'odt'
faker.providers.internet
¶
fake.ascii_free_email(*args, **kwargs)
# 'christopherbanks@yahoo.com'
fake.image_url(width=None, height=None)
# u'https://www.lorempixel.com/803/562'
fake.tld()
# u'com'
fake.email(*args, **kwargs)
# u'william64@cohen.com'
fake.url(schemes=None)
# u'https://peters-reeves.org/'
fake.ipv4_private(network=False, address_class=None)
# '172.29.137.161'
fake.user_name(*args, **kwargs)
# u'kimsharp'
fake.uri_extension()
# u'.htm'
fake.uri_page()
# u'privacy'
fake.free_email_domain(*args, **kwargs)
# u'hotmail.com'
fake.safe_email(*args, **kwargs)
# u'meganknox@example.net'
fake.ascii_email(*args, **kwargs)
# 'tyler74@patel-cox.net'
fake.ipv4_network_class()
# u'c'
fake.ipv4_public(network=False, address_class=None)
# '46.104.86.25'
fake.ascii_company_email(*args, **kwargs)
# 'paulcampbell@meyer.com'
fake.domain_name(*args, **kwargs)
# u'smith.com'
fake.ipv4(network=False, address_class=None, private=None)
# '31.226.130.30'
fake.domain_word(*args, **kwargs)
# u'mayer'
fake.slug(*args, **kwargs)
# u'his-decade-american'
fake.uri_path(deep=None)
# u'app/tags'
fake.company_email(*args, **kwargs)
# u'karenfrost@watkins.net'
fake.uri()
# u'http://jordan.org/posts/tags/search/faq/'
fake.ipv6(network=False)
# '7c18:6253:76c7:b475:99f5:ee00:a1b2:8d7c'
fake.free_email(*args, **kwargs)
# u'garciaadam@gmail.com'
fake.ascii_safe_email(*args, **kwargs)
# 'pamela84@example.org'
fake.mac_address()
# u'19:d2:36:ab:f2:c1'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'1-322-43485-9'
fake.isbn13(separator="-")
# u'978-0-08-012785-9'
faker.providers.job
¶
fake.job()
# 'Technical brewer'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Appear join many strong travel customer. Company ask fight surface seat today. Leader although focus manage become. Course defense spring past training experience.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Your former fear.',
# u'Born get total coach. Official probably easy beyond human check eight. Care piece reveal store city society.',
# u'Statement south end watch tax town example. Art drug loss leave. Relate value cost else message difference while.']
fake.words(nb=3, ext_word_list=None)
# [u'environmental', u'street', u'itself']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Word although sort capital.',
# u'Often body maybe material.',
# u'Example voice assume grow dinner certainly general.']
fake.word(ext_word_list=None)
# u'only'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Its scientist girl down impact family trip. Recognize send marriage finally option enter leader. Ok ball together lawyer.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Many receive easy.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'6r)f)3Yq_!'
fake.locale()
# u'doi_IN'
fake.binary(length=1048576)
# bytearray(b'\xee\xbe\x07\xad!P\xe1\x8d9\xe7w\xce(\xda]\xaa\xea\xc2v\\/\x02\\\xa1\xbbr\x86\xebn\xa4\xed\xf5\x86\x1a\xfa2Cu{\xfd)J\xd9\xb6\xa1\xbe\xe1gBl\x85g\xa9c\xec\x90\xf6\x88h\x12\xb7\xa2\xd2\xff"\x89q\x9b\xef1vjfWd\xd4\xcbm}\xb7.u\xc1\n\xa8\x91\x93Q~;\x86\xcf\x9f\xfbE;\xf2\x03\xb4\xd9n+X\xaf.\xbd8\xd5\x0c?\xad\x8f\xd1\x98\xba\x1bq)\xa4W\xe5\x1e\x9b\x0c\x90\r\x99\'w\x1b\x91\x05\x80\xd4:\xfaxo\x1f\xdd\x1e\x87\xf8O\xc7\x89|<\t\x84\xe3V\x7f\x16\x84B\x10v\xc3\x15\xe8\xc7\xc0\xfd\x08\x1b\xb1:\xce\x15\xb8jC1\xedW\xa8r\xc0_\x8e\xd0p\xaa\x0f\xae&\n\xf6f\xccV8T\t(\x18\x1d#\xec\xec\x83\xec\xcd\xd5\xf4\xa6\xb9#(.\xb5@e\x9f\x0e\xf7\xd7O\xca0\x1d/\x1c\xc2!w\xf9\x7f\xcf\x91.\x18\xa9TS\xdd\xd0N,T\xa3~\xff\x04C\x8e\xb5\x91?\xae\xce"\x93\x92"cp\rz.\x8a\xbd\xc2ZT\xbe\xcc\x93"\xa8\x19\xfc\xce\x91\x1b\xb8\xd3{\x84\x87\xa6|5\xed\xfd\xb9\xc5\x10\x01\xeb\xc3\r\x90\x88\x8b5\xdcx\xd6\xd3\xf1=\x19\x033\xaa\xfby\x9cM\xa0S\xec5\xdb\x1b\x96)\xb1!P\xf5m2a^\x9b\xa0\x99B\x12\x02\xe6KdY\xd0c\xb5\xdf\x80\xbb\xcc+wE\xe0\xd3|\xc9\xff\xed;=\x98)\xd5NG\xe8\xdb\xa9\xd8\xcb+\xc3\x9e9\'\xd9\x97J<\xd0k\x14\xad\x8ff\x0f\xf4\x0c\xd2\x12\x8a%\t\xbfA\xf6\xd4\x0b\xfcR\xd3\xf1\xb8\xf6\xf7"\x9a\x16V\xf0\x08\x81\xf7\x96e\xdf\x8376>\x11\xd0\x95.F8\xd2\xb7\x13\xc77\x99\x19\xab_\'<\xac\x02\xec\x87\x81\xfe\xd9v\xb7\xd3+\xd7=I\x9f\xfc=\xee\xbc\x8e\xdfc\xe7\xee\xe2\x0e\xebyy\xaa\x027\x8f\xbd_\x94\x8c\x92\xf09\xb1\xcc\x96\x06\xc4t\xd6\xa6\xc7\x82\xdb\xeb\'\xb4$\x0c\xa7v\xb3)g\xa8\x0b\xca\xce\xde\xc8\xea\xe9\xc8]2\xff\xd2D\xba\xaa\xfa\xd2h\xf8\x8d\x8dey\xfe%7<tR\xb2\xac#mW\xc6\r[\xef\xd4-\x85N\x10B\xcc:"\xc6\x17\xce\x95z9\x97\xda\xdf\xf2\xe2\xdbg\x95b\xc3g\x19\xd7\n\xa0Ro\xec\xde\xe4\x0c8b\n\xae%\xc3O\xf4\xbd0E8\xaa\xee\xdc]\xa0c!\xf7\xa6\xba&\x91K\x1d\xb0"\xe9.\xcb\xa8\x025\x12b6\xb5+$\xb0\xb1k\xcc\xb81\x89cS\xeb\x84\xd5p,\x1e\x14\x03\x9b\xc8\xf19@\xc7U\n0L\xda\x93\x05\xbfw\xf14\x10\x8f^\xd2\x06\x08o\ny\xa9\x17\x10\xc3\xeep_\x86\xe0`n\x96\x8d/\xe3*\xc7B\xd4s\x8d\x1ej\xccN\xec1tUs\x8d\x01dVH\x00\x18\x80{v\xb3\x0f\xe2\xc4\x8d}\xf0@\x7fg\xaa\xb1\x9a0\x1f\x1b\xc1W\x82Q\x0e\x8d\xe8\x93\xe81D\xf7\x00\xdc~\xa7\xcel^$[\x1a\xb8V\xaek\xbf\xf7\xb0\xe0\x1a\x03k\xb1o\x93\x81\xcc\xde\x9d\xbe\x07\xcbp5\x8b\xdc]:T\xc0\xf1\\b\xa0\xd4\x1c\x05\x08\x9e]\xae\x05P\xdb_\xf8\x97/\n\xf8\x05\xd32u\xe3\xd3\xa0\x0e\x9b7\xa8\x85\x02\xf7\x07\xe4#\x96\x9d\xed\xc5\xb93\xa1[\x96WT\xcbXV\x12\xfa\xa0\x80\x14d\x14\xa7\xfb\xc8%\x08\xa4O\xc21\x08\x08\xe5$\xdf\xff9\x12\x1c\xe6j\xba\xfa\xc8\x9c\xe9\xd4\x9f\x8a\xea\xb9P\xacL\x0b\t\xeb\xfa\xf9\x1f\xd4\xf9\xc9\xb8\n\x8d\xb7\x97\x95\xf8\t\x88\xceE\x1dw\x8cj\xb5\xb0\xefm\xedjo\x03^iI\xfe\x14e\xb2\xb2\x03\xec\xaauqU\x05\xc2>\xa1\x8eZ\x83\xa13\x1d-x\x07\xe6wzE8\\!\xee\xda\x87\x87\x19\xb3\x98y\xdd\xb3\x08%cN\x7f\xca\x98\xcc\x1e\xec\x88\xa0\x9d\x84L|\x9a\x15U/K\xea\x80"H\xe0\x94@\xee\x01bGr\x9c\xa4?\x04\xa6\x13\xc4\xac\xb1n\xdbi:\x86\xa6\n\x0bJ\x02m\x06D\x07\xec\x08\xadk\xff\xc6O\xb9\xc2\x02\xf5a$\xff\x99<\tNe>`>d\x11>|\x1e\x05\x80\xfeC\xbf\x9d\xe4n)\xfb/R"\x8br5')
fake.md5(raw_output=False)
# 'dac62ce08eb34ff0e1201880b066d048'
fake.sha1(raw_output=False)
# '42b8ae76e217528c6bf27b2ffa4ce0c668eba28f'
fake.null_boolean()
# True
fake.sha256(raw_output=False)
# '65fc991847487c00f71b65787742082e9be713cede704fa14157b409102e328b'
fake.uuid4()
# '829f987d-077a-a681-56d4-2212981baa03'
fake.language_code()
# u'st'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'Blake'
fake.name_female()
# u'Catherine Greene'
fake.prefix_male()
# u'Dr.'
fake.prefix()
# u'Ms.'
fake.name()
# u'Steven Peterson'
fake.suffix_female()
# u'MD'
fake.name_male()
# u'Christopher Schultz'
fake.first_name()
# u'Michele'
fake.suffix_male()
# u'MD'
fake.suffix()
# u'PhD'
fake.first_name_male()
# u'Martin'
fake.first_name_female()
# u'Miranda'
fake.last_name_female()
# u'Williams'
fake.last_name()
# u'Roberts'
fake.prefix_female()
# u'Mrs.'
faker.providers.phone_number
¶
fake.phone_number()
# u'1-620-146-8600x972'
fake.msisdn()
# '7054627804849'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'6635 Fernandez Rapids\nHayesville, SD 57694-0348',
# 'birthdate': datetime.date(1946, 10, 19),
# 'mail': u'karlbuckley@gmail.com',
# 'name': u'Edward Daniels',
# 'sex': 'M',
# 'username': u'johnathan88'}
fake.profile(fields=None, sex=None)
# { 'address': u'5016 Charles Point Suite 535\nNew Melinda, FM 52907-5924',
# 'birthdate': datetime.date(2003, 3, 11),
# 'blood_group': 'A-',
# 'company': u'Gardner LLC',
# 'current_location': (Decimal('54.291738'), Decimal('70.927865')),
# 'job': 'Runner, broadcasting/film/video',
# 'mail': u'kristopherclay@gmail.com',
# 'name': u'John Smith',
# 'residence': u'Unit 4291 Box 0467\nDPO AP 62719-1335',
# 'sex': 'M',
# 'ssn': u'615-13-5294',
# 'username': u'helliott',
# 'website': [u'https://clark.biz/', u'http://www.brown.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'IWittmjKhyphLmTyCSFi',
# Decimal('-7.1672876143E+14'),
# u'john98@hotmail.com',
# u'qxbqNDSBMxgmSTcwbzAF',
# 4852,
# 8706]
fake.pystr(min_chars=None, max_chars=20)
# u'LrIKcxcXkarQRnTWJzhf'
fake.pystruct(count=10, *value_types)
# ( [ u'ZsghcgErwcFChKAOTRpP',
# u'OdYlDolniLoLdIyVbbAP',
# u'HSLEEOLVcfhUYAlwQqIW',
# u'CFQXblsnadntjIktOVgH',
# 9.1432,
# Decimal('3265438949.0'),
# u'NfLIXyUMlDQnJKlyvHtF',
# datetime.datetime(1992, 1, 16, 3, 6, 16),
# u'KLgyNpQpZDTcvQOzAPbp',
# 8043],
# { u'both': u'martinezolivia@tucker.com',
# u'buy': datetime.datetime(1994, 10, 14, 7, 57, 56),
# u'certain': Decimal('9.08595432127E+14'),
# u'certainly': u'YuZqzejLslTNbltlulde',
# u'his': Decimal('91159.66'),
# u'leader': u'zUMHIKjKiVPupklzVcZn',
# u'order': u'EcEToyFauEdWwjFqZGvU',
# u'possible': u'WmwEauQuCJDgsuxEkOKk',
# u'safe': u'kdcsIXrMBpgBVKEDIguz',
# u'wall': u'bRuifSJjPdIPklIOzuaH'},
# { u'college': { 6: u'USNGqlWwtcxZFpKAojVw',
# 7: [ u'rrlYexkVVKdIlxeMpSxr',
# u'LUkXqhqNwHoUCJXhFhtQ',
# u'iiSfcVxhQesQluWwbjbI'],
# 8: { 6: u'pbngVBUuvHmHsWjwEvfZ',
# 7: 7755,
# 8: [u'vmmECFPjIgPfjoUyjGLb', 4369]}},
# u'eye': { 2: u'ItvjdiYXWFBLauPNTrQF',
# 3: [ u'https://www.carpenter.com/category/posts/categories/main.jsp',
# u'ooJFzZCLwtHOYXaASahH',
# datetime.datetime(1996, 5, 1, 11, 16, 30)],
# 4: { 2: u'fQDUWTzKCtuxJWzTKYQq',
# 3: u'gypvwTriVynbDbjxKdsG',
# 4: [ Decimal('-311162738.7'),
# u'angela63@yahoo.com']}},
# u'forget': { 5: u'http://howard-middleton.com/faq.htm',
# 6: [ u'https://taylor-mccall.org/explore/category/posts/category/',
# datetime.datetime(1973, 1, 12, 10, 57, 47),
# u'KOkNktuZkilLuoSOjODQ'],
# 7: { 5: u'EAIiZrKzlpCzDZYvYzrI',
# 6: u'crtCQWIrdJQOoBQcrKiP',
# 7: [ u'uhqMwwoIVgEvwwcUGCTN',
# u'https://lewis.com/']}},
# u'hit': { 9: 8977,
# 10: [ u'https://www.marks.biz/',
# datetime.datetime(1973, 10, 4, 2, 20, 25),
# u'http://www.clark.net/'],
# 11: { 9: u'holly89@burns.biz',
# 10: Decimal('-1.66'),
# 11: [9400, u'andreahayes@williams-murillo.com']}},
# u'husband': { 4: -459950710048.67,
# 5: [ u'KCQRguQQPrrWatcMBEHA',
# u'OURAANqbgxlOdrhQwJhv',
# datetime.datetime(1996, 5, 7, 6, 14, 27)],
# 6: { 4: Decimal('-61.7'),
# 5: 3059.6437,
# 6: [ u'suOTWmLwIWLRwXzymYxR',
# u'CNcFgyeFvlUHApXhbcRB']}},
# u'leave': { 1: u'FHcXwjvtZiKeWdNjgccr',
# 2: [ 8107,
# u'zQvhlHENwWAzrgTaqtuf',
# datetime.datetime(2014, 1, 2, 22, 1, 43)],
# 3: { 1: datetime.datetime(1986, 4, 28, 0, 29, 11),
# 2: 3020,
# 3: [ datetime.datetime(1982, 6, 23, 0, 46, 28),
# -2.42377]}},
# u'mean': { 8: u'OaEygNLIHJKuQomHJfLS',
# 9: [ u'http://www.gonzales-simpson.net/posts/main/home/',
# u'JNRcMHNirbfdxTvlXvDV',
# u'AQolkZKGfGAXvrEPoHmh'],
# 10: { 8: 7491,
# 9: u'https://jimenez-smith.com/search.php',
# 10: [ u'https://www.wells.org/homepage/',
# u'xRROrowywoHtQILebFPE']}},
# u'own': { 7: datetime.datetime(2008, 12, 16, 23, 13, 23),
# 8: [ u'pSouFauCOceTNgUCoNVB',
# 600,
# datetime.datetime(1991, 12, 10, 13, 56, 39)],
# 9: { 7: Decimal('2.2973514778E+11'),
# 8: u'FBfNbXbceKJtSLGAmAYy',
# 9: [u'jLBuLMKBdyshBPLgEAUI', 2074]}},
# u'statement': { 0: datetime.datetime(1986, 3, 24, 11, 36, 26),
# 1: [ 412142073048.15,
# u'QNSefsIzUqKQebTplLtV',
# datetime.datetime(2000, 4, 9, 11, 33, 42)],
# 2: { 0: u'klwlZqGkJUIqJBoCSSAp',
# 1: u'dzumAqmvpMNwqrYSfYMr',
# 2: [ u'https://www.hebert.com/privacy.html',
# u'bOGKgGmcaZesGkSRjMuH']}},
# u'true': { 3: u'cQpJBBWypcXWrtrUIIoH',
# 4: [ u'euanjGienwySeQwOmssM',
# u'oyRWZjIQcsUxHRQDkqra',
# datetime.datetime(1993, 2, 15, 21, 26, 7)],
# 5: { 3: u'oEbihnIGZDEYntFuCAmX',
# 4: u'MhPVvnWYNJoogBTDYCCl',
# 5: [ datetime.datetime(1982, 2, 26, 21, 40, 6),
# u'cheryltaylor@hotmail.com']}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -220860588501466.0
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('-8829346886.1')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'https://www.young.org/list/posts/category/',
# u'tszCHgyyehumNdZCfTsm',
# 3670,
# u'FNzzSWUfcghgyyLPFCQA',
# u'knahziWzMJXUxVBmYQLg',
# Decimal('-46.600681'),
# u'yEWJMfWVGweEIHRUNKCH',
# u'qkTgEktTRLzeOOekupfk',
# 1497,
# Decimal('-66540254.4914'),
# u'http://rivera-young.com/main/search/explore/home/']
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( u'CLpVWSGxfDlohVoznNqA',
# u'markskinner@shepard-schneider.com',
# u'RRZvUFxSQXlzUZewsiSC',
# u'FlwcxzRedmiajwZgKXuL',
# datetime.datetime(2006, 10, 22, 14, 21, 12),
# u'http://smith.com/post.html',
# datetime.datetime(1985, 4, 28, 21, 2, 34),
# 121.767,
# u'ayLPMFmgKTKQwJGfVOKw')
fake.pybool()
# False
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([u'JspMVKDIiVAgQGTyjSuo', Decimal('-8991431.4768'), 380806790628502.0, u'vncPkNDmtkQmnKuouOWC', u'https://woodward.org/posts/app/login/', u'TZnXuRPfxdLfSUcbxAPY', 2892, -82624939.909, u'ByPoZWSgHVrWQmIwhuca', u'https://stewart-walker.com/home/', u'NzBfToVgmqhxQSOLVRAG', u'wsBaBaAmbOywPbhRqonR', u'rjsqCOSXbXvYgFmCnKoF'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'a': Decimal('1198.3740109'),
# u'at': 9329,
# u'campaign': datetime.datetime(1989, 5, 15, 23, 15, 20),
# u'care': Decimal('6.911'),
# u'cultural': u'mnqvgCRRSrwGSIAJSHFp',
# u'cut': u'FTXwxwPyOHtLRsgMrxna',
# u'employee': 320,
# u'establish': u'wilcoxjennifer@gmail.com',
# u'investment': 1440,
# u'plant': 3293,
# u'require': 48.550633429045,
# u'step': u'jacksonricardo@yahoo.com',
# u'thank': u'gtNVPbgrbcrQUwoVFYav'}
fake.pyint()
# 1653
faker.providers.ssn
¶
fake.ssn(taxpayer_identification_number_type="SSN")
# u'491-97-0774'
fake.ein()
# u'64-7332290'
fake.itin()
# u'978-73-8811'
faker.providers.user_agent
¶
fake.mac_processor()
# u'U; PPC'
fake.firefox()
# u'Mozilla/5.0 (Windows 95; am-ET; rv:1.9.1.20) Gecko/2017-11-09 08:29:10 Firefox/3.8'
fake.linux_platform_token()
# u'X11; Linux x86_64'
fake.opera()
# u'Opera/9.44.(Windows 98; Win 9x 4.90; se-NO) Presto/2.9.175 Version/12.00'
fake.windows_platform_token()
# u'Windows NT 5.0'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 4.0; Trident/5.0)'
fake.user_agent()
# u'Opera/9.91.(Windows 98; Win 9x 4.90; lij-IT) Presto/2.9.165 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 (Windows NT 5.1) AppleWebKit/5311 (KHTML, like Gecko) Chrome/55.0.811.0 Safari/5311'
fake.mac_platform_token()
# u'Macintosh; U; PPC Mac OS X 10_5_9'
fake.safari()
# u'Mozilla/5.0 (Windows; U; Windows 98) AppleWebKit/532.2.5 (KHTML, like Gecko) Version/5.0.2 Safari/532.2.5'