Language en_GB¶
faker.providers.address
¶
fake.latitude()
# Decimal('71.215047')
fake.street_name()
# u'Brennan extension'
fake.address()
# u'030 Valerie via\nMurrayland\nUB88 3HN'
fake.street_address()
# u'91 Timothy lane'
fake.postcode()
# u'SN8R 2PH'
fake.longitude()
# Decimal('100.315774')
fake.country()
# u'Gambia'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('41.709172')
fake.secondary_address()
# u'Flat 78G'
fake.street_suffix()
# u'course'
fake.city_prefix()
# u'Lake'
fake.city_suffix()
# u'stad'
fake.building_number()
# u'7'
fake.country_code()
# u'KP'
fake.city()
# u'Whiteheadport'
faker.providers.automotive
¶
fake.license_plate()
# u'IU11 RWP'
faker.providers.barcode
¶
fake.ean(length=13)
# u'7581403076838'
fake.ean13()
# u'8951013692381'
fake.ean8()
# u'40493879'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(201,57,96)'
fake.color_name()
# u'PowderBlue'
fake.rgb_color()
# u'194,83,195'
fake.safe_hex_color()
# u'#ccbb00'
fake.safe_color_name()
# u'lime'
fake.hex_color()
# u'#6e057a'
faker.providers.company
¶
fake.company()
# u'Fuller-Lambert'
fake.company_suffix()
# u'Inc'
fake.catch_phrase()
# u'Cloned real-time help-desk'
fake.bs()
# u'monetize collaborative architectures'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'981'
fake.credit_card_provider(card_type=None)
# u'Voyager'
fake.credit_card_full(card_type=None)
# u'VISA 16 digit\nJulie Berry\n4939707859280693 02/19\nCVC: 069\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '12/19'
fake.credit_card_number(card_type=None)
# u'869942079930403'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'TIT'
fake.currency_code()
# 'PLN'
faker.providers.date_time
¶
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2004, 10, 19, 16, 57, 40)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2000, 9, 15, 3, 32, 18)
fake.time(pattern="%H:%M:%S")
# '03:03:06'
fake.date_time_ad(tzinfo=None)
# datetime.datetime(1421, 11, 28, 2, 6, 50)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2017, 6, 22)
fake.day_of_week()
# 'Friday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2016, 12, 12, 7, 39, 31)
fake.time_object()
# datetime.time(20, 19, 9)
fake.iso8601(tzinfo=None)
# '2011-05-01T20:13:01'
fake.time_delta()
# datetime.timedelta(11412, 23354)
fake.am_pm()
# 'AM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2017, 7, 21, 7, 42, 39)
fake.date_object()
# date(2005, 4, 2)
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2017, 8, 12, 8, 41, 27)
fake.date_time(tzinfo=None)
# datetime(2013, 3, 15, 13, 35, 21)
fake.date(pattern="%Y-%m-%d")
# '1981-08-07'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2017, 7, 28)
fake.month()
# '11'
fake.unix_time()
# 147573259
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 7, 11, 14, 30, 24)
fake.day_of_month()
# '24'
fake.year()
# '1978'
fake.timezone()
# u'Asia/Riyadh'
fake.century()
# u'V'
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 1, 6, 5, 9, 36)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2017, 6, 22, 3, 6, 40)
fake.month_name()
# 'December'
faker.providers.file
¶
fake.file_path(depth=1, category=None, extension=None)
# u'/quia/labore.tiff'
fake.mime_type(category=None)
# u'text/vcard'
fake.file_name(category=None, extension=None)
# u'non.mp3'
fake.file_extension(category=None)
# u'mov'
faker.providers.internet
¶
fake.url()
# u'http://www.powell-lee.biz/'
fake.company_email()
# u'shannon24@barker-smith.com'
fake.uri()
# u'https://www.crawford.com/'
fake.domain_word(*args, **kwargs)
# u'campbell'
fake.ipv4(network=False)
# '252.113.122.86'
fake.domain_name(levels=1)
# u'lawrence.com'
fake.tld()
# u'com'
fake.uri_path(deep=None)
# u'app/tags'
fake.free_email()
# u'hhall@yahoo.com'
fake.slug(*args, **kwargs)
# u'consequatur'
fake.free_email_domain()
# u'gmail.com'
fake.uri_extension()
# u'.html'
fake.ipv6(network=False)
# 'fc93:3093:a69a:b8ac:b93c:14ea:d40d:6063'
fake.user_name(*args, **kwargs)
# u'brownkyle'
fake.image_url(width=None, height=None)
# u'https://dummyimage.com/231x363'
fake.email()
# u'georgia25@hope.com'
fake.uri_page()
# u'about'
fake.mac_address()
# u'54:8b:38:81:92:d4'
fake.safe_email()
# u'teresabuckley@example.net'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'0-16-719195-0'
fake.isbn13(separator="-")
# u'978-1-356-33610-4'
faker.providers.job
¶
fake.job()
# 'Editor, magazine features'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Amet animi sint aperiam vero repellat ab possimus. A cum neque dolore aut repellat. Consequatur earum deserunt repellendus earum alias natus ea.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Suscipit aut rem omnis natus pariatur nesciunt ea. Distinctio ratione voluptate accusantium quis autem facere. Laborum doloremque debitis delectus quasi sit dolore corrupti.',
# u'Et consequuntur sit est totam occaecati sit. Eaque molestiae quisquam nostrum itaque quaerat aspernatur nihil. Necessitatibus rerum sit quas nesciunt aperiam vitae aperiam.',
# u'Debitis facere itaque magnam unde inventore quibusdam. Atque inventore quibusdam ea odit rerum earum est. Qui sint voluptate molestiae ex illo necessitatibus.']
fake.words(nb=3, ext_word_list=None)
# [u'dignissimos', u'libero', u'eligendi']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Ipsam quasi similique minus.',
# u'Sapiente tenetur incidunt harum ad.',
# u'Ratione autem nulla officiis sequi sequi et maiores.']
fake.word(ext_word_list=None)
# u'reiciendis'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Voluptatem quo recusandae vel inventore quos sapiente inventore. Iusto recusandae explicabo magnam officiis quaerat inventore ab. Possimus pariatur ullam rerum debitis voluptatibus temporibus in iste. Nisi nesciunt delectus fugit necessitatibus blanditiis soluta a. Cupiditate cupiditate eveniet non.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Sunt in id earum aliquid temporibus animi facere.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'^3yHTFX5x4'
fake.locale()
# u'tl_PH'
fake.binary(length=1048576)
# bytearray(b'dj\xca\xfeU\xc6\x8e\xed\x05\x99\x08\xf3\xb9\x11\xb9\xb0\xc1\x84V^xC\xc8\x08J\xf3\xf2T\xe5\x1e\xd2\xb4i\x1d\x89\xe9\x82m\'\x85u\xe3\xf3!\x01\xb2x\x1a\xe8\xd7W\t0\xb6\xe3\xc0\xdcS\xb7Y\xfaL\x89\xa2Y\xbe\x9c\x1c\x96Z\xc8\xac\xd1\xf4`\xee\xa6\xa5?\x0b\xbc0K\x93\x1aA\xc6\x9e\xf37\x1au\xe1\xd5F\xc5\xf5\x8b\xd5G\x10\xd5g\x1c{\x98\xf2\xb3\x87\xb8\xfd\tp^\x7f\x12V]\xd0\t\xa1\xc5\xec\x861\xbc?lA\x9aI\x94C<$6\x1f\r\xfe\x93k\x7f\xa3I\x10\xe2\xad\xbd\xc5\x0c@\x9e\xae\xd65\x94\xc4\x833\xebG\x13q\x892\x90\xd5\x1d\r\xe3\x8a\x0b\xe9M\xc9\xa7\x03\t\xb2\xa7\x7f\xa9}tKA\xfd[|\xd7\x98B\xddI\xb5$\x0e)\x7f\xe7N\xf0\xed\xe7Y\xf3\xfeG@\x81\x8e\x1eU\xac\xef%\x84\x94\xd7W\xacs\x87RJ\xf3Nm\xdb\xe2\xea$Ny;\xd5\x81\xb4\x89\xb2\xdcN>a\xe4)qWM\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95\xa9(\x12\x89\xc6{\xd1')
fake.md5(raw_output=False)
# '633792f85e8c6b8bb73db83786694e26'
fake.sha1(raw_output=False)
# '06f53e4e9c516204f5932cb49553ba8021a8cacd'
fake.null_boolean()
# False
fake.sha256(raw_output=False)
# 'a8d231a918188500740560ab0b3e7ff9ef97489b80e4c0032a9a800734a074c4'
fake.uuid4()
# '6dd639f0-321d-10f5-391c-73d949078a56'
fake.language_code()
# u'ln'
fake.boolean(chance_of_getting_true=50)
# False
faker.providers.person
¶
fake.last_name_male()
# u'Hurst'
fake.name_female()
# u'Shannon Bevan'
fake.prefix_male()
# u'Mr.'
fake.prefix()
# u'Mrs.'
fake.name()
# u'Stewart Wells'
fake.suffix_female()
# ''
fake.name_male()
# u'Mrs. Sharon Barnes'
fake.first_name()
# u'Karen'
fake.suffix_male()
# ''
fake.suffix()
# ''
fake.first_name_male()
# u'Christopher'
fake.first_name_female()
# u'Holly'
fake.last_name_female()
# u'Cox'
fake.last_name()
# u'Lloyd'
fake.prefix_female()
# u'Ms.'
faker.providers.phone_number
¶
fake.phone_number()
# u'0643869889'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'Studio 23K\nWilliams tunnel\nNew June\nWS7 5ZP',
# 'birthdate': '1990-12-16',
# 'mail': u'russell08@yahoo.com',
# 'name': u'Georgia Ali',
# 'sex': 'F',
# 'username': u'maureenhoward'}
fake.profile(fields=None, sex=None)
# { 'address': u'7 McDonald meadow\nEast Chloe\nST2 3QW',
# 'birthdate': '1982-04-17',
# 'blood_group': 'A+',
# 'company': u'Middleton-Hughes',
# 'current_location': (Decimal('-54.742867'), Decimal('-84.416263')),
# 'job': 'Building services engineer',
# 'mail': u'arthurgordon@hotmail.com',
# 'name': u'Bernard Jones',
# 'residence': u'Studio 39\nOliver expressway\nLydiaborough\nWC7 1JD',
# 'sex': 'F',
# 'ssn': u'142-76-5236',
# 'username': u'brandon01',
# 'website': [ u'http://holloway.info/',
# u'https://www.walker-wilson.info/',
# u'https://www.james-brown.net/',
# u'https://www.hale-perry.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ 7413,
# u'DVGvmGeBSeajKHQEQYYr',
# 3247,
# 2395,
# -66682103.28776,
# u'uZOMbhlCeGHUjhmuCQCr',
# u'https://dobson.info/login.htm']
fake.pystr(min_chars=None, max_chars=20)
# u'ZwpoSZocAAbftYHiwlHj'
fake.pystruct(count=10, *value_types)
# ( [ Decimal('75926928.4'),
# -9750548.0,
# u'mBYnAgualnPTUSvxyWyK',
# u'deIerSMPYQlCsciyPTyC',
# u'DwsYKBRdouBmKTLEVQOq',
# u'rQjzkItmVijENvkKrCDI',
# u'bharrison@gmail.com',
# u'nDXSdfgfCQcXYrfOsidO',
# u'KiJQapPEneXOzAvSsKuM',
# datetime(2000, 6, 14, 21, 17, 48)],
# { u'corporis': 7396,
# u'corrupti': 9736,
# u'error': -18284948.467,
# u'esse': u'ZcivWfXCNzmvBPPghoIN',
# u'exercitationem': 5095,
# u'ipsam': datetime(1999, 8, 25, 17, 4, 21),
# u'itaque': u'aPskmKhaWCaEicrGYMuR',
# u'libero': u'DAkaDnWeBaESzdSkOpRi',
# u'minus': 5216,
# u'quasi': 5688},
# { u'aliquid': { 0: 7116,
# 1: [ Decimal('-9651.89928902'),
# 3895,
# -40157187444.935],
# 2: { 0: Decimal('-429220826077'),
# 1: u'CLUBMqeIUAfkPYVNVMuy',
# 2: [ u'XSYbIHjJkPerzGXZtXbe',
# u'bulllynda@weston.com']}},
# u'corporis': { 9: Decimal('801440.49779'),
# 10: [ datetime(1998, 11, 29, 18, 24, 35),
# u'sharpejanice@gmail.com',
# datetime(1993, 4, 6, 8, 48, 27)],
# 11: { 9: u'xGLNKInCsgUZapwLeIsx',
# 10: -3339145811.763,
# 11: [ u'IKtiPMlgcUESPWSzxfyZ',
# u'yxNTuLCTkMtSkyBtexXs']}},
# u'eaque': { 5: u'wvKIHiYFFRVcoWNwCBpN',
# 6: [ u'bethany24@osullivan.org',
# u'jGrikPircrrqLlFMBncm',
# 6825],
# 7: { 5: datetime(1975, 6, 6, 20, 43, 15),
# 6: u'PpkkoVrDXDQPAusztaWC',
# 7: [ u'jtIhyVoqSZnJBXiyhpUo',
# u'VWcEKBqKnkdpdXJsTPVH']}},
# u'impedit': { 3: u'https://thomas-may.com/explore/category.php',
# 4: [-1727317840.278, u'XKcTbnwUleQtTGzJiMqi', 4788],
# 5: { 3: u'https://wilkins.org/wp-content/explore/tag/main/',
# 4: datetime(1974, 2, 23, 10, 51, 12),
# 5: [ datetime(1980, 4, 17, 3, 41, 47),
# Decimal('-17302.3')]}},
# u'ipsam': { 1: datetime(1994, 12, 19, 3, 10, 30),
# 2: [u'http://www.obrien.com/index.php', 369, 1874],
# 3: { 1: u'XPUnlIFQexprbTYjAYKP',
# 2: u'QrgfUgKCZbHXGjAqfgbf',
# 3: [ u'DxWlVRztYUbmQptRjaYN',
# datetime(1994, 3, 16, 3, 7, 33)]}},
# u'minima': { 8: datetime(1985, 6, 2, 6, 58, 28),
# 9: [ u'http://williams.com/main/tag/tags/author.php',
# 4586,
# -3232.941],
# 10: { 8: u'rosemary33@gmail.com',
# 9: 611,
# 10: [ Decimal('-4232663.49397'),
# u'NbGdOQPlxphAAdvUWrfB']}},
# u'neque': { 2: 710834418.0,
# 3: [ u'vHOjWyvKOKbiPOpmzWij',
# u'https://parkin-gould.com/login/',
# u'kelly71@murray-butler.biz'],
# 4: { 2: u'PTdYZmRioqoMGJFjeWbm',
# 3: 9486,
# 4: [ u'ahxIFjPPGgLjrYStTLLX',
# u'rGpGmMbCEKPVPMlZTGuD']}},
# u'quod': { 6: datetime(1981, 4, 18, 5, 52, 50),
# 7: [ u'hSkhGrzWBGXVuaViUBYL',
# u'EZybTZrEFkygSutvllZS',
# Decimal('94160120377.0')],
# 8: { 6: u'dgnmTMUichYJQhOZfCiD',
# 7: u'vpDnvDSZlgfUaPAeTjbe',
# 8: [u'rbIWwfzZhlFtLIEFzBvd', 7722]}},
# u'vel': { 7: u'VjPiZYjQzygcKlDiPSPE',
# 8: [ 8570,
# u'http://www.matthews-owen.com/category/faq.htm',
# u'brownfrancis@swift-webster.net'],
# 9: { 7: datetime(1972, 3, 9, 3, 4, 5),
# 8: u'yscott@barton-thorpe.com',
# 9: [ u'http://www.conway.com/about/',
# u'pkOBfyARXrTFrkYvEgoO']}},
# u'voluptas': { 4: u'qXdiFGPTFQZeebZkCEVn',
# 5: [ u'RDadqTeJOxpLWnWsdhpx',
# 727228809.88236,
# u'oDQemHLAtdIilpOrPLBl'],
# 6: { 4: u'BxPLUJIDiyJGxkSVQMER',
# 5: Decimal('207805991.605'),
# 6: [2449, -5397978471877.3]}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# 377617488626.49
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('393890374771')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'EeIYrjRonCkGNPvJzZbf',
# 66,
# u'wlIKyDXaeDXiPYGKsMJy',
# u'vdcMSqycSnFupBSEqzGB',
# u'nSZdwsJsJExjQHLZTlkP',
# u'ttGSZBhGLmAVMNeJcjxy',
# u'sdifUgqNbdTtAbCjwsdE',
# u'http://roberts-miles.biz/category.htm',
# datetime(1985, 4, 23, 10, 14, 55)]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( -48648315833184.0,
# datetime(1991, 5, 22, 20, 29, 19),
# 8387,
# u'dXpMVqcbaJZIqTFNSlXl',
# 70.4,
# u'emrsmKYPMMwXosWtihcR',
# 2921,
# 4397,
# u'SIyXsQgvneXatDRHVUqe',
# u'fsmith@marshall-austin.info',
# u'eleanorwood@begum.com',
# Decimal('74266220.95'),
# u'ucAUOLbeiAOvrwrqFDKC',
# u'https://wright.com/search/post.htm')
fake.pybool()
# False
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([1568, -844186672594621.0, datetime(1997, 12, 20, 12, 48, 50), Decimal('-146737.186'), -185.23131, 540, u'kdHlcSuaVbUiPkxfTajB'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'atque': u'fvgYnLVdAhhpvmxhItLk',
# u'autem': u'rickydavies@clarke.com',
# u'dolores': 12587504628036.0,
# u'ipsam': u'ajohnson@yahoo.com',
# u'laudantium': u'http://webster.com/about/',
# u'necessitatibus': 6342,
# u'non': u'vvcrpPagFdpkcHPqDjeY',
# u'quasi': u'LIchRYLgDLLRqhLXpFDQ',
# u'quia': u'https://jones-short.com/homepage.htm',
# u'quibusdam': u'IaWKvpcOSAMRpPZyRSQf',
# u'sapiente': u'QzJpIJlgUurFmhSmzpDT',
# u'suscipit': datetime(1985, 9, 28, 7, 37, 35),
# u'veniam': Decimal('-944137910.5')}
fake.pyint()
# 7446
faker.providers.ssn
¶
fake.ssn()
# u'243-07-0024'
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/2011-09-28 21:17:51 Firefox/3.6.14'
fake.linux_platform_token()
# u'X11; Linux x86_64'
fake.opera()
# u'Opera/9.33.(X11; Linux x86_64; se-NO) Presto/2.9.188 Version/12.00'
fake.windows_platform_token()
# u'Windows NT 6.0'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; Trident/4.1)'
fake.user_agent()
# u'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; rv:1.9.2.20) Gecko/2011-02-08 05:44:47 Firefox/11.0'
fake.chrome()
# u'Mozilla/5.0 (X11; Linux i686) AppleWebKit/5331 (KHTML, like Gecko) Chrome/15.0.878.0 Safari/5331'
fake.linux_processor()
# u'i686'
fake.mac_platform_token()
# u'Macintosh; U; Intel Mac OS X 10_6_1'
fake.safari()
# u'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; hi-IN) AppleWebKit/532.11.4 (KHTML, like Gecko) Version/3.0.5 Mobile/8B117 Safari/6532.11.4'