faker.providers.pythonΒΆ

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# {'hijbHUgTZeeWWBxlcNdp', 'kristinbarrera@garcia.biz', 'KZqoqbRtEaiHrDevorgW', 'EGIxtzuRbSpvYXfUPWRD', 903, Decimal('-90037381025.48'), datetime.datetime(1976, 5, 28, 8, 58, 56), 'EBbtqdUDaQRyzOzWjRsV', datetime.datetime(1998, 6, 10, 17, 20, 8), 'OiUTGTSSjNcPdSqaZUml', 96284.0, 1311}

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

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'XBsIHgFTICKNTVgZsCoZ',
#     'hbABwFrJUQWkwNdKGuDo',
#     'xwSPUzBwIdfXvWOGavUh',
#     'ZPsMtJhfTzAzuBvkVXlf',
#     'jared36@gmail.com',
#     'YXpSHonWgeokHRMcYnGP',
#     'http://www.rush.com/search/category/homepage/',
#     Decimal('-79643231.638'),
#     'http://rowe.com/list/app/explore/register/',
#     'vcWsExnwhVGRanMPywTx')

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime.datetime(1998, 1, 29, 3, 45, 37), -78707999.231, 9667, Decimal('292023033.474768'), Decimal('5019941798.2717'), 'DwfGByTYTfYgvPBEziqh', 183, 'glpwkfPuGQZgBbuzdcIz', 5625, Decimal('300253133.6993'), Decimal('-8625995564539.3')}

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'by': 'yYGGDcuFiVOelnemlFWJ',
#     'fail': 7470,
#     'officer': 4720,
#     'prevent': 'xsandoval@jennings.biz',
#     'road': datetime.datetime(2012, 10, 3, 14, 24, 8),
#     'unit': 'victoriabenson@hotmail.com'}

fake.pyint()
# 1283

