faker.providers.pythonΒΆ

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'ability': 'bryanlong@yahoo.com',
#     'air': 'DHZlHywjgsIrHAJhOJYB',
#     'alone': 'http://www.moran.org/category/tags/app/main.jsp',
#     'card': 'iwhicojUTXLncWcBNYGs',
#     'effect': 'vlGbckeORBgmoXovkRxJ',
#     'laugh': 'IfiwhXsjjOmeUVZzZreF',
#     'letter': 'pdraAGDOQjWyItvhOrEZ',
#     'office': -87186823510418.0,
#     'raise': 'SGXiLRcTvQGscerdNrBG'}

fake.pybool()
# True

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'jnxncJcroyytdOgDuLtU',
#     'rrPuIRQDZMYCrAfuIVLv',
#     datetime.datetime(1996, 6, 10, 6, 46, 36),
#     8420,
#     Decimal('-7421685077885.0'),
#     datetime.datetime(1997, 8, 11, 2, 37, 29)]

fake.pystruct(count=10, *value_types)
# (   [   527,
#         2558,
#         8780,
#         'frollins@gmail.com',
#         'rGxUOzcAOAnuASQmtiCj',
#         Decimal('92667.173016536'),
#         2784.8854844891,
#         'lrwGMDdXAsTTOfYuFCdY',
#         Decimal('32671374704.0'),
#         'kristinajones@hotmail.com'],
#     {   'agency': 'qnxXuylUaORmKKavXYjI',
#         'discussion': Decimal('-601.986408717222'),
#         'end': 'EDuHYuwQqLyBWeUVIOWt',
#         'fire': 'https://hanna.biz/',
#         'group': 5429,
#         'right': Decimal('-33862162307.426'),
#         'since': -2230.47294,
#         'thought': 'ericwilliams@yahoo.com',
#         'tough': 'gVcfCqKVGlsUTzqvoPKL',
#         'vote': Decimal('88.132961')},
#     {   'brother': {   8: 'FXLCndfBdlhfpVxONhfX',
#                        9: [   'aOLHjWsuAPBsZKmCMcSg',
#                               -1972.451,
#                               'vaXgxTUaXQIoMmFZBvQX'],
#                        10: {   8: datetime.datetime(1995, 5, 30, 5, 10, 39),
#                                9: 'https://www.lowe.com/tags/tags/list/terms.htm',
#                                10: [   'KnYTFqazvlAsHBFpKAuD',
#                                        'zNJVuMrUvSKIYyHslbaf']}},
#         'call': {   2: 'https://allen.com/post/',
#                     3: [Decimal('-576126198939166.0'), 4113, 2913],
#                     4: {   2: Decimal('-982753.9'),
#                            3: 'GGFIHffYZACYzWXZzSvo',
#                            4: [   'JuaqduSNXCokoLBQOsuC',
#                                   'tYqKdojtkjXIKfCPtJtt']}},
#         'development': {   5: 'http://wilkins.info/terms.html',
#                            6: [   481,
#                                   'kathryn50@gmail.com',
#                                   'http://hunter.com/search/privacy.php'],
#                            7: {   5: 'jToGuJILSzcANlzYfKcK',
#                                   6: 'CgzPnvgLvEUwTiNySnuL',
#                                   7: [   'HbHLrpeoNRbNESrPyuHJ',
#                                          datetime.datetime(2008, 12, 13, 5, 20, 27)]}},
#         'level': {   4: 'THqOZrkTzBcILVhTXAPh',
#                      5: [   datetime.datetime(1999, 6, 11, 10, 59, 1),
#                             Decimal('-2702864.7'),
#                             datetime.datetime(1982, 4, 21, 15, 54, 3)],
#                      6: {   4: -647740.6,
#                             5: 8426,
#                             6: ['IHBAFtHKfIXklpWGaXBg', 5828]}},
#         'likely': {   3: datetime.datetime(1986, 2, 27, 15, 22, 27),
#                       4: [   'sLACrcprkMDylxKwvwDM',
#                              Decimal('5417475507.67'),
#                              'AHXxHJfJKJIbXIxxbftB'],
#                       5: {   3: 'jmjlaOoiUcZuQQWstBsj',
#                              4: -58424848623.1,
#                              5: [   Decimal('3052735077584.0'),
#                                     'zZZrtrUojZNUmlzQpjym']}},
#         'me': {   9: 737849361899.0,
#                   10: [   datetime.datetime(1986, 1, 10, 0, 32, 51),
#                           'fKUKDvLeSlycMOOLTzTm',
#                           4925],
#                   11: {   9: 'eblhmJRvWWXymblosFox',
#                           10: datetime.datetime(2000, 7, 5, 0, 24, 1),
#                           11: [6308, Decimal('580385985851.0')]}},
#         'million': {   6: 'https://russell-jones.com/tag/privacy.asp',
#                        7: [   'zmunoz@hotmail.com',
#                               datetime.datetime(1978, 2, 5, 17, 50, 37),
#                               'PQwxuACSzwDHDjOZrBVu'],
#                        8: {   6: 'fesZAboMJDzDylPMjgJK',
#                               7: 'jeffreywatson@ortiz.biz',
#                               8: [   datetime.datetime(1977, 4, 24, 7, 35, 12),
#                                      'bradfordkayla@johnson.com']}},
#         'music': {   7: 'EDBsBmWhkZYMgchTMbPB',
#                      8: ['hLryPtnfWmFmffdMiQGO', 9452, 'umorales@campbell.com'],
#                      9: {   7: -718234626588.27,
#                             8: 'eYNbmrYpdYbVrjKXrDjD',
#                             9: [   'vEOFmZWfALquIzxEYedu',
#                                    'adbdBLJwsJyoWSYNKWNa']}},
#         'time': {   0: 'rcook@hotmail.com',
#                     1: [   -67.169,
#                            'fyCNstcspXDkPjNAMcbj',
#                            'ginamccullough@yahoo.com'],
#                     2: {   0: -60025936767912.0,
#                            1: Decimal('-928399023058.848'),
#                            2: [   'WLFaKWdUeyimCruYFEsf',
#                                   'BzyeaYrlfsVzFzxGcviW']}},
#         'where': {   1: 6377,
#                      2: [   'dMtiFyGVWofVASQkVxiu',
#                             Decimal('-4200614709476.2'),
#                             'https://www.ingram.biz/tags/category/faq/'],
#                      3: {   1: 5495,
#                             2: 'sBnIZOQkxyYLvKwmgeDR',
#                             3: ['SsQMCakukIfuUIbrDNpr', -81784564.0]}}})

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'tsiaiFlJrcGRKinNqTUd', 'rdeUtDzoJuzvUyZJrZDu', 'owells@cox-clark.org', Decimal('-13606955.8106'), 6686176173.91857, 'jamesmosley@gmail.com', datetime.datetime(2007, 5, 9, 6, 51, 5), 'GMBCxMcMewebMFsieWVO'}

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

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'xPjHrgxoFVRvvrxtjATO',
#     'mbvlaOeWFDsGEJLyrsli',
#     'olpivWkbPqMpqfPDUIZK',
#     datetime.datetime(1973, 3, 11, 7, 10, 9),
#     datetime.datetime(1985, 8, 1, 8, 55, 25),
#     'wmaldonado@hotmail.com',
#     3476,
#     3286,
#     6522,
#     'cqSjcLDuFKEKvMcBwUnB',
#     -241620577.529)

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

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

fake.pyint()
# 3871

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'http://schmitt.info/',
#     Decimal('18.8060327379'),
#     'garrett86@pierce-ellis.com',
#     'http://bennett-castillo.net/category/author/',
#     Decimal('2904932078.659'),
#     'BuFVQcbkheSYrrJzoxDT',
#     'jamesjoseph@moreno-gordon.net',
#     5008,
#     datetime.datetime(1988, 11, 25, 4, 58, 27),
#     3350,
#     'FUYIAOWbLDHWONfdfkFu',
#     'williamsjamie@yahoo.com',
#     5373,
#     'oGrmJHGcFBYQacWsJgXM')