faker.providers.pythonΒΆ

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

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'big': datetime.datetime(2015, 10, 23, 12, 56, 44),
#     'blue': 1882,
#     'charge': 15776052554.1048,
#     'first': 'https://www.nguyen-jones.com/post/',
#     'follow': 3125,
#     'though': 'jGiTFygYxzQbVnokgpap'}

fake.pybool()
# False

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'zfBGzGHwstkrBvxbSIzY',
#     -33435740.0,
#     Decimal('630372.5534414'),
#     'https://www.burton.info/categories/app/category/login/',
#     8711,
#     47380.2,
#     6489,
#     3547,
#     'MRLXEskxpwOowrdVTatq')

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

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime.datetime(1996, 9, 13, 22, 45, 4), Decimal('97903605922.8111'), 'hernandezamanda@gmail.com', datetime.datetime(2018, 1, 8, 3, 40, 58), datetime.datetime(2008, 12, 1, 19, 7, 27), 975.53, Decimal('-90258136.846'), 'mJfAaXDTuBqOaAKIJpfN'}

fake.pystruct(count=10, *value_types)
# (   [   'FzrUiKnNxDVqzOWYuveE',
#         'https://foster.com/',
#         8391,
#         'DoynJeTZvJgOtvzzXsds',
#         'annarodriguez@david.com',
#         4458,
#         6659,
#         'martineztravis@jackson-reyes.com',
#         datetime.datetime(1984, 3, 1, 1, 16, 32),
#         Decimal('325983605196.64')],
#     {   'allow': 'JePFHUAwdWCHOKwZqpza',
#         'budget': 'pmrGVJqnXNSrbNqlvRdu',
#         'current': 'craigbarbara@gmail.com',
#         'drive': 'http://wilkins.com/homepage.php',
#         'involve': 8919,
#         'line': 4195,
#         'once': 'http://bennett.com/',
#         'perform': 'IyFtAWgwLXJxsosQqGRo',
#         'run': 'https://www.smith.com/',
#         'three': 533687.3209},
#     {   'financial': {   9: 'uvfyrRfOkHuJKbnXMGTd',
#                          10: [-50515.5833, 'phillip66@gmail.com', 6148],
#                          11: {   9: 'http://www.evans.info/tag/privacy/',
#                                  10: Decimal('-7.7889609'),
#                                  11: [   'zSwdRUbSmdjopgFghcxX',
#                                          'KUwdmjOQgcfHpVBjxCXj']}},
#         'good': {   6: 'LCmhwOgBqHFJlRzzoziC',
#                     7: [3595, 'http://peters.org/app/categories/about/', 5316],
#                     8: {   6: 536086561126742.0,
#                            7: 'dvHUaslEgxqueHOXesJc',
#                            8: [   537,
#                                   'https://www.kennedy-carrillo.com/app/search.jsp']}},
#         'it': {   5: 'jzcXuJYyIPWfzrdQdqfL',
#                   6: [   'http://bennett-garcia.net/privacy/',
#                          Decimal('-32.0'),
#                          4836],
#                   7: {   5: 'IfbFrPdWeiAbwewfbaKn',
#                          6: -428725239957.17,
#                          7: ['RqaKoxKqtOijBswaucfx', 3018]}},
#         'media': {   7: 'dHSPZsqwGukBRUNZmeua',
#                      8: [   'lMotqPZBMNtttJdDcreT',
#                             'VMbQjXtvimBFcgsLTrZZ',
#                             datetime.datetime(2010, 3, 6, 15, 44, 48)],
#                      9: {   7: 'mspJQIzmmAzaHUcMgoik',
#                             8: 'UDcrZwkoZWlplBFWCWgS',
#                             9: [2250, 'dean65@gmail.com']}},
#         'picture': {   3: Decimal('-111.0'),
#                        4: [   'YUVsUyfNcemhDSuRocRa',
#                               'lindseyholly@hotmail.com',
#                               'CuCRGIekwbZBKxyvZURi'],
#                        5: {   3: 'http://robles.com/faq.php',
#                               4: 'sMmpHfZUNvdMMiPRhWLc',
#                               5: [Decimal('4494.18414'), 481]}},
#         'put': {   8: 2822,
#                    9: [   Decimal('-208718968360.0'),
#                           datetime.datetime(2005, 11, 17, 13, 12, 38),
#                           datetime.datetime(1987, 1, 24, 21, 52, 37)],
#                    10: {   8: 'isxzhVrwGatSGwmaghsJ',
#                            9: Decimal('-52447684348574.0'),
#                            10: [   'leachsarah@rodriguez.com',
#                                    'https://allen-ferrell.org/categories/search/index/']}},
#         'shoulder': {   2: 'anthony06@king-burton.info',
#                         3: [   'BjquCOGLBPBpzOUuPfmc',
#                                2313,
#                                datetime.datetime(1993, 8, 22, 0, 37, 7)],
#                         4: {   2: -8.40134454193129,
#                                3: 42.0,
#                                4: [   'xdiaz@yahoo.com',
#                                       Decimal('-43290994488863.0')]}},
#         'six': {   1: 'riverafrank@martinez-pena.net',
#                    2: [2202, datetime.datetime(1997, 5, 16, 4, 6, 53), 8398],
#                    3: {   1: 'WzSCUwmvGbRPcQIrINBg',
#                           2: 'http://www.wilson-kaiser.com/list/search/search/',
#                           3: [6294, 'steven94@hotmail.com']}},
#         'somebody': {   4: 'jWMffhnxQjLvTVOcdEHw',
#                         5: [-7863.20394, 'KKkdCutnsTkznLAqBSkz', 1348],
#                         6: {   4: 'bmxeEjzoeRKITIMpkHte',
#                                5: 19261771.4816,
#                                6: [   datetime.datetime(1984, 11, 28, 18, 34, 56),
#                                       3.799017]}},
#         'test': {   0: 'njsVpLXbIlLJcjQEWikZ',
#                     1: [   'OXaoBYlXeIvfSJmsAqxK',
#                            'perezcourtney@hotmail.com',
#                            'ibpRZAPpTNcfXClNYhpU'],
#                     2: {   0: Decimal('1253790150038.72'),
#                            1: 'http://www.johnson-padilla.org/register/',
#                            2: [   'JCgTiprfBYuldwosEfhB',
#                                   'bxAlZBNTVxtAhWrxClaz']}}})

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime.datetime(2014, 5, 27, 1, 28, 3), Decimal('115910.0'), 'srLsOLmmPsUPuqSVLuTj', 'PgxwoxSQyKflErGwknvr', datetime.datetime(1998, 9, 16, 23, 39, 55), 8920}

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'mgHOEsluRaehhxFsyAEE',
#     'qouhSXWyOJItsxhdyJdb',
#     'https://evans-turner.com/index/',
#     25738.7,
#     'AUxNtrujmgZdsByJBHwD',
#     606608797429.0,
#     'https://reyes-miller.com/blog/about/',
#     Decimal('0.9091424387'),
#     'barnettbrandon@dunlap-campos.biz',
#     'barbara86@mayer-kelley.com',
#     'zacharyhanna@harrell-tucker.com',
#     9213,
#     'https://smith.org/search/']

fake.pyint()
# 8769