faker.providers.pythonΒΆ

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   4516,
#     datetime.datetime(2010, 3, 2, 6, 53, 46),
#     'fdQGMbPZjPSvYUwVYyNn',
#     'OuPwaBYxrJXUGrhgrnov',
#     'tkbBxvxSdsZSfoyVVUaJ',
#     'http://brooks.com/explore/faq.php',
#     1332,
#     9172,
#     'lXRRXaieQyPwRMFbBFDO',
#     'GYwMrhVXATRERfiPIBVT',
#     datetime.datetime(1984, 9, 20, 8, 5, 34),
#     'TwywyenILuNOQKYBVPYR')

fake.pyint()
# 7567

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'zZpbgWgyHtoSBUYiEUhr',
#     'https://www.newton.com/home/',
#     7036,
#     'heatherbecker@gmail.com',
#     62067.541041,
#     Decimal('-30202349544.5'),
#     datetime.datetime(2001, 6, 25, 16, 44, 12),
#     4407,
#     'ZMNzNzoarkeRjbptBWFZ',
#     'http://www.alvarez-smith.com/explore/wp-content/home.html']

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# {'HVsxBuPGJVoUlUJPADSv', 'crystalhughes@yahoo.com', 'kGIgHhEXqzVUVCVdEXxy', 'nIQVZtsjpHJuAagLYFLW', Decimal('289246420350.0'), 'smithtristan@gonzalez-cox.com'}

fake.pybool()
# False

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'catch': 'DBZoFkkEMNvvZRAExQcG',
#     'century': 544.745565,
#     'dinner': 'http://www.williams.net/post.htm',
#     'film': 'http://wells-martinez.com/main/tag/main/',
#     'fine': datetime.datetime(1971, 1, 8, 7, 59, 30),
#     'get': 'trSiTilZXGJIgChyTuBl',
#     'image': Decimal('761887.7282264'),
#     'ready': 'bMyyJfrUriBsaAJzwxrL',
#     'stand': datetime.datetime(1984, 12, 18, 23, 57, 9)}

