faker.providers.pythonΒΆ

fake.pybool()
# False

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'church': datetime.datetime(2011, 2, 25, 2, 5, 18),
#     'ever': 'ZcauaEwwrysrSxrrjDfr',
#     'front': Decimal('77180039485491.1'),
#     'however': 'https://hunter-boone.com/tag/wp-content/about/',
#     'involve': 'UUvReNUxzizbcHUgfExN',
#     'many': datetime.datetime(1982, 11, 26, 8, 40, 11),
#     'physical': 7600,
#     'quite': 'HvTxZxMJkfPFwoujFuGu',
#     'sort': 'eBVWqXlJUTcNEvGYNOhW',
#     'which': 'SeUgLlIFnsfmknEPjCDP'}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'anne21@ramos.com',
#     2928,
#     8724,
#     9665,
#     Decimal('-9.8186667'),
#     datetime.datetime(1998, 9, 16, 22, 33, 23)]

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   9119,
#     'ujBUEhSCacwwzNRSBByX',
#     datetime.datetime(1974, 7, 30, 18, 37, 18),
#     Decimal('-44095.2'),
#     'WfFBFGAiQDjgEMJYlNTp',
#     'snielsen@gmail.com',
#     'betty67@richardson.com',
#     4319,
#     'ZJpGJJUZPxKIgOlKeydy',
#     'carrmark@mills.org',
#     'EHhCSatrfVcnfXzkchtY',
#     Decimal('-63543237037130.0'),
#     9659]

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'vRxZevJcEtFNwvpymgap', 'ZLfGWQiIWwAGMOzXiLcx', 5739, 'oEgqOmXgwLEnQCfoFNDs', 'ljhOUvCvXOXSISTCirCd', -3999749570.821, datetime.datetime(1989, 4, 8, 6, 21, 47)}

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

