faker.providers.pythonΒΆ

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   datetime(1988, 12, 22, 17, 20, 31),
#     -607.75404,
#     'jsanchez@riley-faulkner.com',
#     'http://www.foster.info/app/app/explore/register/',
#     'jHdEtAYsnaIeMbrvWPNt',
#     6031,
#     'xANEWlSJHoGIpqzUTuOE',
#     1303,
#     'ruaBwTBbthuKTZEMaHUL',
#     4490672537.63545,
#     7167,
#     'http://owen-wilson.com/category/about.html')

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

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

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'UotCcOrhyvXzaybXRjOg',
#     1771,
#     datetime(2006, 5, 22, 7, 19, 47),
#     23731453049893.0,
#     8352,
#     'DTIMgYwRTfzrlDhtEUmS',
#     3241,
#     'RlqTLqzovnrPnBanDlSH',
#     73924493083.232,
#     'fgeDVNwVPSgaWnuzumRP',
#     Decimal('338294.301215945'),
#     355]

fake.pybool()
# True

fake.pyint()
# 7843

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'adipisci': 'SBeGDNEcYyDJHdFLIJYh',
#     'culpa': 'egEyPLhMzzfURnLxPzzZ',
#     'cum': 7.7445153867,
#     'cumque': 'reyesjeffrey@smith-gillespie.com',
#     'ea': 'ostewart@west.com',
#     'est': 'qATszfUjkzvuZtcIgVgZ',
#     'fugit': datetime(2005, 5, 15, 17, 52, 27),
#     'minus': 'pCtfhRquGQaxpkXhbQtR',
#     'omnis': 'YNadJdicwBOIyROTiiWv',
#     'voluptatum': 'FTvQzrzCdFZCUDrrpjWK'}

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'gregory36@hotmail.com', 3684, 9896, 'jrzdCibWXmwZfZlvIPmA', -7442779666.975, 9294, Decimal('88.76809012116'), 'WKAsAhINMVZHougRQcZN', 'PsOOXmXoXQZYLXIZMpHC', 9242, 2076, -323.1}

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# (   datetime(1997, 2, 26, 8, 12, 29),
#     'fyRklNzTaXVWLQsMaXpz',
#     512,
#     'swOLstzddMtGUonFIWOl',
#     'nicholegalvan@rush-stanley.com',
#     'umHNfhLDfaKrtHWPEXcV',
#     'KWVBaxbsCbJBLzmpdYFE',
#     'XvwoXVaDukUYFFAgjXPk')

