faker.providers.pythonΒΆ

fake.pybool()
# False

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'PM': 'vFTIFauwhduzWtMaxPgC',
#     'all': datetime.datetime(1973, 9, 11, 20, 22, 4),
#     'general': 'lBperRbUhRNUcukqbRiJ',
#     'go': 'GBkIKCGfmKfMFPJqCQyZ',
#     'hit': 'uaxOFGtaWUWcqvehvXYc',
#     'our': datetime.datetime(1970, 6, 16, 8, 48, 47),
#     'president': -6210542901515.5,
#     'several': 'cLYPqBTWRJqPdRgSgUmu',
#     'staff': 'https://www.love-shannon.com/wp-content/main/faq/',
#     'team': 'FtzbbpDzcGLpOhKtFmCF'}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'uozMWhImZzlOMUMNuuCN',
#     67846193614.27,
#     1359,
#     'SHTZlPfLMpcBQTNVEVmT',
#     -42652000573755.2,
#     'http://www.barnett.com/',
#     'MzpWmuBRAVjVENAsnoOY',
#     2737,
#     'tammyadams@yahoo.com',
#     9885,
#     'oCQjHQFfdAoqpNEsUnRN']

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'SGskQecjVsbKOPuNQVHR',
#     'IqlelJghMsTnlXABBBpk',
#     'WdDescfPjWFzjfwuxPLg',
#     'NqICtyaSiZOTnokYFBKh',
#     1.775682388611,
#     'PJVaRnMawvwMUQUngzWU',
#     'bhampton@hotmail.com',
#     8.57509959156178,
#     'AflvpHKSvAnmAjbvdcPk',
#     'vqjgjoDtRxwjaULNdxqO']

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'KXdGrZoaFrBaMavmALVP', 'https://mathews.biz/wp-content/posts/posts/faq.jsp', 'yKdJNYverIcBhgHlolQE', 3779, 1858, 'PGWuFfaYSuKnzQWPUIgv', 'http://bailey.com/main/', 'EFFbMOVlsfsudrtOngky', 'oRwLtfkluiZZQGdoOksS'}

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

