faker.providers.pythonΒΆ

fake.pybool()
# False

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'community': 'kUJiGKcFkqKQedadrSXZ',
#     'deep': 'https://cordova-olson.net/blog/explore/main/index/',
#     'pass': 6022,
#     'president': -142.228914769,
#     'seek': 'escott@yahoo.com',
#     'somebody': 'zcampbell@hernandez.com',
#     'your': Decimal('263059739210.0')}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'michael31@hotmail.com',
#     6195,
#     4820,
#     1652,
#     'ygdkKqvNxDLkSVpJMQos',
#     Decimal('-211636956122.9'),
#     'DQlBOxOlRkAKlQLNexjw',
#     Decimal('2817048379.796'),
#     'KmlVDBOMKWlrhVahUpGg',
#     6159]

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'udRqydlMFjYoiEJlZYGr',
#     Decimal('738.324787134'),
#     806,
#     'OIwOaZJuhqQAyjLykhZX',
#     datetime.datetime(2019, 8, 31, 19, 15, 36),
#     'AblfCLMhqXSJtshyurJt',
#     'sSzPHYsBEieikBUwEUXl',
#     'QzbWEMcoMvKxDkMQYDJB',
#     datetime.datetime(2014, 9, 8, 3, 45, 32),
#     3600526490891.0,
#     -896075389.66056,
#     -665228756.122,
#     'ebapeNYAUTiKNnVeUhpO']

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {-77326942.743401, 'lYEhxLzqtvGyTCoBokjS', 'http://www.rhodes.com/author/', 'http://www.ramirez.com/', 'UDgjTnAEPIyHScMJDUZK', 'PYPkicDIgKOKWkiSuvLG', 1654, 1847, -513320.955116, 'rGZXuQjyvqsIUasbaWQJ', -68.782758451, 'WlyTHOWrBRRfEtHRGlfW', 'ugregory@taylor.org'}

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

