faker.providers.pythonΒΆ

fake.pybool()
# False

fake.pydecimal(left_digits=None, right_digits=None, positive=False, min_value=None, max_value=None)
# Decimal('-23827307338161.9')

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'bad': 2652,
#     'best': 'https://richardson-chang.com/explore/wp-content/category/index/',
#     'common': 'http://moran-phillips.net/tag/search/faq.htm',
#     'fill': 'http://parsons.com/main.html',
#     'later': 'JkOMUjVRfxbxkqkdUfIW',
#     'majority': 'wjgNffiFkJGrSwTuOOup',
#     'mission': 658,
#     'plant': 'keZSAgSZTKApVxLRxwqM',
#     'send': 9899,
#     'somebody': 'opZGIQsChyGawYRLPvga',
#     'state': 'iXqiiOxVjDbtaBXFbsFp',
#     'will': datetime.datetime(1980, 6, 2, 17, 40, 40)}

fake.pyfloat(left_digits=None, right_digits=None, positive=False, min_value=None, max_value=None)
# -83459.1934

fake.pyint(min_value=0, max_value=9999, step=1)
# 2207

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'http://www.davis-jacobs.com/',
#     Decimal('440536358612906.0'),
#     -27963493021.7,
#     'CoKnsMyEtufvyocgmhJS',
#     'http://www.mitchell.com/',
#     'RODApIBoIMdaOuVJxuAq',
#     7390358.29355771,
#     'XwJxdxfozXSDOATMsPWk',
#     'gfEkhkMTidkznRHacUWN',
#     14278034006464.0,
#     'ATFuJbptMCoAPhttifmU',
#     'http://maddox-griffin.net/post.html',
#     5790]

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'richlatoya@hotmail.com',
#     'graywilliam@yahoo.com',
#     Decimal('217.795868'),
#     'http://robinson.org/posts/category/tags/search/',
#     4483,
#     576,
#     'VVgUTzGRrHBEXqfpRsuK',
#     -2108591.56424,
#     7827]

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'vasquezbonnie@yahoo.com', 'MouspDFJCBimJzzWArIz', 'VwtNKbLSaGyRcUjsPMBY', -73846682482324.0, Decimal('-6032466.814641'), 'VDLkkwiRzPCVFeTnWPYg', datetime.datetime(1983, 8, 29, 6, 7, 25)}

fake.pystr(min_chars=None, max_chars=20)
# 'sTVdmvmbEuwJAEEtHNiW'