fake.pystruct(count=10, *value_types)
# (   [   9944,
#         datetime(2008, 9, 21, 16, 42, 20),
#         datetime(1973, 9, 6, 3, 12, 24),
#         datetime(1984, 10, 4, 1, 49, 11),
#         'melinda68@hotmail.com',
#         datetime(1985, 9, 5, 6, 39, 41),
#         'YHmWqkeMDpKPBrTJoaGm',
#         Decimal('61150.3'),
#         'bryantjames@hotmail.com',
#         Decimal('-85.21254')],
#     {   'eum': 9132,
#         'impedit': -6695320913.89,
#         'molestiae': 'PfnzpVvxtTKtZYjcYDHH',
#         'numquam': 40406447.6012,
#         'quia': -28129.788957,
#         'recusandae': 'aFTEvshrDwRxeKzhUKSV',
#         'reiciendis': 'sPhxcMUHHpEuLiBmnnWV',
#         'tempora': datetime(1971, 12, 13, 15, 17, 35),
#         'temporibus': Decimal('36041747036.66'),
#         'vel': 1013},
#     {   'a': {   6: 9233,
#                  7: ['AJhDauJNMYgWnXjQRtAM', 6357, 'FurcBMkbvJwOqrxuHPDq'],
#                  8: {   6: 'yjwLaNRWHUGLKKYGCbHg',
#                         7: Decimal('38417.3346'),
#                         8: ['mofugCzMndaXLgTQQTYn', 'apVPDjdnoZwzwLCFXZlM']}},
#         'cumque': {   2: 'https://wallace.com/app/list/app/author.html',
#                       3: [   'https://www.mccormick.net/terms/',
#                              Decimal('-98623520994858.0'),
#                              9898],
#                       4: {   2: 1030,
#                              3: 'yqZmoqJqCkmeRnrsryca',
#                              4: ['fklein@gmail.com', 'SDgohRKxSuUspJyRMAxS']}},
#         'eos': {   8: 'zDzWPhSlCJVGMlRInUtw',
#                    9: [-701767790800593.0, 'ZszgRxDpCYfFtUpgTuvT', 6969],
#                    10: {   8: 'hUEuIGvHuTzbnpJrEZGK',
#                            9: 'http://www.garcia.org/author.php',
#                            10: [Decimal('448791.6644'), 4000]}},
#         'facere': {   3: 'http://lee.biz/',
#                       4: ['dPDguzuKWQmOvPRdHilO', 'ebAXFoSSsZNYGPbTUUCG', 2780],
#                       5: {   3: 'pyCbNxKxwDdKwQBvKvzp',
#                              4: 'zdunn@yahoo.com',
#                              5: [   'lFicVMRfnohEsSrBpJWw',
#                                     'http://martinez.com/app/author.html']}},
#         'in': {   1: 'nDSOOQgYDEnipcwfshcx',
#                   2: [-120340866929764.0, 'NwHzZSxRmYLkTZtZYgUc', 90118.180816],
#                   3: {   1: 'https://www.hatfield.com/app/app/author/',
#                          2: 'howellsamantha@washington.com',
#                          3: [   datetime(2009, 11, 15, 14, 34, 7),
#                                 'iInEkenxbIPAHDScXsCd']}},
#         'inventore': {   7: 'QojiMrvvKgUNTkGcHmqE',
#                          8: [   'QFenkNpmzhmNSpVXrDQI',
#                                 Decimal('65613179.498'),
#                                 datetime(1989, 11, 27, 1, 42, 14)],
#                          9: {   7: datetime(1983, 6, 30, 20, 21, 44),
#                                 8: 4029,
#                                 9: ['UMazMESkQUJNtkMTvQsV', 5053]}},
#         'magnam': {   5: 'lWZTTgPgncQoSFnEXtDq',
#                       6: ['vvjCiyKMkjQDALEtXpHB', 4340, 'jgNgkfZuaJYnupqzkkzm'],
#                       7: {   5: 'lumDuQMequsCDnZvXQfE',
#                              6: 2319,
#                              7: [6301, 'pnZwfcULyhsDuwMRUAAo']}},
#         'non': {   4: 619,
#                    5: [   'http://house.biz/app/posts/privacy.jsp',
#                           'weekselizabeth@white.org',
#                           datetime(1986, 12, 19, 2, 57, 12)],
#                    6: {   4: Decimal('-6546.793'),
#                           5: 'sDGMfaqTguYmqaACgTRS',
#                           6: [   datetime(1971, 5, 23, 19, 48, 34),
#                                  51426548305.4453]}},
#         'officiis': {   9: 'QMZpvPVIRmQBDnQkcbow',
#                         10: [   'patrick34@monroe.biz',
#                                 'fprBNdGVbHWAjatMCTAD',
#                                 datetime(2010, 10, 31, 22, 50, 44)],
#                         11: {   9: datetime(1995, 11, 4, 1, 14, 17),
#                                 10: 'connie85@eaton.org',
#                                 11: [   'NenptlkKzdYlTFArgxeK',
#                                         Decimal('-292.868')]}},
#         'optio': {   0: 'zvVoYiuletWmGPCYaiHI',
#                      1: [   'http://www.martinez-brewer.net/categories/author.jsp',
#                             8840,
#                             'https://colon.info/main/homepage.htm'],
#                      2: {   0: Decimal('2976203010.62149'),
#                             1: 'ktdVKfnehZvTEEoCTfeg',
#                             2: [   'RRWsNWsVUufgwLKWZGQr',
#                                    'OiymJiZRUSZJgGaedwgh']}}})