faker.providers.pythonΒΆ

fake.pybool()
# False

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'authority': 6386,
#     'growth': -317676901617340.0,
#     'high': 'https://www.miller.com/wp-content/app/privacy.htm',
#     'his': datetime.datetime(2009, 1, 25, 21, 37, 48),
#     'left': 'IhGkYPuiltSYiKcrbPfp',
#     'reason': 9182,
#     'so': 'erbRnluhEaWPLvCaOJdK'}

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

fake.pyint(min=0, max=9999, step=1)
# 9893

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# {9378, Decimal('590.31295'), datetime.datetime(1996, 2, 17, 13, 21, 20), 'smithdaniel@sims-wilson.com', 'VcgDeBNxzgyRMOoryDcj', 'https://barrett-mendez.com/tag/about.html', Decimal('-98614873644.0'), 'https://www.walsh-brown.org/post/', datetime.datetime(1988, 3, 15, 18, 31, 23), 'washingtonjames@johnson.info', 'bobbydonovan@hill.org'}

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   datetime.datetime(2008, 2, 25, 23, 44, 6),
#     Decimal('-847032.9008'),
#     datetime.datetime(1984, 4, 24, 13, 19, 53),
#     'xqXwkITTQJlxEFrDZnYG',
#     datetime.datetime(2005, 7, 20, 19, 24, 43),
#     datetime.datetime(1984, 5, 7, 13, 0, 31),
#     'http://www.brown-white.net/main/main/',
#     6249,
#     'aZNtrcSLXfCYMJadUxux',
#     'https://bryant-delgado.info/blog/homepage/',
#     'nKEmNsZjytqbmeQUnJCx',
#     8.5126752167188]

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'SDaIsYBDNOamreTUxlQn', 'https://www.russell.org/tags/main/category/home/', 4.32175631, datetime.datetime(1986, 12, 28, 19, 20, 50), 'yhxZVUsjCUwDYGHtriqH', 'CtZtPDwMkXGlsqlViBoC', 5712, -2032.585964984, 'gLtgtVMhczhZfwVOqjcI', 3769, 5836528957202.1, 'ExJzYwKXhrpCHaPJAaJb', 'YalIXCEjQRkfOoxvkMjf'}

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