fake.pystruct(count=10, *value_types)
# (   [   datetime.datetime(1987, 1, 27, 0, 35, 41),
#         6497,
#         'yfsUMbxHcnRYhArpSScD',
#         'slebaKEwAmYGigOqNDnJ',
#         'http://lynch.net/category/category/wp-content/login/',
#         datetime.datetime(2004, 5, 31, 6, 55, 36),
#         'qicCIyFpPPPcVDEuKJTC',
#         1719,
#         'sNfCzfwPAkAJHvszhPxY',
#         datetime.datetime(1974, 5, 2, 20, 47, 58)],
#     {   'deal': -654.255616,
#         'discover': datetime.datetime(2007, 6, 13, 12, 28, 49),
#         'every': 'ImsXinlgtLeDqEsFAwuf',
#         'exist': 8092,
#         'likely': 'https://steele-davis.org/category/wp-content/posts/privacy.php',
#         'party': -39565.560483709,
#         'thus': Decimal('-5998.18112175174'),
#         'treatment': 1334,
#         'very': 7948,
#         'yard': 'gVLQmPGVBCghhRuLuLjh'},
#     {   'black': {   7: 'qriMqZAKJVlNwhtcyMPF',
#                      8: [   1801,
#                             'hfaYbTQJKrYALJpBemNU',
#                             datetime.datetime(1998, 3, 11, 12, 27, 58)],
#                      9: {   7: 'auMzKYwRUnTSmZAiRYmm',
#                             8: 'LmxdMUKwVLxkECepvBVH',
#                             9: [Decimal('-3031.136377212'), 3.12263603470146]}},
#         'boy': {   9: 38188681596.79,
#                    10: ['EesSjSBgSgtTjSoYplJF', 6556, 'kroCweAAXgDimZmuJtCX'],
#                    11: {   9: 4536,
#                            10: -28.877158,
#                            11: [Decimal('4.93'), 'BvDQjKhDfIhRiQzBYPAl']}},
#         'class': {   8: 8542,
#                      9: [   'RlHXdUJoieErwelsCOZd',
#                             'JjetRkyawFyJIRCISNGE',
#                             'rBUKaLMFTQznfjyXJOXU'],
#                      10: {   8: -225142106400616.0,
#                              9: Decimal('-67564037622.1027'),
#                              10: [   'https://cruz-fowler.org/',
#                                      'http://www.byrd.com/post/']}},
#         'guy': {   1: 'https://www.hughes-compton.com/terms.html',
#                    2: ['ingramcassidy@hamilton.com', 57.9354, 6027.9495658],
#                    3: {   1: datetime.datetime(1990, 5, 21, 5, 1, 39),
#                           2: datetime.datetime(2008, 7, 9, 1, 6, 21),
#                           3: [   datetime.datetime(1979, 8, 1, 0, 52, 48),
#                                  'zJiucorGmWSiUZKVQMUu']}},
#         'head': {   2: 'https://www.garcia-bennett.com/about/',
#                     3: [34238264927976.0, 'fjTNuyTwydsHvXQVMLNT', 7924],
#                     4: {   2: 'gGtTMkMKoHmNfJtFxPfZ',
#                            3: 8707,
#                            4: ['andersonashley@hotmail.com', -5014308.9]}},
#         'measure': {   6: 'IASInCsgUcqRTbpKNYhT',
#                        7: [   'https://www.barnes.com/post/',
#                               'LPCvIihoyuLCpOmUTGIT',
#                               datetime.datetime(1996, 12, 11, 1, 30, 10)],
#                        8: {   6: datetime.datetime(2009, 12, 18, 16, 26, 27),
#                               7: 'hqyWRIVMxbnuTYNPvPIj',
#                               8: [   'ZzvmJcbFyQgKZaKwqMQu',
#                                      Decimal('-53.4394690668193')]}},
#         'ok': {   5: 1260,
#                   6: [   'LDrvmoSYpjQQDmvBufWz',
#                          'http://miller-dennis.com/',
#                          Decimal('16.98')],
#                   7: {   5: 'etGuJZrdtpzHaswIFjQN',
#                          6: 'amkVRIrXMgbSLYGfowPi',
#                          7: [   'EOvYQRFAcjUXacrgOCLv',
#                                 'shannon22@wyatt-evans.com']}},
#         'people': {   3: 9749,
#                       4: [   'dnmJfvPCaWmErGKSgYsJ',
#                              datetime.datetime(1981, 2, 15, 4, 0, 18),
#                              datetime.datetime(2008, 11, 6, 1, 18, 24)],
#                       5: {   3: 'smithbrittany@simon.info',
#                              4: datetime.datetime(1984, 9, 2, 11, 46, 57),
#                              5: [   datetime.datetime(1990, 10, 15, 20, 15, 54),
#                                     6264]}},
#         'spend': {   0: 'https://www.smith.info/author/',
#                      1: [   'charles35@hotmail.com',
#                             9384,
#                             Decimal('-717174942.28')],
#                      2: {   0: datetime.datetime(1971, 5, 14, 2, 28, 44),
#                             1: 'agonzales@gmail.com',
#                             2: [1228, 1966]}},
#         'treatment': {   4: 'pYIAigOnGQYIqSckYyxA',
#                          5: [   datetime.datetime(1974, 11, 8, 7, 46, 44),
#                                 3342,
#                                 'EYLKACnpbqonLMKcPOhf'],
#                          6: {   4: 'ZKIbqmaVYBwCxFeFfORj',
#                                 5: 'ZGQKCQwUjoypNqHEAHla',
#                                 6: [   datetime.datetime(1996, 7, 2, 17, 51, 7),
#                                        -560446017394994.0]}}})

fake.pybool()
# False

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

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'CevduNNPMGGXqthNlfZK',
#     'MNNsfLlACMUUNEfQdyZr',
#     datetime.datetime(1989, 12, 18, 11, 4, 36),
#     datetime.datetime(1982, 8, 20, 17, 3, 7),
#     'KIzyjMSCDeTYGjiHiUCQ',
#     'uwilson@smith-booth.com',
#     'adBIHrwMNJJASwyaqkYC',
#     'OjxnuxwLACGIFSODUOaq',
#     'qubdwaMAazrWZNEyfQSo',
#     'https://www.jones.com/tags/index.html',
#     5390,
#     'https://knight.com/wp-content/posts/index.html',
#     'uUmQYWtlCgLFxmadLoYe']

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