faker.providers.pythonΒΆ

fake.pybool()
# True

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'amount': 'MkDJoCKoKRqpUeMhmMBU',
#     'assume': 'ashleyramirez@yahoo.com',
#     'bad': Decimal('632.66880019'),
#     'by': datetime.datetime(1974, 4, 9, 14, 43, 18),
#     'collection': 'http://www.weiss-jones.com/about.jsp',
#     'its': 'mYljYPTiUMsEqgLQviid',
#     'moment': 'https://www.brown-harrison.com/category/',
#     'thank': Decimal('-2.7635794585008')}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'KtNhahHFklPasTWHdgEX',
#     'https://williams-williams.com/post/',
#     Decimal('9080926411673.62'),
#     'URBsMvMiDyJEoPHUMrcO',
#     'https://www.holmes-conrad.org/app/posts/faq.html',
#     -69075170525.4669,
#     7410]

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   11028569869013.9,
#     223,
#     5387,
#     -890476541452389.0,
#     'https://www.torres-morgan.com/search.php',
#     219919768.0,
#     'cassandrasalazar@gmail.com',
#     'mEPbgVzhFtOVmNAwIbYD']

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime.datetime(1982, 6, 7, 7, 26, 20), 1541, 6376, 1454353277772.66, 'iXtSIjYtLeaXzgWqpsoZ', datetime.datetime(2000, 7, 22, 7, 52, 31), Decimal('-78875590672.0'), 1364, 'https://www.frost.com/categories/category/home/', 'gBocVvvjuLXwoYeIQudL', Decimal('-8896243.3327019'), 'volson@torres-stanley.org', 6654}

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

fake.pystruct(count=10, *value_types)
# (   [   5468,
#         'biancachapman@gmail.com',
#         'https://bishop.com/',
#         'qwashington@yahoo.com',
#         datetime.datetime(1985, 1, 25, 2, 49, 23),
#         'HWzBXZOXVdldTqjjmPpy',
#         3013,
#         1700,
#         'kjackson@ward-davies.com',
#         'heathermartinez@gmail.com'],
#     {   'Republican': 'fRQiZqOfsnWNNKwsCfDW',
#         'get': 'https://www.alvarez-griffin.org/post.html',
#         'high': 'sLUDZsnHKXLJLSeOzzyA',
#         'impact': 'vanessaroberts@yahoo.com',
#         'nice': 1989,
#         'plant': -8023476356521.39,
#         'reach': -877794333.246097,
#         'skill': 'gcYcWWhzqoRMyfgXYtNU',
#         'south': 83940924.8637657,
#         'strong': 2152},
#     {   'American': {   9: 'RYZpXSyIjtdGzVwirMHe',
#                         10: [   'hIQoHKVAukIXMVZMPQUL',
#                                 5986,
#                                 'https://cummings.com/faq.asp'],
#                         11: {9: 451, 10: 8933, 11: [628, 6367]}},
#         'affect': {   7: 'yFmVxDpHXFzFKrtnDChU',
#                       8: [   datetime.datetime(2007, 5, 7, 23, 15, 51),
#                              6582,
#                              'hifwPWPOeGDByUwQWoAZ'],
#                       9: {   7: 'amanda90@thompson-lucas.org',
#                              8: datetime.datetime(2009, 6, 4, 9, 42, 36),
#                              9: [-87654495055701.0, -5990253578.64859]}},
#         'knowledge': {   1: 'bqaPDRwQLUOWRUqqyuNS',
#                          2: [   -11484.518761,
#                                 'uywdKSOUCdHmxULBVHfb',
#                                 'kevinhardy@rivera.net'],
#                          3: {   1: 'dsKBNSVKabRdlNyQAToF',
#                                 2: datetime.datetime(1997, 4, 21, 11, 32, 35),
#                                 3: [292, 48337.19]}},
#         'large': {   8: 8345,
#                      9: [   761357408.557,
#                             'jrAiFLUiolczNJzVrwJx',
#                             'QXfsnLkzAVLEwTdcHZvN'],
#                      10: {   8: 'FptAruVGhmzHofGYsjWp',
#                              9: 'btpKVvxARHNyoMyuikYU',
#                              10: [9104, 9895]}},
#         'not': {   6: 1321,
#                    7: [154, 'tiffanyhogan@peterson-johnson.biz', 1901],
#                    8: {   6: 'AaJGoqeqXSqjjDwBydsM',
#                           7: 'ixerIMVxeKUNgOpQwUEK',
#                           8: [   datetime.datetime(2008, 8, 22, 9, 49, 38),
#                                  'twUlZPjceUPuqTAqvclH']}},
#         'part': {   4: 'lisa91@le.info',
#                     5: [   90.64249618186,
#                            'ChDFVOhAYgjCmyVWifPd',
#                            'KcxfEfSoAdLMdxCRhBVn'],
#                     6: {4: 5771, 5: 2045, 6: ['craig45@moore.info', 791]}},
#         'pull': {   3: datetime.datetime(1986, 2, 17, 4, 8, 25),
#                     4: [   'ExoUweptXgxXARscTEDF',
#                            Decimal('7.302'),
#                            'ECyugCMGtDzhHcVsWpJq'],
#                     5: {   3: 'oXqfilUKcIClyMTyNlqv',
#                            4: datetime.datetime(1977, 1, 27, 22, 2, 41),
#                            5: [910, Decimal('-85743328231.51')]}},
#         'state': {   0: 'ihrhtXtoGdCXihAcfbXM',
#                      1: [-507715.99, 2473, Decimal('-0.3316307833')],
#                      2: {   0: 'OPYVxIfWdIABZWAKOvtB',
#                             1: 'TtnKMPBbiuSFxlDueCna',
#                             2: [   'JmrRrPiNkIBuOUCYzKrM',
#                                    'stswwHTwKEYgtayfERZO']}},
#         'those': {   5: datetime.datetime(2012, 11, 25, 0, 9, 14),
#                      6: [   'DrfEUQuMhSXxSsHfJfcT',
#                             'http://manning.biz/list/posts/blog/category/',
#                             1769],
#                      7: {   5: 'cathyjohnson@hotmail.com',
#                             6: 'PznnSMFvllEXhBTOAAYh',
#                             7: [   'jacksonvictoria@spencer.com',
#                                    'https://www.evans-carter.org/home/']}},
#         'two': {   2: 'tnsePXuINpmItTTDFTIG',
#                    3: [2000, 2968, 4735.558106],
#                    4: {   2: 'YqhiJMulQXngmoLpmOyZ',
#                           3: 7822,
#                           4: [   Decimal('-846072358658.0'),
#                                  'http://www.hall-jenkins.biz/terms.php']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'WUPRJPFmEqgeeDqEuPUO',
#     'uawgczfOXbtHNVfJEbvz',
#     datetime.datetime(1970, 5, 30, 14, 29, 58),
#     'https://mcfarland.com/search/index.jsp',
#     'mYStPowByNLVyLrCgAJm',
#     'icwyfQBumwvISIIEwoUq',
#     'jSncLQilsbcBsaMNmAZC',
#     1467,
#     datetime.datetime(2011, 12, 31, 7, 6, 37))