fake.pystr_format(string_format="?#-###{{random_int}}{{random_letter}}", letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
# 'q7-1844169g'

fake.pystruct(count=10, *value_types)
# (   [   datetime.datetime(1979, 4, 7, 3, 39, 35),
#         2862142.0,
#         4815,
#         4636,
#         'DJsTMvVKEyHHnUsKplbW',
#         Decimal('-4715940216723.1'),
#         59213430.5381336,
#         4385,
#         datetime.datetime(1999, 10, 17, 13, 4, 11),
#         datetime.datetime(1992, 12, 14, 0, 37, 26)],
#     {   'assume': 'XnUykapOewTtBmXxvuPa',
#         'at': -4.797,
#         'else': 9760,
#         'for': 3570,
#         'include': -9245.93922,
#         'land': 'QWOlVzLkXKOuTlZePkVN',
#         'on': 'http://www.murphy.org/privacy/',
#         'product': 'HlRAMbwwzawGailUcSfn',
#         'toward': 'https://www.oliver.com/',
#         'travel': 'fsmith@hotmail.com'},
#     {   'capital': {   4: datetime.datetime(1973, 9, 27, 1, 53, 54),
#                        5: [   'CCgbBGqBiEJUVoJJhQso',
#                               -46198.7441772906,
#                               'qEkwTbjtXLWlBEXkHKkV'],
#                        6: {   4: 9375,
#                               5: 'nuKVSkKiBafQFtoKgwQg',
#                               6: [4263, 'qpYEECvcblZOHARVxKVl']}},
#         'car': {   7: 'https://powers-cruz.com/login.html',
#                    8: [   -65128.69,
#                           'https://www.martinez-shaw.com/search/',
#                           datetime.datetime(2018, 12, 6, 22, 34, 19)],
#                    9: {   7: 'PWbNVzSfBsLKbDmidnnA',
#                           8: 'https://www.murray.com/main/privacy/',
#                           9: ['HYrVajlbfNWgKRoMvFjx', 7359]}},
#         'catch': {   0: 'http://nelson-anderson.net/list/tag/posts/faq/',
#                      1: ['kqwCLZvmBTTGmsKzVyMS', 1775, 'MAywGTEBDdXrtRucftSt'],
#                      2: {   0: 'anVOSSSsleZreCrOcIud',
#                             1: Decimal('655653.0'),
#                             2: [   'http://www.west.com/blog/main/blog/faq.asp',
#                                    9182]}},
#         'culture': {   6: 'ydHgDUizgklQLhyeSzVA',
#                        7: [   Decimal('46496473.7'),
#                               datetime.datetime(2002, 10, 8, 13, 51, 12),
#                               'xlQliyFMANTkltnsRCUw'],
#                        8: {   6: 'shepardnicholas@gordon.com',
#                               7: Decimal('96626.117174681'),
#                               8: [-7435137397482.6, 'vmichael@yahoo.com']}},
#         'dark': {   9: datetime.datetime(1995, 12, 11, 2, 41, 34),
#                     10: [   'uykIAdkrDhVqXdMCErOb',
#                             'VBCCgiaziFaHSGkgRgmp',
#                             'ROefxJmOiKgpOpUfUxyN'],
#                     11: {   9: 'kLHbQLSLftFOSjxSggxZ',
#                             10: 'wjGFNYeTvMKGWfdynOlu',
#                             11: [   'https://www.gallagher.com/index/',
#                                     'YmUTjVxdorpvKkxpnZda']}},
#         'friend': {   3: 'http://www.williams-callahan.com/faq.html',
#                       4: [   datetime.datetime(1997, 3, 15, 8, 5, 39),
#                              'sMGqAcEpFSnrkaXSLkxw',
#                              'parkermelissa@gmail.com'],
#                       5: {   3: 'https://wright.net/',
#                              4: 'WaoiFpIzBqNFWbuPbIQS',
#                              5: [   'PqhXPUVfvUXYNlfbgHsu',
#                                     'lfunOqaQNbqyzvtAzqnG']}},
#         'news': {   5: 9276,
#                     6: [   853512937440.0,
#                            datetime.datetime(1979, 7, 12, 2, 31, 18),
#                            'https://perez-cuevas.biz/'],
#                     7: {   5: -56776404418.4,
#                            6: Decimal('-61679.6355808'),
#                            7: [   'hSjBvPtcEXZtyvfcxjjq',
#                                   'zRbNZbzPEoIrqTSZRasO']}},
#         'none': {   8: 'kellyanderson@yahoo.com',
#                     9: [   'BIJufPRagAadGmWLrGCA',
#                            'nmorales@watson.biz',
#                            datetime.datetime(1981, 6, 19, 19, 57, 27)],
#                     10: {   8: 'tracy63@gmail.com',
#                             9: datetime.datetime(1999, 4, 10, 15, 8, 2),
#                             10: [   'http://www.johnson-williams.biz/',
#                                     Decimal('700407610057989.0')]}},
#         'start': {   1: Decimal('-62.373492043'),
#                      2: [   Decimal('28682364985905.7'),
#                             'http://www.hampton.org/',
#                             'hshepherd@gmail.com'],
#                      3: {   1: 'lReSYaMnndLNYmwffrhE',
#                             2: datetime.datetime(1973, 9, 13, 14, 54, 14),
#                             3: [-43102933.3634, 6806]}},
#         'think': {   2: Decimal('7.44'),
#                      3: [   'RReQZHzVLXHmWDVzAQgp',
#                             datetime.datetime(2008, 10, 7, 1, 51, 41),
#                             'nKJswtysZnckTsGMlZMX'],
#                      4: {   2: 1759,
#                             3: 'kmacdonald@gmail.com',
#                             4: [   'CnoefSgNXfSnQJiKShXN',
#                                    'qVqBLrNNQxgeuKHNsBxe']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'sramirez@schneider.com',
#     -964408.8,
#     'vfgLvQrfnrUeCWPKvLjR',
#     Decimal('-461.515857'),
#     -4682.411409826,
#     -222964088232.0,
#     'zMMIvrUenbCEQaoMqyFv')