faker.providers.pythonΒΆ

fake.pybool()
# True

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'check': 3737,
#     'deal': 'xiCBsrPPXHSrLiFZwnsv',
#     'determine': 'KUwmFauSiuUlaZiSoAOL',
#     'imagine': Decimal('-57467176.32'),
#     'it': 'https://www.flores.com/register/',
#     'matter': 700,
#     'opportunity': 'https://terry.net/login/',
#     'piece': 'http://johnson-lambert.com/login.php',
#     'stay': 'TIHgHLNeLunfKOYykMmG',
#     'style': Decimal('-917666877.95466'),
#     'sure': 233762669.4568}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   Decimal('4249039131.0'),
#     5564,
#     297,
#     'stevengregory@kelley.com',
#     'HunrfAhaDpjkaoMLuWgp',
#     'oAulZyAWncjhDqiGovgA',
#     Decimal('-7232028169.51'),
#     'https://duncan.com/list/search/',
#     datetime.datetime(2017, 4, 8, 4, 51, 4),
#     'NXgdOXYZXUDnCgzBHQdV',
#     -90086449857850.2,
#     'grCFKdEZThDlqMsFmBGT']

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   -1779703.47557221,
#     'http://www.hendricks.biz/categories/wp-content/post.php',
#     'EDQiKcgxfDuAUowGhOvt',
#     Decimal('-11536153188176.6'),
#     'http://www.johnson.com/',
#     'joshuasmith@james.biz',
#     'davidrobinson@hotmail.com',
#     datetime.datetime(1999, 10, 19, 1, 46, 29),
#     'FbMkaKdITJtsJHJbsaWb',
#     'aFHNKsQQXlLSRGFesdeR',
#     380281.110897]

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {9535, 'vhbRLKSGMNQFkPMUihfv', 'lTgvIqATgSOydBbaeksM', 'collinsjohn@jacobson-jones.info', -66850061.9615, 467, 'http://www.garcia.com/main.html', 'uMgxiPcmQtyranjRkgcQ', -8.6872328, 'http://simmons.com/login.htm'}

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

