faker.providers.pythonΒΆ

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   6583,
#     'OveAmqGRpMWlYJdWcNqo',
#     6094,
#     'mLOkorkgXlskczRJCMip',
#     'fqvraBGMzKKdbstEqsFH',
#     'lddjJYbNLtXRJEEDCyjD',
#     5154851662131.3,
#     'JIZVzlvLHSTYGSOzlLYk',
#     -12718710556361.0,
#     'BOWXqzxjzlMLkpQTQhmt',
#     -57918689664066.0,
#     6313,
#     1727]

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'early': 702,
#     'green': datetime.datetime(1982, 12, 20, 4, 14, 9),
#     'help': Decimal('-8158735816648.0'),
#     'likely': 'dzeGPUbkeOldQMFWOCKn',
#     'machine': datetime.datetime(2007, 1, 26, 22, 55, 25),
#     'prepare': Decimal('44279638.3'),
#     'ready': 'https://kim.com/',
#     'type': 'XjDRYFWhwHubbZBpcQvg'}

fake.pystruct(count=10, *value_types)
# (   [   'https://murray.com/author.html',
#         9850,
#         Decimal('-853341539.0'),
#         datetime.datetime(2016, 7, 28, 20, 39, 43),
#         Decimal('174650652224408.0'),
#         -3498731145.21,
#         'seanpowell@yahoo.com',
#         -1667313171531.1,
#         'https://murphy.com/tags/explore/homepage/',
#         Decimal('53507844649.97')],
#     {   'answer': 9666,
#         'ball': 'YXimUJhpfnvufYcYtnBB',
#         'brother': 8822,
#         'during': 'iBYSsZtZgqQjhpnxiqxf',
#         'hour': 6470.0,
#         'it': 'xjRYpqwxfEIlklRqawNw',
#         'item': datetime.datetime(1994, 4, 11, 23, 33, 48),
#         'might': 4167,
#         'thing': -428560531.12604,
#         'us': 'kennethanderson@hernandez-warren.org'},
#     {   'about': {   8: datetime.datetime(2018, 11, 7, 1, 29, 59),
#                      9: [   datetime.datetime(1975, 4, 30, 19, 31, 10),
#                             'YryfhWdkoMbDrJfhIgte',
#                             'DGIjPIbFwCWjKpVirOIE'],
#                      10: {   8: 5968,
#                              9: 6849,
#                              10: [   'http://rush-hensley.org/posts/tag/post/',
#                                      'GJLeAtVSEAJpiBBTImuz']}},
#         'behavior': {   1: Decimal('7435.397'),
#                         2: [   'NlFprLSONaOhVAuaLwjF',
#                                'john35@hotmail.com',
#                                'SnrWbcqkGZiBsfMbFcEt'],
#                         3: {   1: 'zyWBonJGxgwxStxlchUz',
#                                2: 'ibqJGYpGuawfCRYJjjvU',
#                                3: [   'qDYGjDINmmTWkFmjotCd',
#                                       'ZoUUwXzzXdOvjXEhLtde']}},
#         'half': {   2: 'jJElCuZNYNtTzPQshBXs',
#                     3: [   1180,
#                            'khUITmYjqKcbdhpVTpEQ',
#                            'todd20@bush-harding.org'],
#                     4: {   2: 'xCwPXIqaKdjURGkefdGh',
#                            3: 'jasonmartinez@andrews.com',
#                            4: [   'https://www.morales.org/main/main.asp',
#                                   'qJDMhumjaUJkuGlaVcOV']}},
#         'high': {   0: 'jPKhLIgNaYfbJpnaHcPV',
#                     1: ['CxKxRuqDVtFIvXTiqHYl', 'doEvwnHoyUbaioIhncdD', 6246],
#                     2: {   0: 'LjUpCsYHNEeKBPsFOOpT',
#                            1: 4863,
#                            2: [   Decimal('84833099222988.5'),
#                                   'XlhoQhmLrYQmgOczjWhl']}},
#         'just': {   9: datetime.datetime(1989, 11, 17, 8, 22, 5),
#                     10: [   datetime.datetime(1982, 8, 30, 10, 51, 56),
#                             370345991309778.0,
#                             'ZbtcyiQPkKyKFzCgplpq'],
#                     11: {   9: 'fPQzcWYduanWSNwYulhs',
#                             10: 'lIXrPoLHXxXFeNDVTRWj',
#                             11: [166, 7549]}},
#         'once': {   6: 3855,
#                     7: [   8061,
#                            datetime.datetime(1971, 1, 13, 13, 4, 39),
#                            Decimal('2152721589.8')],
#                     8: {   6: 'https://ellis.com/terms.jsp',
#                            7: 'http://www.gibson-oliver.com/explore/terms/',
#                            8: [2119, 'https://cruz-duran.com/']}},
#         'perhaps': {   3: datetime.datetime(1995, 4, 5, 3, 17, 51),
#                        4: [   'GlgcmeMaBoQhlJnuKQdS',
#                               Decimal('2414786.9603686'),
#                               4280],
#                        5: {   3: 'bAxlEFjbFxJExAaBSgRK',
#                               4: datetime.datetime(2006, 10, 25, 17, 34, 51),
#                               5: [   datetime.datetime(2002, 12, 26, 9, 58, 21),
#                                      'http://www.campbell-lambert.net/category/main.html']}},
#         'speech': {   7: 4511,
#                       8: [   'MlRiDJsuaEiMmKshBTcz',
#                              'ehmSdKuIUaAewXjWZoLX',
#                              'tinakeller@martinez.net'],
#                       9: {   7: 'perrybarbara@hoffman-roberts.com',
#                              8: 9794,
#                              9: [813, 'giMUCvPxWMArfrsUwzsV']}},
#         'truth': {   4: -992.1595,
#                      5: [   datetime.datetime(1988, 1, 5, 0, 2, 23),
#                             629,
#                             'tREbQTNGZBzSIVgVxgdU'],
#                      6: {   4: 'https://rangel-kennedy.com/category/posts/categories/terms.html',
#                             5: datetime.datetime(2010, 5, 17, 1, 29, 41),
#                             6: [2698, Decimal('1358458.22572')]}},
#         'type': {   5: datetime.datetime(2005, 10, 19, 22, 37, 54),
#                     6: [   Decimal('-602477937.6572'),
#                            datetime.datetime(1972, 11, 16, 2, 51, 22),
#                            -740335519413.542],
#                     7: {   5: 'NmxfXueSjPaNlscqusZT',
#                            6: 'ywracwYYuNoLvXiLYmKq',
#                            7: ['http://singleton.info/register.htm', 4972]}}})

fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -294.2891

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'PsdRQcdsKzhdTyduLOcF', 'BhClVfkgpfaoFKZRydGe', 'TVpYkmgFXqanSLOYXyic', 'KKCSDWhjZpGqwvqYEsOz', 4910, 'DbyETvftwhloEkxvfXfN', Decimal('3879401568.57151'), 5459, 'uLngiYlbHATNTEkJdPaE', 'https://turner.info/category.htm', Decimal('-507389268294.0'), 'UfpzoOanSYEJisCVwdvR', Decimal('-3711866883265.0')}

fake.pyint()
# 4683

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   datetime.datetime(2005, 3, 21, 19, 15, 14),
#     'PJGoQfqtWJPrQIfaNpRd',
#     9744,
#     Decimal('-547947.0'),
#     -50151.83342857,
#     9690)

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

fake.pybool()
# False

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# {-5184.217, 4645, 'aGFOyBxPNsIXqqlFfVXE', datetime.datetime(2014, 1, 27, 20, 57, 54), 'michael85@brooks.com', Decimal('-6.1456815'), -4904.23057509}

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