faker.providers.pythonΒΆ

fake.pybool()
# False

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'a': 'xnpaBwUVZmHVOQZYAKer',
#     'and': 'evfAylGCbqJopiHgWerE',
#     'few': 2478,
#     'foreign': datetime.datetime(1990, 10, 19, 11, 28, 10),
#     'include': 4453,
#     'involve': 'vDJKpMQvFQtVnwyttXqE',
#     'last': 'UiqUWrtGJukcRpYcImiy',
#     'painting': 397,
#     'science': 707}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# (   3938,
#     2.43829927,
#     'http://www.james.com/categories/list/app/main/',
#     'apWPNjbwymnCzSWONOBc',
#     172957.63032,
#     Decimal('89502.9421'),
#     'hornlauren@hotmail.com',
#     'wlzMtZHeDkzYqBrdCOrA',
#     datetime.datetime(1975, 11, 6, 10, 23, 20))

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'MlvsLOlmFQqUSnEeOKrg',
#     datetime.datetime(1989, 4, 12, 10, 54, 35),
#     'https://bush.com/home.asp',
#     'abigail42@clark.com',
#     Decimal('3100.1411062'),
#     'danielwilkerson@gmail.com',
#     5514,
#     'gJWEGRiddPYYaCkTLzyy',
#     'denise68@yahoo.com']

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime.datetime(1979, 1, 18, 12, 11, 9), 2857, 'mTDPczkGXUlTmXbPrKaD', 'james09@taylor-hernandez.org', 5901, 'johnsonerin@may-sullivan.com', 'JqMaqXaGXAoVeHvMqrKI'}

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

fake.pystruct(count=10, *value_types)
# (   [   'burkecatherine@vaughn.com',
#         'vcampbell@wheeler.com',
#         Decimal('602311.25359'),
#         datetime.datetime(2001, 8, 11, 7, 43, 3),
#         'sxbAboqqNumDWJuRaxfR',
#         Decimal('803461008.487'),
#         'http://parker.com/index.asp',
#         7512,
#         'acMlUYumEkXZnSlOyLHJ',
#         datetime.datetime(2003, 1, 12, 7, 36, 56)],
#     {   'approach': 'chinton@hotmail.com',
#         'cut': 'qUSpLYAIKpfghsfHaZSl',
#         'democratic': datetime.datetime(1976, 7, 19, 18, 27, 49),
#         'dog': 'zphillips@smith.com',
#         'guess': 'VblWfsvTuSTPTGNLUVuU',
#         'health': datetime.datetime(1995, 2, 12, 8, 52, 22),
#         'them': 1941,
#         'tough': 3758,
#         'trial': 'dAywfKXQTUnvJFfQVxSt',
#         'try': 'vYwxqcmdTUEFURvxetDs'},
#     {   'agree': {   6: 1855,
#                      7: [   'EKptiAlREhRiZIyNotqN',
#                             'gwendolynjennings@carrillo-jones.biz',
#                             'sBqLkqNKvJJwcWYfvGsY'],
#                      8: {   6: 'MCfTzuabNLlYbwhymYQx',
#                             7: 'diana66@hotmail.com',
#                             8: ['pDWtcjFRSwiJazlJtYMc', -603920051571953.0]}},
#         'back': {   7: 8564,
#                     8: [   'https://haynes.com/main/faq.html',
#                            'https://warren.biz/main.php',
#                            2402847316290.3],
#                     9: {   7: -773.32436019537,
#                            8: 6370,
#                            9: [   'https://www.pacheco-daniels.com/categories/app/post/',
#                                   'UnGpHMpczbNRvGQYhGbx']}},
#         'beat': {   1: 'DHOpTQBNcUrvJnGLoAem',
#                     2: [   datetime.datetime(1974, 4, 19, 3, 25, 13),
#                            datetime.datetime(1973, 6, 25, 13, 51, 5),
#                            'oTzyRmxYOLbomiNgspjb'],
#                     3: {   1: Decimal('-241919435976.8'),
#                            2: Decimal('455242385257.601'),
#                            3: [1664, 'zSnAOGPgnfvdztqiQIaz']}},
#         'can': {   3: 'LRzhjZbhgHkmGCiAmzgx',
#                    4: [   'rlUUhoOaeifrQOitxXgb',
#                           'http://www.macias-taylor.com/',
#                           'anna76@lawrence-palmer.info'],
#                    5: {   3: datetime.datetime(2015, 4, 14, 0, 31, 17),
#                           4: 'GTKSJUDptpOheusWfzYX',
#                           5: [9112, 'amandarocha@hotmail.com']}},
#         'course': {   8: 'cyoTKpUmlFcnSBMeOWmw',
#                       9: [   'UZyTeuIoyCeWuaUGhKhz',
#                              'SsUqjfJgKApWvdOyvBBX',
#                              -221994.9],
#                       10: {   8: 'https://www.klein-cunningham.org/search/main/homepage/',
#                               9: 'peSUhqtZCkirvPiYzWNP',
#                               10: [   datetime.datetime(1989, 2, 13, 18, 19, 1),
#                                       6586]}},
#         'he': {   9: 3917,
#                   10: ['NizYeVGQNIsyvanzwYSE', 4359, 'nqWEBxOLLudjOFpsEbip'],
#                   11: {   9: 8260,
#                           10: -9785554468.3,
#                           11: ['cwYPTuWKAlzXkrhndrGP', -25040883.0]}},
#         'rock': {   4: 'mszsjNhnoywROpvyOYxx',
#                     5: [   'usMlBhutqYxSTYFeSOwS',
#                            'http://herrera.com/home.php',
#                            4391],
#                     6: {   4: 1104,
#                            5: 8122,
#                            6: [   'UqyTtLYkmUOwyfcArdiq',
#                                   'LkImftYaaSvpXpmqHxuZ']}},
#         'site': {   5: 3488,
#                     6: [   'rQwpmhWDxjwSnQbluyMC',
#                            Decimal('5171306970.0'),
#                            'SJrDOIGOahwycTsapGfv'],
#                     7: {   5: -9832185.29,
#                            6: 'https://www.cervantes.com/post/',
#                            7: [   datetime.datetime(2006, 5, 13, 0, 29, 10),
#                                   'MvVmgQnSclfisILycsLq']}},
#         'thousand': {   2: 'AoMnkaRoSrrnuySGnvtL',
#                         3: [4092, 792, 'http://park.com/'],
#                         4: {   2: 'reedjody@barrett-stevens.com',
#                                3: 'mAmqCSQXYDUQZsUwqCPw',
#                                4: [   'vKQoVViJHCyLIbvPnrMl',
#                                       'http://www.butler.net/index/']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'cindy64@morales.com',
#     datetime.datetime(1985, 9, 21, 23, 56, 44),
#     'ZMZhRvOIskBeIcRGlkKw',
#     'WRWoHrDqJcvwblvxlJdW',
#     1078,
#     'SQIgQDonNeKJGHeNewWl',
#     3769,
#     9949,
#     'IrrEgaXSArcyYaWBnnaC')