faker.providers.pythonΒΆ

fake.pybool()
# False

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'PM': 1719,
#     'because': 'CRxGjmdgUJNQZoHbYNWM',
#     'decide': 'qpugh@hart-fuentes.biz',
#     'government': 'zhendricks@yahoo.com',
#     'issue': 3452,
#     'life': 'RMMHACeitexrepnMLIgc',
#     'painting': 'TUgvpFzrrPLSTJWEaRmA',
#     'particularly': 'FCKbkPzrcFDXlHLpzRUd',
#     'so': -29.0,
#     'store': 'http://casey.com/faq/',
#     'study': 21642.65,
#     'team': 'http://fisher.org/main/posts/about/'}

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

fake.pyint()
# 6230

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'IMlrgMarDOCZFRSdbqhs',
#     4802,
#     'eFeVyQaUqdYMWBexDNyb',
#     'sVrvPfmJwoygyCcsqPqN',
#     'bmbqwHGDaflwtPBiKAvB',
#     'UTYJXMFVSiVCfPjqphtP',
#     Decimal('-8594176555.87347')]

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'xHlTHzlRrhqENIrtklPn',
#     'pLIBqjFoTRMQFLyoymYx',
#     1578,
#     'xDOZZoCTmEfUERfgmfyT',
#     515557232061889.0,
#     'lkrENLrowyOxjDnIMtDU']

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'AyfuoQNEgCWXUYtYJqNP', 56460941604614.0, 'CNXtRoGNlZvzCkCpsfJf', Decimal('357763390.843792'), 'UHzLdLeecxUdJIUrmGQL', Decimal('77817537358570.1'), Decimal('758757.9'), 'ksHXmHBDwNWSRuBcODmd', 1561, 'KwfuwIhRpowbclMUYtFg'}

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