fake.pystruct(count=10, *value_types)
# (   [   'ugUOMtsQmBHhvpXKrpTZ',
#         'http://www.todd.com/terms.jsp',
#         'nDbXKkkFSeVFwQvIaZvm',
#         'DxgxuEPgwkeIrXeroKjc',
#         'ovHYQLFVNUcfwMTwYIQr',
#         Decimal('16406164.56'),
#         8145,
#         2873,
#         9354,
#         'NLfRnmILuiTdlSHqVXSC'],
#     {   'area': 'FkveSwONdcbAlznOlTBp',
#         'best': 'rEdMKNTTEYWajufUyvHN',
#         'foot': datetime.datetime(2013, 2, 16, 6, 6, 35),
#         'main': datetime.datetime(2003, 6, 5, 14, 58, 40),
#         'off': -475523.95925,
#         'school': 'vLyuBmcDlppbHOkLKCBH',
#         'stop': datetime.datetime(1975, 5, 30, 16, 55, 19),
#         'student': 'qzjlCkEcySyNRhPFvPhd',
#         'those': 'AUHzRBYabWTihcoUWxQk',
#         'win': datetime.datetime(1981, 10, 8, 0, 33, 26)},
#     {   'answer': {   3: Decimal('6560227.459'),
#                       4: [   Decimal('-20168953645.0'),
#                              'https://www.mcbride.com/tags/wp-content/post/',
#                              -83971347318032.0],
#                       5: {   3: datetime.datetime(1991, 9, 18, 12, 36, 46),
#                              4: Decimal('930483486.0'),
#                              5: [7057, 'DyiQBDOPXhNvbhetlATd']}},
#         'cultural': {   9: datetime.datetime(2008, 10, 17, 7, 17, 22),
#                         10: [   'https://harris.com/main/',
#                                 'EkHgLDkQplImRWZbrqDj',
#                                 6621],
#                         11: {   9: 'QTdQhkyxQwdYWMfBvniB',
#                                 10: 'vshIXdbXXqFzCBJtVkCi',
#                                 11: ['grkngYuzOJbOCppgbTkd', 2185]}},
#         'exactly': {   2: 'BrEkyZaHQJTdGgyVsVpU',
#                        3: [   'FTRwfqZDfLAZVjAjqEBh',
#                               7249,
#                               Decimal('-7643345682337.98')],
#                        4: {   2: 12221152744333.0,
#                               3: 'costapamela@shannon.com',
#                               4: [6014, 'http://flores-orr.com/author.asp']}},
#         'fish': {   8: 'unexaseCtNpJSYMGSljJ',
#                     9: [480, 'hxuRRkDvctvKTKmPJYyU', 'VXhKYVHNtflaNwvvzDOi'],
#                     10: {   8: 'xBoxnBpMgmbsyICWtNuU',
#                             9: 3907,
#                             10: [2248, 'IZUXMxgGzSzPRrDYThqT']}},
#         'game': {   5: 7950,
#                     6: [9502, 4225, 5634],
#                     7: {   5: 3613,
#                            6: 'IcdmiCbfFOQCmeKoYXsX',
#                            7: [   9066,
#                                   datetime.datetime(2001, 8, 14, 14, 47, 56)]}},
#         'myself': {   7: 5254,
#                       8: [   6535484093.0,
#                              643307346409.62,
#                              'gizhiLtlgMvmoESFhRsI'],
#                       9: {   7: 'kxGcPlhfcLUeeKQRlWzE',
#                              8: 535,
#                              9: ['lgOaoThfUQmBYkrrkUWt', 5662]}},
#         'price': {   6: 1008,
#                      7: [   'SDFXWNtTOctDotMfrqHZ',
#                             Decimal('23943059812904.0'),
#                             'jQEwrdhDgFGkwwzhjoSH'],
#                      8: {   6: 'rjyNmUoUoTNIFySdTwic',
#                             7: 'MUEkjAJnkNkUwdDYTCGq',
#                             8: [   datetime.datetime(1995, 10, 3, 8, 39, 29),
#                                    datetime.datetime(1979, 11, 27, 0, 24, 5)]}},
#         'side': {   1: 'bryandunn@yahoo.com',
#                     2: [   7030,
#                            datetime.datetime(2013, 4, 21, 2, 5, 38),
#                            'IGIBXnzEyEZBWrbegZUt'],
#                     3: {   1: 'JqYrSgasQGFuXtBwWgFQ',
#                            2: -8249066077.6701,
#                            3: [   'RKAyokzwBplgNFTOMDYo',
#                                   'qORFDQzSVkVBwsXJeUSP']}},
#         'television': {   0: Decimal('-2.5500266309'),
#                           1: [   'https://rodriguez.info/explore/about.htm',
#                                  'YhSYeBHPunTuDdAWiDAE',
#                                  Decimal('15154943.5')],
#                           2: {   0: 'wXaOQfsnYaeeCWrCuhAJ',
#                                  1: 7110,
#                                  2: [   'kpQFfMRfhGJzQFaQiozj',
#                                         'RzBaTHqXkAsRwADUUhUO']}},
#         'think': {   4: 3597,
#                      5: [   'AtRUuRudIoZfCKWYcIFe',
#                             'VBeJVbuAaHGRyIKCRerZ',
#                             'https://www.salazar-johnson.info/app/tags/tags/post.php'],
#                      6: {   4: datetime.datetime(1996, 10, 1, 0, 16, 44),
#                             5: 'BfrpQVxrEytoGTMztyEE',
#                             6: [   datetime.datetime(2015, 6, 17, 22, 42, 27),
#                                    4760]}}})

fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# 97174717.1816

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime.datetime(1976, 5, 15, 15, 22, 34), 'ouHkKkLCGLQHvuEobxTb', 9609, 774705322192714.0, 'https://www.perez-hale.org/list/posts/category.php', 1357, datetime.datetime(1975, 1, 23, 14, 48, 47), 3634, 'RhEpRYqQSiQLdIsDypMi', -750728.9, datetime.datetime(1978, 2, 22, 11, 27, 51), 'VbZnLqhCKgCoUerIhEWx', datetime.datetime(1996, 1, 6, 4, 59, 33)}

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