faker.providers.pythonΒΆ

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {6017, 9060, 4870, 'uPEejPRDhXbbYdAinTko', 'http://www.cook.org/main/tags/main/', datetime.datetime(1980, 2, 2, 23, 53, 24), datetime.datetime(2016, 7, 9, 13, 56, 34), Decimal('47.17'), Decimal('856068943.704'), 'https://schmidt-shelton.org/home.jsp', 'christopherholmes@gmail.com', 'ICLiucmhEKCYyweveuZf', 1246}

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'tTsKzihFJfmQhvxElQzi',
#     'macdonaldemily@yahoo.com',
#     4142,
#     'http://stevens.biz/',
#     6935,
#     datetime.datetime(1985, 8, 12, 8, 43, 9),
#     'lfbHrKQwgrUCZHWXErwY',
#     'PCXShZQIiEGXHeadNSZA',
#     'mCKqdoJVXHyOjkNkXVeK',
#     'XfXzXbBmZvJHmyNRqJXI',
#     'NaSMSaHDchDIGubmkLHw',
#     'JXPIVjCBnuyjTPanbLcZ']

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

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

fake.pystruct(count=10, *value_types)
# (   [   575,
#         'kristencole@jones-adams.com',
#         'http://www.moss.com/main/privacy.jsp',
#         'GmHKiGHgpNGlQKxWNTET',
#         'slMpLDJXWWIIkyxnZfvL',
#         'MbainbyouYRvRFYXvZVF',
#         datetime.datetime(1981, 6, 28, 9, 25, 12),
#         4690,
#         'pughmorgan@miller-padilla.info',
#         'PfMtNkkLQYHAgDtasvVv'],
#     {   'arm': 286358239524.9,
#         'century': Decimal('30297928615322.0'),
#         'computer': 60052327.0,
#         'from': datetime.datetime(1978, 12, 31, 1, 58, 25),
#         'garden': 'NXfWMocXVPNOEyIUgQEn',
#         'hot': datetime.datetime(2014, 6, 29, 13, 22, 58),
#         'movement': datetime.datetime(2005, 10, 7, 9, 2, 27),
#         'shoulder': 'birdbrian@cohen-nelson.net',
#         'site': 'MOGQMsbbXOOTSpSpokGF',
#         'which': 6655},
#     {   'huge': {   2: 'dIGNDTtYVpdVVGzBpgiY',
#                     3: [   'uHVdURLNVxiIDSIhIPkQ',
#                            'robinsonjo@gmail.com',
#                            'UHpEoTtqZkwJHIlyACkJ'],
#                     4: {   2: datetime.datetime(2005, 4, 26, 15, 7, 20),
#                            3: 'lbailey@hotmail.com',
#                            4: [Decimal('-82518158693495.0'), 6621]}},
#         'hundred': {   8: 'yMTKcWSTmPCTRixgdrkR',
#                        9: [   'fYXbSSGwmVVVrTBpDOQw',
#                               -4821.6459479,
#                               'steinjennifer@foster-buchanan.com'],
#                        10: {8: 758, 9: 29, 10: [9997, -1305444.0]}},
#         'part': {   5: datetime.datetime(1991, 12, 22, 6, 26, 47),
#                     6: [   'hPdMdbXtQRJwOPBQCfrl',
#                            'coxlaura@gmail.com',
#                            Decimal('-49578.1879327574')],
#                     7: {   5: datetime.datetime(2008, 10, 22, 0, 50, 20),
#                            6: 'landrytina@hotmail.com',
#                            7: [   'http://www.thompson-weber.com/terms.php',
#                                   34706803.13022]}},
#         'possible': {   3: 'FeioZoKymdrbdYPdpWlj',
#                         4: [   'jAFdxDWsflAAJFgwEbuo',
#                                datetime.datetime(1987, 9, 22, 4, 54, 38),
#                                'czJXfwltowjpiAhZmjXy'],
#                         5: {   3: 3445,
#                                4: 'BzpeSTxijjommSRPwLvv',
#                                5: [3771, 'BDPvgtMHVxINWhOcJMAV']}},
#         'purpose': {   7: 'thqxPjEDVmTFEahwiNyB',
#                        8: [   9520,
#                               datetime.datetime(1992, 4, 10, 18, 43, 38),
#                               9787],
#                        9: {   7: Decimal('-98.56'),
#                               8: Decimal('565.282581'),
#                               9: [   'steven47@edwards-smith.com',
#                                      'http://www.bryant.biz/']}},
#         'return': {   9: 28726018119.72,
#                       10: [   datetime.datetime(1975, 8, 11, 4, 21, 21),
#                               -253479.89044,
#                               'flemingmaria@bowers.org'],
#                       11: {   9: 'pDpVOtgpsLYmWdFrBzrf',
#                               10: 3959,
#                               11: [9453, 'kutxeIhKmotdAjmNxlFV']}},
#         'she': {   1: 'bbLYELWAKIMSEqtSevuM',
#                    2: [7508, 'davidharris@berry-green.info', 3261],
#                    3: {   1: Decimal('190.67824257079'),
#                           2: 'http://nelson-fleming.com/faq.asp',
#                           3: [   'sanchezerica@hotmail.com',
#                                  'aYECugghZjFuhgyzqxnk']}},
#         'ten': {   0: 783881456894483.0,
#                    1: [7012, datetime.datetime(2007, 1, 25, 4, 49, 19), 2433],
#                    2: {   0: 'uJdgqnrUpohrljofPyyf',
#                           1: Decimal('-623560818104512.0'),
#                           2: ['SLkWsodfQjEMbLuxTvyL', 'jessica88@thomas.org']}},
#         'thank': {   4: 'oscarsantiago@hotmail.com',
#                      5: [   'http://west-glover.biz/search/homepage/',
#                             'williamspatricia@gmail.com',
#                             3523],
#                      6: {   4: 'FYNUDXbRATPEAgyxBarZ',
#                             5: 663,
#                             6: [37999736622109.7, 'DsDJQKGldxqmUKSRpuMA']}},
#         'top': {   6: 2626,
#                    7: [3311, 9043648.3454, Decimal('-62868.0')],
#                    8: {   6: 'LFQYwUZlhPZgAnujzvjA',
#                           7: 'inBCPapncGwROCiHIfds',
#                           8: [   3977,
#                                  datetime.datetime(1982, 12, 9, 0, 45, 59)]}}})

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'LzgNGHnHlnPJWAHhHPez',
#     -1444735647419.0,
#     'gRtEwJPAiItUcPqIyYGU',
#     Decimal('-96926.6752977'),
#     Decimal('745946.886124'),
#     'VXntfAGpThzZKQLJtsKM',
#     'SEdiIhEMJuELcJWZokbX',
#     'jAgbhgOcyNKDoZfRQQEK',
#     datetime.datetime(2005, 8, 21, 19, 34, 6),
#     datetime.datetime(1971, 3, 17, 8, 22, 24))

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'FLnwGirowxkpPnmTdxnk',
#     4419,
#     -936971618427.0,
#     84166.6,
#     4967,
#     'AJnkHtjhuoYXrntzkdwc',
#     7687,
#     'rking@hood-ellis.com',
#     'tHOoKIZWqBxMpjRotVga',
#     'rvaughan@watson-simpson.com',
#     'https://www.moore-daniel.com/',
#     datetime.datetime(2004, 8, 20, 15, 59, 47))

fake.pybool()
# True

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'because': 'dfTEJogOOVpHtRsmoigr',
#     'bed': 'tvTpzzJmSdJkDAJiYiiS',
#     'college': Decimal('-8829196848075.88'),
#     'condition': 'scarpenter@robbins-kelly.com',
#     'cut': datetime.datetime(1985, 8, 13, 6, 46, 22),
#     'maintain': Decimal('53.3639629116'),
#     'store': 'QlunXtQwKsVuRwQQrGOl',
#     'trouble': 'wvyncCNpblrXcLsNlFiw'}

fake.pyint()
# 9673

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