fake.pystr_format(string_format='?#-###{{random_int}}{{random_letter}}', letters='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
# 'r7-8735023f'

fake.pystruct(count=10, *value_types)
# (   [   'RXnIyMoDhxgAJuMXZQHh',
#         4695,
#         'andrea17@hotmail.com',
#         'QXDYLcyZvFrSIfbassOi',
#         4642,
#         -3657875959.43,
#         5243,
#         'suzanne92@mills-maddox.com',
#         'DFyXgOivgIGfAbSNTPhL',
#         'OCRtLDhMxMcAPzlXkQDs'],
#     {   'among': 'TbsfOyPplgJSMjeMDYUt',
#         'bring': datetime.datetime(1987, 8, 10, 9, 45, 19),
#         'fine': 'aDHcEnfMRudACxCSeGIC',
#         'former': 750,
#         'ground': 'https://www.taylor.biz/author.php',
#         'large': 'hOScUEIYLPtiNkzjoJSl',
#         'method': 'chrisweaver@yahoo.com',
#         'people': 8793,
#         'public': 'eeYjEXaPciZCtHCEGyxW',
#         'sense': 'QwkKletucJokGnoCLwkJ'},
#     {   'PM': {   0: 'http://www.david.com/home.html',
#                   1: [8289, 'HveCUbMiTqrIgpWaorDw', 8146],
#                   2: {   0: 1726,
#                          1: 'iXnfeLGeztWTASjbYEqA',
#                          2: [5353235.662, 'trevor69@yahoo.com']}},
#         'artist': {   3: 8785,
#                       4: [   'anthonyortiz@gmail.com',
#                              'blzsyXXmZjEglufcTlpO',
#                              'hCObeRFxlfCnmVtDlBgy'],
#                       5: {   3: 'ZGyKCevmtCfkeRPQEmYU',
#                              4: 'FKXzvHIefgnVBOCrYnOO',
#                              5: [9181441317149.3, 5488]}},
#         'camera': {   7: 8085,
#                       8: [9765, 'uEEpJKjKhXzKDIgUHsiQ', 'otOZprsGoXfbzvxxTsFT'],
#                       9: {   7: 'http://hensley.com/',
#                              8: 506,
#                              9: [   'iTYhBkZkGdAZWiYajmoU',
#                                     'http://wise-fuller.com/']}},
#         'industry': {   9: 'https://www.flores-johnson.biz/post/',
#                         10: [   3309,
#                                 'YSGmXzmoPFxjedWcxFPR',
#                                 'http://www.bailey-meyer.biz/main/main/privacy/'],
#                         11: {   9: 'travis67@armstrong-keller.com',
#                                 10: 4581,
#                                 11: [   datetime.datetime(1970, 6, 23, 14, 29, 35),
#                                         'thomas73@lewis.com']}},
#         'national': {   2: 'http://www.harper.org/privacy.php',
#                         3: [   'http://schmidt.com/post.htm',
#                                'isjwqgiPZSymOrZCSsoE',
#                                'uTeVesnDCmpEAxzzGTiB'],
#                         4: {   2: 'nHgqDtrfGKLXCrPVhNqP',
#                                3: -61.2491,
#                                4: [   'cgFehYbbLcTIfQvdtDfB',
#                                       'TOBaVUMxceorbERbtbuc']}},
#         'or': {   8: 'FvhJfjswJdpdzPCwvyoj',
#                   9: [   'LVMgIgiRMtUGTFqCjULu',
#                          'NDTtHukNKcDHdQruQKlQ',
#                          'edward99@gmail.com'],
#                   10: {   8: 'YccgmJnweXBAOsMciGUa',
#                           9: 5286,
#                           10: [   'NPHScNVjiataEFtxvdhg',
#                                   Decimal('-414727304235593.0')]}},
#         'push': {   5: 'kqhqzDiihqNpEqbZTPPB',
#                     6: [8876, 'mariagallagher@morrison.com', 322],
#                     7: {   5: -754.0,
#                            6: 'http://www.jackson.com/tag/wp-content/login.htm',
#                            7: [   'wAqcJfzoNaYxDtmrWDLC',
#                                   Decimal('8563981.22188')]}},
#         'rule': {   1: 'http://patterson.com/',
#                     2: [   'YUyQNKiquXsQIrTRQwON',
#                            Decimal('13795881338627.0'),
#                            Decimal('8012.2866057')],
#                     3: {   1: 6463388852419.1,
#                            2: 'RumPpvrMfydLGIAGKpJq',
#                            3: [   'AkQLduoWgfUBdDdzYlVj',
#                                   'PchyaATPpgzcYPAeHEOi']}},
#         'smile': {   4: 'https://bradley-edwards.info/search/',
#                      5: [   'BvaHDEpRRryLngVXmTmF',
#                             'https://www.maynard-mills.info/posts/app/register.htm',
#                             'https://fitzgerald-harrington.com/list/home.asp'],
#                      6: {   4: datetime.datetime(1993, 6, 13, 18, 54, 46),
#                             5: datetime.datetime(2001, 4, 27, 1, 2),
#                             6: [   datetime.datetime(1972, 3, 5, 21, 56, 1),
#                                    'sBvGCYwGioYzxlMdGQby']}},
#         'speech': {   6: 'http://calhoun.com/wp-content/main/home/',
#                       7: [5772, 'QNJbkcDixWMXgrQzDGIm', 6785],
#                       8: {   6: 854,
#                              7: 'nrussell@golden.com',
#                              8: [   'SkuyHxDZGezmdDDsTALH',
#                                     'MSdRiTpkkiLNvyNrEIAB']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'http://bridges.com/index.html',
#     'https://scott-hubbard.com/',
#     'CGuGvaMUMquYlLxVjNJP',
#     'https://pugh.com/search/main/post/',
#     datetime.datetime(2005, 6, 11, 23, 55, 41),
#     'http://martinez.com/main/tags/home.htm',
#     datetime.datetime(1974, 2, 18, 23, 0, 16),
#     'http://www.huynh.com/tag/posts/homepage/',
#     5904,
#     6416,
#     datetime.datetime(1987, 6, 13, 20, 9, 35),
#     'fezBdKBlxxiElaVghjal',
#     'uZhMqXiiRqfLvEfpQpAp')