Language en_GB¶
faker.providers.address
¶
fake.latitude()
# Decimal('75.9596985')
fake.street_name()
# u'Sutton loop'
fake.address()
# u'Studio 07D\nPaula plains\nTaylorberg\nW61 7FR'
fake.street_address()
# u'Flat 0\nSmith path'
fake.postcode()
# u'RM6 9ZT'
fake.country_code(representation="alpha-2")
# u'TL'
fake.longitude()
# Decimal('12.115849')
fake.country()
# u'Tuvalu'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('157.266453')
fake.secondary_address()
# u'Studio 96Y'
fake.street_suffix()
# u'shores'
fake.city_prefix()
# u'West'
fake.city_suffix()
# u'chester'
fake.building_number()
# u'9'
fake.city()
# u'North Connorside'
faker.providers.automotive
¶
fake.license_plate()
# u'FR23NNX'
faker.providers.bank
¶
fake.bban()
# 'XSDG8044917090553'
fake.bank_country()
# 'GB'
fake.iban()
# 'GB70TJAS4734427479244'
faker.providers.barcode
¶
fake.ean(length=13)
# u'7726584691368'
fake.ean13()
# u'0823746583817'
fake.ean8()
# u'06375409'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(140,60,232)'
fake.color_name()
# u'PaleGreen'
fake.rgb_color()
# u'18,99,82'
fake.safe_hex_color()
# u'#ff8800'
fake.safe_color_name()
# u'navy'
fake.hex_color()
# u'#1e69bd'
faker.providers.company
¶
fake.company()
# u'Reid, Gordon and Bates'
fake.company_suffix()
# u'Ltd'
fake.catch_phrase()
# u'Intuitive cohesive algorithm'
fake.bs()
# u'synergize end-to-end niches'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'248'
fake.credit_card_provider(card_type=None)
# u'Mastercard'
fake.credit_card_full(card_type=None)
# u'VISA 19 digit\nLorraine Spencer\n4011370130037311164 01/19\nCVC: 702\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '11/19'
fake.credit_card_number(card_type=None)
# u'4824286616601'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'KOI'
fake.currency_code()
# 'CRC'
fake.currency_name()
# 'Netherlands Antillean guilder'
fake.cryptocurrency_name()
# 'XEM'
fake.cryptocurrency()
# ('BURST', 'Burstcoin')
fake.currency()
# ('AUD', 'Australian dollar')
faker.providers.date_time
¶
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 8, 27, 15, 0, 24)
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xf5d62acc>
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(2014, 12, 27, 23, 27, 44)
fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2010, 8, 27)
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 8, 4, 22, 11, 46)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 8, 14)
fake.day_of_week()
# 'Thursday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2013, 1, 9, 16, 37, 18)
fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2010, 9, 10)
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2012, 12, 24, 21, 14, 28)
fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '1990-02-04'
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 8, 16, 9, 31, 45)
fake.date_object(end_datetime=None)
# datetime.date(1979, 3, 30)
fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 4, 18)
fake.iso8601(tzinfo=None, end_datetime=None)
# '1979-07-07T23:35:05'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 8, 28)
fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2017, 4, 27)
fake.month()
# '07'
fake.year()
# '2002'
fake.day_of_month()
# '20'
fake.unix_time(end_datetime=None, start_datetime=None)
# 1036580287
fake.timezone()
# u'Europe/Rome'
fake.century()
# u'X'
fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1946, 4, 21)
fake.time_object(end_datetime=None)
# datetime.time(2, 44, 3)
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 3, 2, 10, 7)
fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1991, 2, 8, 22, 39, 8)
fake.time(pattern="%H:%M:%S", end_datetime=None)
# '14:30:21'
fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 8, 11)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 8, 12, 4, 21, 56)
fake.month_name()
# 'December'
fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(1432, 9, 7, 21, 28, 28)
fake.time_delta(end_datetime=None)
# datetime.timedelta(17482, 4620)
faker.providers.file
¶
fake.unix_device(prefix=None)
# u'/dev/vdh'
fake.mime_type(category=None)
# u'image/vnd.microsoft.icon'
fake.file_path(depth=1, category=None, extension=None)
# u'/ex/sit.tiff'
fake.unix_partition(prefix=None)
# u'/dev/xvdz2'
fake.file_name(category=None, extension=None)
# u'natus.flac'
fake.file_extension(category=None)
# u'doc'
faker.providers.internet
¶
fake.ascii_free_email(*args, **kwargs)
# 'hugh48@yahoo.com'
fake.image_url(width=None, height=None)
# u'https://www.lorempixel.com/670/173'
fake.tld()
# u'com'
fake.email(*args, **kwargs)
# u'jacksonsarah@clarke.com'
fake.url(schemes=None)
# u'http://www.knight.com/'
fake.ipv4_private(network=False, address_class=None)
# '192.168.118.46'
fake.user_name(*args, **kwargs)
# u'dthomson'
fake.uri_extension()
# u'.php'
fake.uri_page()
# u'author'
fake.free_email_domain(*args, **kwargs)
# u'yahoo.com'
fake.safe_email(*args, **kwargs)
# u'jonesmarie@example.com'
fake.ascii_email(*args, **kwargs)
# 'elliottclayton@gmail.com'
fake.ipv4_network_class()
# u'c'
fake.ipv4_public(network=False, address_class=None)
# '118.111.202.166'
fake.ascii_company_email(*args, **kwargs)
# 'kelly62@miller.com'
fake.domain_name(*args, **kwargs)
# u'rogers.net'
fake.ipv4(network=False, address_class=None, private=None)
# '66.20.42.128'
fake.domain_word(*args, **kwargs)
# u'schofield'
fake.slug(*args, **kwargs)
# u'odit-distinctio'
fake.uri_path(deep=None)
# u'tags/tag/category'
fake.company_email(*args, **kwargs)
# u'gailgriffiths@pope.biz'
fake.uri()
# u'https://www.reynolds-wood.com/wp-content/tag/about.jsp'
fake.ipv6(network=False)
# 'bcaa:ee49:e07c:f961:7c79:cb3d:6743:6a42'
fake.free_email(*args, **kwargs)
# u'jill12@gmail.com'
fake.ascii_safe_email(*args, **kwargs)
# 'heather97@example.org'
fake.mac_address()
# u'00:85:fc:b6:50:c2'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'0-651-01540-5'
fake.isbn13(separator="-")
# u'978-1-4876-1321-1'
faker.providers.job
¶
fake.job()
# 'Food technologist'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Architecto ducimus aperiam nostrum illo. Eveniet ut eveniet distinctio quas sequi sunt.\nRecusandae saepe quidem illum. Cupiditate maiores aperiam amet ipsum commodi asperiores vel.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Alias deleniti similique dicta. Voluptates sapiente assumenda ad sed at.',
# u'Excepturi error quam ab praesentium. Saepe totam libero debitis consequuntur quas vero sint.',
# u'Iusto laborum assumenda aperiam exercitationem et.']
fake.words(nb=3, ext_word_list=None)
# [u'molestias', u'suscipit', u'ullam']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Veritatis inventore dicta.',
# u'Debitis ex animi dignissimos tenetur nulla.',
# u'Maxime eos quis ipsam omnis.']
fake.word(ext_word_list=None)
# u'aliquam'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Distinctio iste at voluptates eaque. Voluptas eaque eligendi rerum vero iure est.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Soluta dolor saepe.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'q#It31XmZ#'
fake.locale()
# u'apn_IN'
fake.binary(length=1048576)
# bytearray(b'\xbf\x86\xf5c\x89\x904e\xe5 \xa6\xfe\x1c;\xe4O\xea\x91X\xc1\xde\xbf\xa3U\xad\x97/\x15dKg\rLf.H\x1d\xea6\xd2rN\xff\xf6>\xfd\xbd\x94\xb1O\xa3\xe3\x1f\xfb\x1f2\xe0\xd1\xd1\xa7\x04\xed\x0b04\\k\x18gw\x18\xbdH\x8e\xf9\xe9\xbd,\x87\x04\xce\xd2\xee3a\x9d8\xbayz\x04+\xf3/5"`\xc3[D\xc9Y\xe3w\xcbrc\x1e[t\xecy(\xddQd\x017\x0e\xbdUc\xbdR\x9d5\xa73:\xf4Vx\xeaH\xcd \xc6/\xdd\xdf`\x8f\x11B\x16\xd0\xabC\xd2\x02\xdd\x13l\xdf\\K\rVG\xd2\x85\x7fb\x1b\xdc\xb8+\xa1>&\xf2\x99\xe3\xa9V\x19\xe2.\x80\xe4\xfd7<\xb6\x9b\x1b$\xa5(YG\xe8\xb9\x1e\xce\xfed.N\x19t\x97\x9b\xea\x7f\x92\xa3\xb0j\x97\xaf\x85j\xb4Bs\xe0\x8a\x05\x08Y\xf1A\xcb\xe0bx\xb1\xb8\x11\x1c\xf2\x8a\xa2\xff\x16\xcc\xa8\x0c\xb1\x86\xa9\xefK\x88\x0fk\xa4\x06\x9b}\x03u\xba0e\x921s\x0e\x19&x\xeaEW$\x19t\xfe\xb3(\xfb\xff5X\x9b\xb5\x845\x960L\x86\xa0\x98\xd6hy\xfeM\x1fd\xe27A\xf0\xcc!{u\xde?\x16\x04\x9d*b\xfel\xa5\x02\xaeH\xe2\x10\x13\x07!yp*\xa2\xb9\xa4\xa3\xe4\xef\xb9\x96\x9e\xcb1\xbc0w\xfc\xbf!\xcfl\xfb\xba\x06\xc3\x9f\xe4\x01_/a\x17*V\xa1\xaa\xbbl1r9?z\xf3\xf3\x92\xe1\xd9\x8d,?*\xe7\x8b<\xa9!\xf5\x14\xebz\xb44\xb3!\xa3\'\xb7m\xdb3Pi\xed\x85\x0b\xa0\xfa\xfb7\xd7\xcd\x0b*\xf80\xce\xb0\xf6]Q.\xa6\xe4\xcc[\xfb\x17\xca\xc73\xfc\x01\x19Y~\xff\xc1s?\xeb\x93m\xa1\xad\xf8\xff\xb5\x0f\xad\xd3\xf88\xa5\xa7\xf5\x99U\'\x08Q\x8b\xfa\xe8;\x95\xea\xa7o\xecJ\x95BKX\xa4[\x9b}\xe3JU``\xa3\xe2\xaa\xdf\x83>\x1b\tD[ 9p\xf4\x08E\xfc\xc1\xe9\x01\xb7\xf7Ci\xdb\xa0O\xc35\xee\x0c$~{U5\xf5\xe9\x85\x93("\xa1\x18\xddt\xc5\xfa\x06q\x9a\x82\xc2\xebU[&4l)\xb3\x11[G\x80n\xe5\x0cN\xdb\xe8\x0c\xba\xa7\x90\x9d\xfe\xa0\x1a#X\xa1qIc"\xc7tR\xbbS\xbe?0]\xcb\xeb+\x89\x92CA\xc6L\xe7\x00x\x16}5\x8b+\x1c\x8a\xf7\x07\xe4\xca(\r\x12\xc6\xebz\xfd\xc2\xfb\xf0\x013.w\n\'\xdd\xaa\xb7\xd1\x92\x8d\xc6\x8b\xf2\x1e\x92yQ+m\'\x86%`\xd7h\xb1\xa1\xf6tK\x92q\xc6L\xf9\xdaN\x8cg\xec\x8e_\xf6[$\x811a\xb1\x8e\xbd\x8e6?\x9f$\x93\xdd\xa6vo\x9f\x18lw1\xdb;\xabR\x9ey\x03\x9a\xe7\x0b\xb4\x92o\xf6M\x16~\xa4\x1d\xaaeW\x80j\x9bu\xce\x8f\xbf\x10ZNi\x1c\x0e\xb8\xe5\xe3\xde`\x9c/\x8afBZ\x88x\xa1\xad\xe6\xa5\xf8\xdf\xe6\xf5a\xfa\xb9\x9f\xb5\x81\xad\x8f\x82\xbe\xd1[pv\xe5/\x18\xdc= \xd9\xb4;\x16\xa2\x98RD1\x1e\x08\xa5\x03\x12}\x06\xa2\xe7\xee\x1eO\xf4(\xb6.\xbb\x1e\x97%lCp>\x8dM\xcdO<\x82\x90[\xbe\x92<\xdef\xb3)\xa6\xb0\xca\x8b.\x12\xd7n\xbd\x00/\x1b\x94\xe3\xabk\xd2\x07R\x98u\xbb\x8c6`Z\xc4\xec\xed\xc2\xcb\x8b\xf9\xb7\xb3#\xbe\x89%2\x87\xff\xf8\x12\x9b\xe3~W\x80\xdf\x00\x7f,\x1a=\xfb&\xce\xb9\x1b\xba\xb1\xca\x8c\xd0E^\xeaaD\x10\x0e\xcaI\xb8h\xe8n\xbe\x9cm9.\x99\xb9\xe3 \xdb\xcc)C]\xa1/\xa0\x91\xcb\x96L\xec\x1b&\x97\xa7h\xec\x8d\x91a\xc7J\xbb\x0c\x9e\xd5\xcc^\xf8\x86\x8c5\xcd\r\x97\xd8aMm<>\xf5&\x16\xd8\x86\xd1\xaf,\xb50n&\xd7\xd7\xd4\xf9\xe9\xfaWl\xf0\xadk\xb1\xe6B\x0f\x1a\x86\xbeU\x1b\x98\x90\'}?2\xeb;sw\x8fS\xf0\xcd\xc0\xbeg\x8c\x8e\x0fR\x90\x0b\xc8z\xbb\xe3\xab/\xb8t\xe5\x0f\xfc9\xbf|\x14\x94E\xber-\x85\x9b\x9d\x7f\xa9\xaeF>\x1e\xf0\n\xbf\xd3\x97#\xc6\xf9\x01\x1a\x95,\'\x10dz')
fake.md5(raw_output=False)
# 'e98b2e30deba8922f276470e0837ebd0'
fake.sha1(raw_output=False)
# '8585a5123c0f389559b754678746f8624835b910'
fake.null_boolean()
# False
fake.sha256(raw_output=False)
# '90c33f26cbc96fe8a71e3e1f3429d3a407f2ac04dd7fc058a5a9b97331d6b50e'
fake.uuid4()
# '36c20b4a-3079-5c9d-155a-f908041210a6'
fake.language_code()
# u'cy'
fake.boolean(chance_of_getting_true=50)
# True
faker.providers.person
¶
fake.last_name_male()
# u'Hughes'
fake.name_female()
# u'Elliot Hall'
fake.prefix_male()
# u'Mr.'
fake.prefix()
# u'Mrs.'
fake.name()
# u'Miss Aimee Singh'
fake.suffix_female()
# u''
fake.name_male()
# u'Marilyn Powell'
fake.first_name()
# u'Eleanor'
fake.suffix_male()
# u''
fake.suffix()
# u''
fake.first_name_male()
# u'Clifford'
fake.first_name_female()
# u'Donna'
fake.last_name_female()
# u'Roberts'
fake.last_name()
# u'Bailey'
fake.prefix_female()
# u'Dr.'
faker.providers.phone_number
¶
fake.phone_number()
# u'0113 496 0114'
fake.cellphone_number()
# u'(07700) 900931'
fake.msisdn()
# '9870590287828'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'Studio 66M\nKelly hill\nMooretown\nTA10 5AR',
# 'birthdate': datetime.date(1944, 3, 16),
# 'mail': u'nevans@gmail.com',
# 'name': u'Dr. Leigh Taylor',
# 'sex': 'F',
# 'username': u'victor04'}
fake.profile(fields=None, sex=None)
# { 'address': u'925 Fletcher grove\nLake Daleshire\nN5 7QT',
# 'birthdate': datetime.date(1909, 5, 7),
# 'blood_group': 'B+',
# 'company': u'Scott, Carter and Begum',
# 'current_location': (Decimal('-74.7853635'), Decimal('0.134342')),
# 'job': 'Tree surgeon',
# 'mail': u'udawson@hotmail.com',
# 'name': u'Mr. Bernard Thompson',
# 'residence': u'434 Richardson ports\nWest Diana\nUB4 7PU',
# 'sex': 'F',
# 'ssn': u'ZZ152059T',
# 'username': u'lyndaharrison',
# 'website': [ u'https://harvey-davey.com/',
# u'https://www.lewis.com/',
# u'http://www.turnbull.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# ( 2701,
# Decimal('-1.78488034955E+14'),
# u'DPjviWnXvXOGERprxdsT',
# u'QWVuaifFvqEIdBKvixsX',
# u'adrian99@cooper.com',
# 6970,
# 4603,
# u'TpPbRTUOiZjgeRYuDttS')
fake.pystr(min_chars=None, max_chars=20)
# u'DXqmHYlutDdfcTaQCKTe'
fake.pystruct(count=10, *value_types)
# ( [ u'lynne91@woodward.net',
# u'FXSIBzeTSmMsOfIonjIc',
# 4860,
# u'http://long.org/search/tag/tags/terms.html',
# 9239966644771.23,
# u'vnqazxDGIaWrqyubulYz',
# datetime.datetime(2001, 1, 27, 0, 19, 31),
# 4746,
# u'http://www.short-payne.com/tag/post/',
# u'qFYGrZPCDpjRlizzIglT'],
# { u'ab': 8712,
# u'accusantium': datetime.datetime(1998, 6, 18, 17, 5, 50),
# u'amet': u'lRVybeXnCKxfjAHhPCje',
# u'cum': 283,
# u'cupiditate': u'jadebutler@smith-kirk.net',
# u'eaque': Decimal('877999758.8'),
# u'minus': u'uoFYlCHjWlmJyGgnSDav',
# u'neque': u'http://www.hayward.com/category/app/category.htm',
# u'ratione': u'GZBTkLpvbagACEoXZXpu',
# u'sint': u'DAjokbeuAinZSxEPqLGB'},
# { u'dolores': { 8: u'puFYaxThAakcpiztuboz',
# 9: [ datetime.datetime(1997, 6, 30, 19, 55, 27),
# 6749,
# u'hollandrachael@gmail.com'],
# 10: { 8: u'ann56@hotmail.com',
# 9: 809,
# 10: [u'XiEfNaolzmWriTgksfNV', -34.4172915]}},
# u'eaque': { 4: 1503,
# 5: [ 7874,
# u'https://wright.biz/list/category/tag/homepage.php',
# u'http://www.taylor-barber.biz/'],
# 6: { 4: u'htbuHLvWxZKBVyEZlBBT',
# 5: u'ULKVIQAIYKxkTcCqwtwF',
# 6: [ u'http://www.clayton.com/',
# u'aMWLEQcaoysLjDApqMVi']}},
# u'exercitationem': { 5: u'pppHGUeNAIyGOywQxoRv',
# 6: [ u'zxjBabDBqtCYBfLFlzTL',
# Decimal('-4167666.55'),
# 607680.276],
# 7: { 5: u'RYuuvZfQoKEhusixWlFC',
# 6: Decimal('-657573174.189'),
# 7: [ u'ljtdRjQHLAydPZmVKEEW',
# datetime.datetime(1993, 1, 3, 21, 34, 58)]}},
# u'iusto': { 0: Decimal('-7.72944957341E+13'),
# 1: [ u'bMEIBJDyKpMoLLsohDCH',
# 619,
# u'colincooke@yahoo.com'],
# 2: { 0: u'XfaDOTieulHYAQNpHCUG',
# 1: u'https://jenkins.biz/',
# 2: [2974, u'https://davies-rees.com/']}},
# u'laudantium': { 7: u'dNYQyDTqGbzBAmxTGJHT',
# 8: [u'pTSGVcAlPOAcftqRItUX', -4241286309.0, 2994],
# 9: { 7: u'http://www.clarke-patel.com/',
# 8: u'http://townsend.com/blog/privacy.html',
# 9: [ Decimal('-996895324.9'),
# u'raymondphillips@scott.biz']}},
# u'neque': { 6: u'VXrlUDgXuKelmOFfHXfK',
# 7: [ Decimal('-62.4760631475'),
# datetime.datetime(2000, 1, 12, 23, 17, 4),
# u'hjohn@yahoo.com'],
# 8: { 6: u'http://www.farrell.com/terms/',
# 7: u'iCiEDHcgQTABZWyUAmrt',
# 8: [-9310887412.5325, 2593]}},
# u'pariatur': { 1: u'https://clarke.org/tag/explore/index.php',
# 2: [Decimal('-954059425021'), 690, 6279],
# 3: { 1: u'IcZeVIryyzTRqTvUytjs',
# 2: Decimal('3.70296569063E+12'),
# 3: [ u'skelly@sharpe-cook.com',
# u'ZddAavEKRNxdUMwQzCjs']}},
# u'quas': { 2: -5916736836279.3,
# 3: [7.192, u'nboTTeyMWyBuBLwGwdlT', 4413],
# 4: { 2: u'kbaker@clark.com',
# 3: u'diane45@yahoo.com',
# 4: [ u'asvokFNzMzTVYBpMdqNg',
# u'shepherdarthur@lowe-hughes.org']}},
# u'quibusdam': { 9: u'http://www.day-foster.org/blog/main/app/search/',
# 10: [ 87419.898,
# u'https://www.steele.com/list/categories/terms.php',
# datetime.datetime(2016, 1, 30, 1, 55, 45)],
# 11: { 9: datetime.datetime(2012, 5, 16, 21, 9, 36),
# 10: u'VmtZpAlNhDiUAPNvIQfU',
# 11: [ u'bbvdoSivNrVdosxZLQmu',
# Decimal('66.836633042')]}},
# u'reprehenderit': { 3: u'victoriasavage@owen.com',
# 4: [251.452, 1188, u'samuel08@gmail.com'],
# 5: { 3: u'NiJdERwzLvpKEhcAutRm',
# 4: -31.4687675,
# 5: [7925, u'qGLjDxmGPUdKabGTbhnU']}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -14.455340681284
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('99.0')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'qLarkmsPjuyWEFjKPvOw',
# -3851032775.602,
# u'carterbarbara@pickering.com',
# datetime.datetime(1998, 2, 8, 17, 59, 56),
# 8168,
# u'http://wright.biz/',
# u'https://www.ball-johnson.com/main.php']
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( u'https://williams-hussain.com/explore/wp-content/author/',
# u'http://evans-mann.org/',
# u'RQghXYDsCrNlrMmoffFD',
# 5005,
# u'ddjbBGcRlbTnEINQtijs',
# u'https://smith.com/list/categories/posts/author/',
# u'ZIzqgpEbgboHcRsFTHmK')
fake.pybool()
# True
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([Decimal('973833194943'), Decimal('62999152931.2'), u'TUKXmbLGtnyBpgWLsvBx', u'ImMBAqVgCkEJdyYoZxgb', 3820, 1806, datetime.datetime(1976, 10, 27, 8, 10, 5), u'nicolebentley@patel.org', u'RRdSHqCrVEknLangKpGs', datetime.datetime(1998, 6, 1, 22, 50, 19), Decimal('1.86391'), -27.40198047, u'pmDNlSLymybHKmxnKTRi'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'ad': 9413,
# u'aut': u'PWwGdFymlZobNngzQaoX',
# u'dolores': datetime.datetime(1983, 12, 12, 8, 29, 50),
# u'illum': u'txNrrZhnRPSQcabeQSXB',
# u'odio': 4993,
# u'officiis': u'wilkinsonluke@hotmail.com',
# u'quia': 5935,
# u'sunt': u'https://www.kelly-davies.com/categories/main/list/terms/',
# u'tempore': u'BUosgOlqrJOaiYYRDcBb'}
fake.pyint()
# 3011
faker.providers.ssn
¶
fake.ssn()
# u'ZZ590023T'
faker.providers.user_agent
¶
fake.mac_processor()
# u'PPC'
fake.firefox()
# u'Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/2017-04-20 23:12:50 Firefox/6.0'
fake.linux_platform_token()
# u'X11; Linux i686'
fake.opera()
# u'Opera/8.32.(Windows CE; lzh-TW) Presto/2.9.175 Version/11.00'
fake.windows_platform_token()
# u'Windows 98'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 9.0; Windows 98; Win 9x 4.90; Trident/4.0)'
fake.user_agent()
# u'Mozilla/5.0 (iPod; U; CPU iPhone OS 3_2 like Mac OS X; el-CY) AppleWebKit/531.33.5 (KHTML, like Gecko) Version/3.0.5 Mobile/8B119 Safari/6531.33.5'
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 95) AppleWebKit/5342 (KHTML, like Gecko) Chrome/34.0.874.0 Safari/5342'
fake.mac_platform_token()
# u'Macintosh; U; Intel Mac OS X 10_6_6'
fake.safari()
# u'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_6_3 rv:6.0; shs-CA) AppleWebKit/531.9.6 (KHTML, like Gecko) Version/5.0 Safari/531.9.6'