fake.pystruct(count=10, *value_types)
# (   [   'hectorcollins@hotmail.com',
#         'okKhCjvGlVtVsfzOMObF',
#         datetime.datetime(1993, 7, 14, 11, 57, 5),
#         'lAjnJkOZwnxfHUllQjCE',
#         'jonesemily@white.info',
#         'https://bridges-kemp.com/login/',
#         -778075861.1,
#         datetime.datetime(1982, 8, 27, 1, 15, 2),
#         'neorcWESjccnYquVuqks',
#         4574],
#     {   'apply': Decimal('-66.3653575997'),
#         'draw': 'john23@white.com',
#         'establish': 3228,
#         'explain': 'FdEadDJwoNzleHytqgdZ',
#         'major': 'bmendez@gmail.com',
#         'past': 'http://mccall-austin.info/privacy.htm',
#         'politics': 'fLJwvLRnJoyzRgJrsWpX',
#         'raise': 'cGWeJHfulZyXgwxzUsqI',
#         'top': 'leqNpxxsOspPWxtASQth',
#         'vote': 'EONBHMaTqUBiFkXGJPkA'},
#     {   'according': {   0: 2833047964.444,
#                          1: [   'PrtYOtOPGIOaseiPiCQf',
#                                 'https://cuevas.com/about.html',
#                                 'FcdtARhKsAozcUbmDPys'],
#                          2: {   0: Decimal('-59802242.63324'),
#                                 1: 685866.12693,
#                                 2: [   'uBNOvMVQlmxoTmHcsRAt',
#                                        'RdGaPyjrVoxmqrFSswEg']}},
#         'allow': {   7: Decimal('-35763228818761.3'),
#                      8: [   'sean48@johnson-drake.net',
#                             'https://garcia-ellis.com/main/register/',
#                             1091],
#                      9: {   7: 'http://johnson-smith.com/',
#                             8: 'sanderssean@yahoo.com',
#                             9: [6990, 'sbyeYmVSeOHFcaqhGdKU']}},
#         'church': {   4: Decimal('162.86012'),
#                       5: [   'http://www.davis.org/author.php',
#                              'gcXqpSmPBjsbgcwozRij',
#                              datetime.datetime(1980, 4, 7, 12, 18, 12)],
#                       6: {   4: Decimal('10320148151663.8'),
#                              5: -40.3,
#                              6: [   'http://camacho.org/tags/tag/tags/home.asp',
#                                     'QIuxSmDiFRhqpFgjyylF']}},
#         'event': {   2: 'yuVybatTXTFqmwmmQXoR',
#                      3: [   'FSitJCVkCNiPOoStEqhj',
#                             'KoMFlgcVrrgKdtgRcWWC',
#                             'TRRmCQpocTEPGkJyfBcY'],
#                      4: {   2: 'vPXzNcaABAqGcMvRrsxO',
#                             3: 5340,
#                             4: [   'PoUhKCzyGVZvSWbHBGki',
#                                    'jessicalane@yahoo.com']}},
#         'in': {   3: 'xVuKIXPhUjiAWMvKDqqO',
#                   4: [Decimal('94711139806.78'), 4061, 286.11075342],
#                   5: {   3: 3729,
#                          4: datetime.datetime(2009, 12, 5, 16, 31, 25),
#                          5: [691, datetime.datetime(2008, 8, 16, 4, 25, 42)]}},
#         'painting': {   9: Decimal('85138.90163'),
#                         10: [   0.668414719,
#                                 'cVzUXBbaahPogvNocKwe',
#                                 'https://clark.org/'],
#                         11: {   9: -9.6,
#                                 10: datetime.datetime(1988, 6, 25, 16, 25),
#                                 11: [   5.50968,
#                                         'http://robinson.org/category/category/register.htm']}},
#         'seem': {   6: 2.64,
#                     7: [   'YOvBOUJJkWoxrXpVJYhe',
#                            -8817383.8116,
#                            'acnCrfgvsRUrfCToFXnj'],
#                     8: {   6: 5844,
#                            7: datetime.datetime(2003, 1, 9, 10, 15, 27),
#                            8: [   'PYZPRDKGqWJvXRUBAUxN',
#                                   'zFuGKYrlvicpWpUUIwCu']}},
#         'someone': {   1: -692163603528.675,
#                        2: [   'DFGzTMGqZRRivlkbrsYV',
#                               'IsmFVpZrzjCxNFxCoFHD',
#                               datetime.datetime(2015, 10, 6, 22, 27, 16)],
#                        3: {   1: 1920,
#                               2: datetime.datetime(1977, 2, 27, 17, 16, 3),
#                               3: [   'http://walker.net/search/search/homepage/',
#                                      1698]}},
#         'treat': {   5: 3270,
#                      6: [   'uoSQizOGJMQeoNjphwCw',
#                             999086.21827,
#                             'obWtqKROnZzOzepbkxUG'],
#                      7: {   5: 'EABMryQqTctmXdoRayPd',
#                             6: 'DMKdJNffYowesWOXGcqv',
#                             7: ['zziZzpBzDTuqavIMEQVf', 3878]}},
#         'window': {   8: Decimal('-81180897093696.0'),
#                       9: [   'dfopaMMRgOXmnsYatfeJ',
#                              'GommcIazKoEHxTvirOiF',
#                              'http://bryan.com/'],
#                       10: {   8: 'https://brady-cantu.com/home/',
#                               9: 3268,
#                               10: [   'JdXtnTrLOHPBNczhxmnp',
#                                       'curtisbrown@yahoo.com']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   3.5,
#     'XZDQKMGdJVdMzvlENDPt',
#     datetime.datetime(1992, 10, 25, 21, 35, 43),
#     'https://www.richardson.biz/posts/explore/privacy/',
#     8093,
#     'michaelhenderson@moore-morris.com',
#     'BQEdrhtcKVUUMKyydrkZ',
#     'upUdMyXbUVAXcbCkRWqz',
#     'oXEGRbQFglpCmvXZevIN',
#     2301)