faker.providers.pythonΒΆ

fake.pybool()
# True

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'PM': 'BshMhnCysDLvECenePtS',
#     'capital': 'vrandall@jones.com',
#     'discuss': datetime.datetime(1981, 9, 13, 16, 7, 3),
#     'grow': 'matthew04@gmail.com',
#     'industry': -6583.37885,
#     'movie': Decimal('-85622921595.646'),
#     'politics': 8627.967,
#     'power': datetime.datetime(1982, 5, 21, 10, 1, 39),
#     'scientist': datetime.datetime(1974, 12, 1, 15, 3, 45),
#     'third': 'tznezlMNgvipDARBwkaF',
#     'win': Decimal('5025.3745')}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'OgcpWsSjdoqrTiQnayhr',
#     Decimal('99146187.3693'),
#     'ovlgdoAovSwjaUBBSMCo',
#     'LbZMdCCoYqhICkyzpcHJ',
#     'bcqeCBOAqYcWmJmzdENT',
#     2310,
#     'abender@gmail.com']

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'WOXdaQgdCQyFTVvvaxKN',
#     datetime.datetime(2007, 6, 21, 5, 35, 10),
#     3388,
#     datetime.datetime(2017, 12, 16, 6, 50, 50),
#     'kdjqYucvkBsrhjcKRcfg',
#     2384]

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'kpcbGFeZLvHVocBzVTAm', datetime.datetime(2004, 2, 10, 9, 33, 38), 1480, 'walkerdennis@stephenson.info', 'thgpuzGKqIBFpsPCdrgL', 98968.977566962, 89.53598}

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

fake.pystruct(count=10, *value_types)
# (   [   'svylROZXlxsLhBZizEll',
#         'http://butler.com/',
#         'BTVUbEeHHANMfqIPjRUU',
#         datetime.datetime(1984, 12, 4, 16, 26, 2),
#         'OBiXXfhYGPYQfhOHPLIg',
#         'https://www.walters.com/home/',
#         Decimal('-29035131948102.0'),
#         'iiyiAQJjkJOfETyWAxHy',
#         'EnJrDgpKsEwbGwBKYntC',
#         'xumPKfmxdLBjfZFEASpx'],
#     {   'Democrat': 956.349267,
#         'boy': 'WVCpSLYzgeEpqyGYlfAU',
#         'election': Decimal('-5434.1835208886'),
#         'entire': 'cScIWvxzxMfVXAarOJdZ',
#         'place': 6032,
#         'property': 'https://rodgers.com/category/login.htm',
#         'right': 'neGRrAyaEgXvFBrxiHCM',
#         'special': 'sHNlrWpqzVqIWwuStjDS',
#         'those': datetime.datetime(1997, 3, 2, 15, 32, 44),
#         'will': 3427},
#     {   'arm': {   7: -2263661.8936087,
#                    8: [   Decimal('-70766448.162443'),
#                           'hoKBAJqPoRkzmkfQAYzn',
#                           Decimal('-297739.3468')],
#                    9: {   7: datetime.datetime(1975, 12, 6, 7, 27, 43),
#                           8: Decimal('-727.974633588'),
#                           9: [-8.705098, 4909]}},
#         'camera': {   9: datetime.datetime(1984, 1, 13, 22, 50, 43),
#                       10: [   datetime.datetime(1985, 10, 3, 7, 17, 56),
#                               'DRCyTCbqHPSJCDVtIGPT',
#                               'http://www.perry.org/blog/home/'],
#                       11: {   9: Decimal('2.35'),
#                               10: 'allen47@hotmail.com',
#                               11: [   'qfoster@hotmail.com',
#                                       'HqNLyEAoomNjrehVeVyj']}},
#         'community': {   5: datetime.datetime(1972, 5, 12, 6, 51, 7),
#                          6: [   'http://hutchinson.info/',
#                                 -543816.2755,
#                                 'https://www.davis-jimenez.com/wp-content/tag/about.php'],
#                          7: {   5: 'AtzgiLScKYWPIGnXhQNP',
#                                 6: 1196,
#                                 7: [3588, 'gImJmQicGKoAhLHgjxdh']}},
#         'employee': {   4: 'NtOrSoSsOvFqndMaEzUn',
#                         5: [   'oOqzMfqWgZqpNuMAquSj',
#                                'iUwRrEBZSwbJxkrfYOyt',
#                                655854.532538239],
#                         6: {   4: 4587,
#                                5: 8969,
#                                6: [Decimal('57433040.662'), 8.9]}},
#         'game': {   8: 6815,
#                     9: [   'http://www.armstrong-mckee.net/',
#                            'RaQArRCMVHeNTAnTeDig',
#                            Decimal('-5462809.8')],
#                     10: {   8: 'HmemwpfedpHgfVYEbsem',
#                             9: 423,
#                             10: [   datetime.datetime(1971, 12, 14, 7, 51, 39),
#                                     'https://welch-walker.com/']}},
#         'girl': {   3: 924.321963638282,
#                     4: [   'uvZpelfzqhrnrDsAbJnP',
#                            'RCiFJMevvGUUBVvpngbu',
#                            datetime.datetime(2017, 7, 17, 19, 3, 25)],
#                     5: {   3: 'UNnFaGfAvCjIMyaTwqTZ',
#                            4: 'VrroYYlhiLsQmyUvHglG',
#                            5: [   -465261.30115229,
#                                   Decimal('-683519741109388.0')]}},
#         'outside': {   0: datetime.datetime(2010, 7, 16, 8, 58, 24),
#                        1: [   116780216865.1,
#                               'https://richardson.biz/tags/list/wp-content/privacy/',
#                               -12100.7571948],
#                        2: {   0: 507436872043864.0,
#                               1: datetime.datetime(1991, 9, 27, 12, 54, 14),
#                               2: [   873975967.94143,
#                                      'https://murray-riley.biz/index.html']}},
#         'people': {   2: 'kywrqGvTZrDkFnjVvdcB',
#                       3: [   Decimal('-121950.5'),
#                              7345,
#                              'https://williams.com/register.htm'],
#                       4: {   2: 'sarah64@morse-smith.com',
#                              3: 'ePWFGJwdqqgJlvJkvNrf',
#                              4: [34661498808581.9, 'rdFwyHLnpkMgsLRqUxsx']}},
#         'specific': {   6: 'http://www.davis.com/tags/explore/app/category/',
#                         7: [   -442028622987307.0,
#                                'ZOETUGFPFnlDEQPRKxvW',
#                                'https://smith.biz/home.php'],
#                         8: {   6: 5591,
#                                7: -71126522169.1416,
#                                8: [7319, 'hunter81@woodward.com']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   Decimal('-73.4651'),
#     Decimal('57128346139.357'),
#     9868,
#     datetime.datetime(1976, 12, 22, 7, 55, 59),
#     'http://www.phelps.net/search/',
#     'tammycharles@harrell.com',
#     5617,
#     'iukJQJwdHLyGdhmAJvmE',
#     -10.88316,
#     5111,
#     'http://www.clark.com/register.htm',
#     -800195.0,
#     -258.9690237)