fake.pystruct(count=10, *value_types)
# (   [   Decimal('-486278078.293'),
#         121,
#         'aShXHATbmsCKORSLCfWW',
#         8400,
#         Decimal('-816129.311681152'),
#         'ghhdYsHDPpHbtZWhDpYJ',
#         'GxXNbzKrMogGfpMnMPDt',
#         5881,
#         1560,
#         'EWSBXBBjkrJCGLTUIPkJ'],
#     {   'attention': 'https://www.lewis.com/home/',
#         'bag': 41302840327105.0,
#         'candidate': 'WXTqrmBfHnxHKnFtQvEY',
#         'game': 'XSGFTjTCIEiYDAfUlaIj',
#         'hold': 'nGvqsQJoUCbhgBOfYUFz',
#         'only': 7236523.15006921,
#         'parent': 'UsAXtOBHVpJLcQYvAJVa',
#         'physical': 'sXJcPMGFfwVXRFzvMHer',
#         'thousand': 'yfkLnXySJoAvvxWChXSh',
#         'west': 'XJnizmvOVfUUAuQKpWMr'},
#     {   'around': {   8: 'DjkxIwgaKknWRfIUFLmi',
#                       9: [   'wilsoneric@yahoo.com',
#                              'http://www.chang-black.biz/',
#                              3032],
#                       10: {   8: 'http://www.wagner.com/main/posts/search/index.php',
#                               9: 3079,
#                               10: [   'brenda21@gmail.com',
#                                       datetime.datetime(1986, 11, 5, 13, 24, 4)]}},
#         'ask': {   1: 'aMjhHsqcncoHySzFjEQg',
#                    2: [   'http://www.hill.com/terms/',
#                           'AalPABjrJRDYPWoRrdvP',
#                           Decimal('82072652361566.8')],
#                    3: {   1: 1107,
#                           2: 8369,
#                           3: [Decimal('-4146741836.25173'), 3119]}},
#         'attack': {   6: 'zIHpcoGOgBKObvsfaiGl',
#                       7: [   'mwaRCqFYYXmAuujCsxnR',
#                              'aaEjshnpJqhdJpkfjOxc',
#                              'https://hess-miller.net/search/author/'],
#                       8: {   6: datetime.datetime(2009, 2, 5, 18, 6, 44),
#                              7: 'HpJBMxHxumhVagLuwUtJ',
#                              8: [   'nIrvtFnsCuYBThHVPkMg',
#                                     'krodriguez@neal.com']}},
#         'author': {   9: 4607,
#                       10: [   'sTcyVRPodEZzswzfVPaO',
#                               'gaCqQhKMIdYxKeRGxYuK',
#                               'http://king.com/categories/posts/app/about.jsp'],
#                       11: {   9: 'dtwpnOVLcxRMVOuxeihO',
#                               10: -1882.38,
#                               11: [4917, 'ITHhUfJBqEsphdcqMpgP']}},
#         'change': {   4: 'WpBIrKKanQTtWbmDMfoh',
#                       5: [   2003,
#                              datetime.datetime(1975, 5, 12, 15, 53),
#                              datetime.datetime(1986, 10, 12, 4, 48, 56)],
#                       6: {   4: 6161,
#                              5: 4317,
#                              6: [   -504843607241.1,
#                                     datetime.datetime(1976, 12, 4, 8, 55, 26)]}},
#         'life': {   5: 'lHiWNBrRUcyjHHcxNveC',
#                     6: ['ZHeQcDZXiXfqSEXeFHnW', 4080, -76.29],
#                     7: {5: 8026, 6: 3317, 7: ['gDwimstnYGGAmMTsPamI', 5659]}},
#         'mouth': {   2: 6430,
#                      3: [   'http://rodgers.com/category/',
#                             1983832729426.0,
#                             'UAedvMQukwKaDbfcInzg'],
#                      4: {   2: 'fGnHlRKohIyPGnJpjqVX',
#                             3: 'JGCrjYoxEodvMIxEKcou',
#                             4: [   'PyDRBowxysKgNuDYKYFg',
#                                    datetime.datetime(1971, 11, 11, 9, 31, 56)]}},
#         'student': {   7: Decimal('74210586297.2521'),
#                        8: [   'lewisjessica@carr.info',
#                               Decimal('86.0'),
#                               'kQEKgjfBifcinNyRhqze'],
#                        9: {   7: 'http://rasmussen.org/',
#                               8: 'ZXwjoPVUloobRgumUbkD',
#                               9: [   6034,
#                                      'https://mckinney-peterson.com/terms.asp']}},
#         'successful': {   0: 'MjjDlLCFJrOjTbHvxOLg',
#                           1: [   'catherinelyons@yahoo.com',
#                                  5905,
#                                  'mXHKUKtuFtbyvEnEwwgE'],
#                           2: {   0: 'MzWkNqLtPfDVicfQKlIa',
#                                  1: 'http://www.leach.com/main/app/wp-content/main/',
#                                  2: [480, 'JflYlGUrRjvMWPmmufaa']}},
#         'very': {   3: 'https://tucker.com/posts/blog/categories/homepage.htm',
#                     4: ['psxUvjCHYOOPmhLIzTsu', 'FhLzXjDNGcvuIAncVNMd', 4812],
#                     5: {   3: Decimal('723203049.33'),
#                            4: 196899.997847,
#                            5: [   datetime.datetime(1977, 2, 13, 16, 0, 35),
#                                   'jKxanBheMeSNqfRUMbiT']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   96.958616107,
#     9153,
#     'AtHuQfYbORlWgYTmFRAU',
#     9511171.56,
#     'https://www.young.com/posts/list/blog/main/',
#     'http://www.matthews.info/posts/app/explore/register/',
#     'castillosteven@morrison.com',
#     5502)