fake.pystruct(count=10, *value_types)
# (   [   'https://howard.com/',
#         'YXLlNSVouWXpWyUUDqGl',
#         datetime.datetime(1982, 7, 12, 14, 49, 27),
#         datetime.datetime(1994, 12, 16, 16, 28, 57),
#         'http://english.com/post/',
#         'rQesEGloeTTxyuUgApoM',
#         9004,
#         'wcjqITyOKwZjHlwZLQoL',
#         8041,
#         -971804641644133.0],
#     {   'adult': datetime.datetime(1983, 5, 5, 0, 39, 36),
#         'attack': 'UkYbLJPISLlTUvCxITIc',
#         'create': 9868366803.4348,
#         'effect': 756,
#         'event': 'https://www.mckinney-garcia.org/index/',
#         'expect': 'http://www.martin-carter.com/faq.html',
#         'individual': 'wFqvYPRgONfjtAKlpJvJ',
#         'likely': 3465,
#         'threat': 'dqIswGZdhNNZpumuxisD',
#         'wind': 'UlFyBWbDqGqIOVpVcNKq'},
#     {   'audience': {   2: 'MCWyRJuJaySzhKyekJUp',
#                         3: [   'lYoIlLxjHRtRFaiWiUGJ',
#                                'viOQtymWQXoZMLbiQGHF',
#                                'http://stewart-crawford.com/post.php'],
#                         4: {   2: Decimal('-205997412450909.0'),
#                                3: 'OUcyzkTDnGxICuqhAike',
#                                4: [   758019.229283548,
#                                       Decimal('84559867.30909')]}},
#         'discussion': {   1: -136489.98,
#                           2: [   7579,
#                                  'jamiehenry@hansen.org',
#                                  datetime.datetime(1977, 12, 10, 16, 55, 25)],
#                           3: {   1: 7788,
#                                  2: 'BWCMtnOAZpCaZfmCnClo',
#                                  3: [   datetime.datetime(1986, 4, 26, 10, 47, 9),
#                                         8345]}},
#         'film': {   0: datetime.datetime(2016, 11, 4, 9, 39, 53),
#                     1: [   31.2889242202898,
#                            'AZijToomxTKYptaLuWDz',
#                            'http://hughes.com/posts/app/posts/terms/'],
#                     2: {   0: 7772,
#                            1: 6322,
#                            2: [   'http://www.sweeney.com/list/blog/blog/category.php',
#                                   8132]}},
#         'green': {   7: 1183702932.5,
#                      8: [   8537080.3822,
#                             datetime.datetime(2005, 10, 29, 3, 30, 25),
#                             1962],
#                      9: {   7: 3293,
#                             8: 'MIDvonPCOoEEiXrjnLNI',
#                             9: [   'cMflItAgjNfuDuoyCgyn',
#                                    'lmsKuoMcapRYOgSOdHWl']}},
#         'may': {   4: 'VNWBwljGkWJqSIQgzLxo',
#                    5: [   Decimal('-1113331455.23459'),
#                           Decimal('-95.3'),
#                           699.5139264708],
#                    6: {   4: 'RpvwXcRtIbcgNoNATNpb',
#                           5: 'eavSJSTqmSThFeYcnNSI',
#                           6: ['SqsSNcmlTMiGKCMNsXvr', 'nnmLxzwZKWkKlVtxZEll']}},
#         'politics': {   8: 'kevin01@yahoo.com',
#                         9: [   7856.55037466531,
#                                'https://www.smith.com/category.html',
#                                -6785302140.1],
#                         10: {   8: 'cQUyUTWlgXGNsxlHxhOB',
#                                 9: 'OqzukmSfDrGrsXKeORWY',
#                                 10: [   'https://brown-gordon.info/main/terms/',
#                                         'AsGzcToaSRXbiHZjiZHp']}},
#         'room': {   3: 'pLggSYcmLlWtfpkPvUpE',
#                     4: [   datetime.datetime(2003, 5, 17, 17, 49, 19),
#                            479221791.0,
#                            'patricia75@yahoo.com'],
#                     5: {   3: 7940,
#                            4: 'http://key-collier.com/terms/',
#                            5: [   7417,
#                                   datetime.datetime(1983, 11, 27, 5, 32, 54)]}},
#         'sea': {   5: 'OdPfvSnLvJjVYIDnBlZT',
#                    6: [   'RORzaZmUAvmTTmLWYaaW',
#                           'http://www.coffey.biz/search/',
#                           'AEGXOsOCWbqZsilnDYGz'],
#                    7: {   5: datetime.datetime(1985, 1, 30, 21, 18, 17),
#                           6: 'FFiAeBOgbVhSehcnPtQX',
#                           7: ['TbYPbfSWOXtfApMzQGvN', -651564.23235]}},
#         'song': {   9: 'jOdruclQQfwGxfrLRAuw',
#                     10: [   'cQlTAsANSpIEbJVfUXIv',
#                             datetime.datetime(2006, 5, 6, 19, 37, 2),
#                             'hrobinson@yahoo.com'],
#                     11: {   9: datetime.datetime(1997, 8, 31, 17, 18, 57),
#                             10: 'cksOZhvUssDPpsDTBYyz',
#                             11: [   Decimal('-16048.3013244912'),
#                                     datetime.datetime(1973, 11, 12, 3, 58, 49)]}},
#         'store': {   6: 3117,
#                      7: ['pjAbjonjEQZaXzuYxVVz', 'markjarvis@gmail.com', 78],
#                      8: {   6: 'https://wallace.com/',
#                             7: 4266,
#                             8: [   Decimal('29646783408126.6'),
#                                    -56408599917990.2]}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'bonniewagner@wu.com',
#     'vjoyce@gmail.com',
#     181417356205.117,
#     datetime.datetime(1988, 1, 14, 5, 6, 12),
#     'ncTqSXyqcuqRbVWGyMaB',
#     datetime.datetime(2016, 9, 15, 16, 47, 39),
#     -97614824.0,
#     'qYNfCfCxInDBCUpNrHyG',
#     'rlHuUEcAViyKYZqheCiO',
#     'bakercindy@hotmail.com')