fake.pystr_format(string_format="?#-###{{random_int}}{{random_letter}}", letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
# 'X7-8616790N'

fake.pystruct(count=10, *value_types)
# (   [   datetime.datetime(1990, 8, 12, 3, 57, 57),
#         datetime.datetime(1981, 3, 17, 0, 22, 9),
#         'tamara60@yahoo.com',
#         1564,
#         Decimal('-5104570445.898'),
#         'edwardsmichele@brown.com',
#         Decimal('-745635281.543'),
#         'IkfDzTgkyUrSFNgcXzSJ',
#         'kennethgriffith@collins-morgan.com',
#         22610683.3801],
#     {   'down': 1584,
#         'hand': 'https://www.maxwell.net/',
#         'his': 'QpPwMckflTnBRAXniYtB',
#         'laugh': 'bsanders@williams.com',
#         'much': 'qzzsUjIKnLIdeogKRPdp',
#         'same': 8046,
#         'sea': Decimal('-18608944349.672'),
#         'sister': 'KvYyXRjNFxfnacKRSkcZ',
#         'successful': 'agonzales@branch.info',
#         'yard': 'hGkZxsvRilzaSqbpodwS'},
#     {   'concern': {   9: 32.23033071,
#                        10: [   8325,
#                                'krdlfaQGxYKFaYpqBTQj',
#                                datetime.datetime(1979, 11, 3, 5, 34, 12)],
#                        11: {   9: 'tlLZwTgnMfUZpInEVJnL',
#                                10: datetime.datetime(2002, 3, 24, 7, 50, 21),
#                                11: ['VroshxtRPmGqDjxIsHRS', 3874]}},
#         'deal': {   7: 'corygarcia@robinson.com',
#                     8: [   'https://hamilton.biz/search/home.html',
#                            'dHiJFiEHQZGyQNFfsdlP',
#                            'MuVYqAbtGpQATZtccOoe'],
#                     9: {   7: 853,
#                            8: datetime.datetime(1989, 11, 30, 5, 43, 29),
#                            9: [   datetime.datetime(1977, 5, 6, 18, 47, 51),
#                                   datetime.datetime(2003, 9, 10, 18, 28, 59)]}},
#         'evening': {   8: datetime.datetime(1994, 3, 31, 4, 20, 10),
#                        9: [   Decimal('196528926219150.0'),
#                               'bdEosRmNhhhGstVCabMp',
#                               'LvgWEkMFQLBWRlPuwSJS'],
#                        10: {   8: datetime.datetime(2015, 8, 4, 10, 47, 21),
#                                9: 729.182443,
#                                10: [   'hQYMuUuRDDzkcinjPbAi',
#                                        'KFFmqtzrwVJKmdemqdkL']}},
#         'figure': {   3: datetime.datetime(2001, 1, 30, 11, 44, 48),
#                       4: [   'GahtArqOqdcRxwdZrTUm',
#                              'https://www.wagner-chang.info/index/',
#                              datetime.datetime(1981, 5, 21, 2, 56, 28)],
#                       5: {   3: datetime.datetime(1972, 10, 22, 5, 29, 23),
#                              4: 24054467557063.0,
#                              5: [   'vrZuRiSqILbcIMvSEoyL',
#                                     'sTJzPYpKTlJXxKjcCrrN']}},
#         'garden': {   1: 'bQcgllvxsmdzzIcOfZqD',
#                       2: [   'NeBXNdhQOHLPQBISJfNQ',
#                              'mgGobrVEHxgwGyBPcbFW',
#                              'cKTaJzhPrJthviVxwfyy'],
#                       3: {   1: 'dMtcUADUUXLAbrESOZlU',
#                              2: 6231,
#                              3: [   'laurie51@kim-frank.net',
#                                     'https://morse-copeland.com/list/category/']}},
#         'join': {   4: 'hoganmelinda@salas.com',
#                     5: [   8827,
#                            datetime.datetime(1998, 4, 15, 7, 48, 7),
#                            datetime.datetime(1996, 10, 17, 12, 6, 26)],
#                     6: {   4: 'david92@hotmail.com',
#                            5: 'yvOMeAOFeVIcwKxavdIW',
#                            6: [2953, 'qilIpCYpnHuHTXZwslcm']}},
#         'medical': {   2: 'BzYolmFCJqcsibgtfFUy',
#                        3: [   'BhYYTnCmMeQSascTcJzN',
#                               Decimal('89422607424.1489'),
#                               'TwZkRcYHkvYkSlFCAzuk'],
#                        4: {   2: 'mooreeric@robertson.com',
#                               3: 'franklinchris@yahoo.com',
#                               4: [   'DlGwwRTOsElVXqRBqKvd',
#                                      'http://chapman.info/category/']}},
#         'show': {   6: 'odGuJRSSeXAAYGyaVedr',
#                     7: [   'http://miller-calhoun.net/author.php',
#                            3431,
#                            datetime.datetime(2010, 1, 28, 2, 45, 45)],
#                     8: {   6: Decimal('-311227.9'),
#                            7: datetime.datetime(2015, 12, 28, 14, 23, 8),
#                            8: [7199, Decimal('6412090088855.0')]}},
#         'worker': {   5: 'vALtFUvjFmOzkXzPOBiP',
#                       6: [   datetime.datetime(1978, 5, 23, 21, 13, 18),
#                              'EQcGnnjlemtFJVfswpzc',
#                              50.4],
#                       7: {   5: datetime.datetime(1976, 9, 28, 15, 3, 55),
#                              6: 'joneschristina@smith.com',
#                              7: [   datetime.datetime(1983, 3, 5, 22, 2, 43),
#                                     datetime.datetime(1989, 7, 12, 20, 36, 33)]}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   Decimal('47360.825939641'),
#     'vDBhGcAVkdkXhttkOfSn',
#     'lyTFfAtMbWlLoUrPDgCo',
#     2215,
#     'LdpTREeYwxDTeNmJfiuw',
#     Decimal('-40.87189473161'),
#     Decimal('-330523940518708.0'),
#     6800,
#     'VDzsslYRfRmTDXoIormK',
#     'bellis@yahoo.com',
#     'lbiOhjQjTPCjuOQARLKo',
#     Decimal('461021.984'),
#     datetime.datetime(1995, 9, 9, 5, 58, 48))