fake.pystruct(count=10, *value_types)
# (   [   datetime.datetime(2003, 10, 24, 19, 24, 6),
#         'HZTyNXFIsImDhajdaPjx',
#         45080.98,
#         2544,
#         'mrRVahNSozXZpKSsWkMe',
#         8819,
#         2.621891494559,
#         1141,
#         'http://cole.net/',
#         'http://jacobs.com/login.htm'],
#     {   'action': 7269,
#         'fact': 'dzmGcvWxrigMQRVTheaL',
#         'four': Decimal('6478482872.1'),
#         'high': -3672.2052,
#         'impact': 'https://cook-cowan.biz/explore/terms/',
#         'oil': 'IKaqEvHOVDbuikAnIFhT',
#         'source': 'glEHKyxjiODdvqtjZwui',
#         'stuff': 'BiZdpbuJYpskBcNLaICS',
#         'think': 7402,
#         'well': -70019898516010.0},
#     {   'certain': {   7: 'vfWxukLicjSnBWwyOgcy',
#                        8: [   Decimal('-55723.7314997913'),
#                               'FcsNPLGxNEGgIULfWsBK',
#                               'wvwgWsSfAXguVCCOrXAG'],
#                        9: {   7: 'ZHqhzFxbglyDxkjqAdjs',
#                               8: 7159,
#                               9: [   'trDizJIdlDJTwpYtbiaU',
#                                      'dFDGvOwsCillhPboyjzf']}},
#         'economic': {   9: 5990,
#                         10: [   datetime.datetime(1983, 8, 29, 1, 20, 14),
#                                 datetime.datetime(1996, 9, 12, 18, 35, 54),
#                                 -63.0],
#                         11: {   9: 'qkPKtLrrGExyNKXXQzbf',
#                                 10: 'nPREQHcTJKNajCXVJMep',
#                                 11: [9955, 4173]}},
#         'individual': {   1: datetime.datetime(1994, 10, 27, 9, 57, 2),
#                           2: [   'uKjIMXZVDnelRbwYVOIA',
#                                  'GiRCzboHqRIbIIguaGlv',
#                                  'https://www.thompson.com/explore/tag/posts/register/'],
#                           3: {   1: 'http://aguilar.net/categories/posts/privacy.html',
#                                  2: datetime.datetime(1979, 6, 20, 18, 21, 7),
#                                  3: [   'bPeLaDRUNMBcBxiiAwAr',
#                                         'https://www.simmons-bowers.info/']}},
#         'movie': {   2: 'jeffrey42@berry.org',
#                      3: [   datetime.datetime(1998, 2, 2, 0, 6, 18),
#                             'peter41@frederick.org',
#                             -79259678781751.8],
#                      4: {   2: 'denisejackson@sanders.com',
#                             3: 'HnYVmyOhfvuLtVASpOMx',
#                             4: ['https://www.sullivan.com/privacy.php', 4252]}},
#         'realize': {   4: 'https://www.burch-santos.com/post.html',
#                        5: [   'rdavis@yahoo.com',
#                               'vjpvtosnFkgwfoHkQAzQ',
#                               'HqIRtGgcFVgoRpQVHYFw'],
#                        6: {   4: 63.39951841,
#                               5: Decimal('-106.89837365'),
#                               6: [   'dirQAOPjtNZOmQMIncHE',
#                                      'PogJmZVImKvGQktOHiYV']}},
#         'record': {   0: 'vsmith@clark.com',
#                       1: [   Decimal('799376.0'),
#                              'http://duffy-bryant.com/main.html',
#                              'rNBXshgNIkgepaYxgizF'],
#                       2: {   0: 'iZChaiRJiuVdJIiNmeec',
#                              1: 'sWUAAGObEXyMLWHdfNQd',
#                              2: [   'https://www.stephenson.biz/main/',
#                                     'XiiyYvckTlhFxqrezCxC']}},
#         'result': {   8: datetime.datetime(1991, 9, 3, 15, 30, 15),
#                       9: ['haoKQWGMYHPbCkLvUmWF', 'fcjdRGOocEXEKOQTVVJO', 5916],
#                       10: {   8: Decimal('-11.94'),
#                               9: -876156227.72,
#                               10: [   'PVNyytKMUixxIJURDIdy',
#                                       'RGMoByHOYUOmIdytARgw']}},
#         'side': {   3: 'YrOYJpsbKgIiYSQZwJGN',
#                     4: ['YfIkIqJqSQGrNVvJtGte', 7786, 'ZWzbjnPynSPLPjXlpOoK'],
#                     5: {   3: datetime.datetime(2010, 12, 12, 14, 10, 7),
#                            4: 4125,
#                            5: ['MqXRUGGVbLaQXZpaeUwQ', 'james72@hotmail.com']}},
#         'value': {   6: datetime.datetime(1992, 9, 7, 2, 35, 17),
#                      7: [   datetime.datetime(1972, 9, 17, 20, 28, 57),
#                             34,
#                             'YyXWtZSwxUsZvFKlmtxL'],
#                      8: {   6: 'http://www.craig.com/',
#                             7: 'joycechristie@gmail.com',
#                             8: [   Decimal('-155572250133247.0'),
#                                    'uqLhjCHFCEgfBZZkhGWB']}},
#         'wall': {   5: 'smithcourtney@hotmail.com',
#                     6: [   'tEjRkkfHpuVotACObJYW',
#                            5.8126,
#                            datetime.datetime(1986, 5, 7, 1, 37, 6)],
#                     7: {   5: 'uXmrlwdSbPcxqOIExTov',
#                            6: 'qXTCfLewyMGkSrPVLgmL',
#                            7: [   'doykDhOhDRZHzDZslvTS',
#                                   datetime.datetime(1994, 4, 14, 10, 44, 21)]}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'uzURNeOuVpFGExqDCyrX',
#     'tqexDwsehyNiwthmXsUz',
#     datetime.datetime(1972, 12, 7, 16, 0, 56),
#     8.977462257,
#     'ePvtuYALijNPGiytXJTN',
#     Decimal('267940829355.19'),
#     'PVWknIhcqCPaiFhgzCEX',
#     -497845325.711,
#     'vgByBFFRIpeuUeuGDHfD',
#     'tGHJvfkpzSoflzFlFaab',
#     7454)