faker.providers.pythonΒΆ

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'david33@doyle.biz', 'https://www.campbell.org/tag/login/', 7207, 'http://sanchez.com/privacy.htm', 2320, 'liBWrmXhWhLkNSTWflAz', 'ickqXvLNKXeYMacYVcUV', 'https://frank.com/category.htm', 4790, 'YyWuiIxvYYDmlMAyxRCS'}

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'vJnyCMNsrOaflDqztbOu',
#     'ikXSuOtHzZjuRvhkSQOX',
#     'zKqYJphWoNIIRVdDkYrR',
#     3230,
#     'lHZwsiANdcETdIFWubkp',
#     'umALAAfFZQWjKMXmWabe',
#     2339]

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'impedit': 'GTIxoXuDAJPliKvZjEPx',
#     'placeat': 'sHvtttvjnSfHWzuRtShh',
#     'possimus': 'ewGvyhEkuThxuQOtZuWb',
#     'quaerat': 5495,
#     'quibusdam': 9237,
#     'quo': 'https://www.sharp-weber.info/',
#     'suscipit': datetime(2006, 6, 19, 13, 44, 48),
#     'tempora': 'VzGsYEbJynYWEuYuUZaI'}

fake.pystruct(count=10, *value_types)
# (   [   Decimal('-5140160529237.1'),
#         'xwQFYtVgKioiAyYtvETE',
#         'dJGuEGQhMsppcnAGYnrs',
#         'https://pierce-ray.com/category/terms.php',
#         -172991317.42025,
#         'allenparks@yahoo.com',
#         datetime(2011, 6, 13, 3, 31),
#         'lvoampBPOpANeiwIQzGB',
#         'iLMJjegvLBTkXdMzKlfZ',
#         'dFJACSPwNhlKDfzbhyhp'],
#     {   'debitis': Decimal('5052959091.6993'),
#         'delectus': 'MkDhGbqbSuPeONZhfeJF',
#         'dolor': 'http://www.castro.com/',
#         'ipsam': 'VRDpHDRYsOtjUbgYXloH',
#         'laborum': 6524,
#         'laudantium': -96741.189976718,
#         'molestiae': 'kEEjaVIrCCBaKdGvYlvz',
#         'officiis': 'carrlisa@yahoo.com',
#         'sapiente': Decimal('2581215453909.0'),
#         'voluptatibus': 'https://anthony.org/tags/faq.html'},
#     {   'dicta': {   0: 762261551.5648,
#                      1: [   'yEHVGjQcGzGtXmRSbVez',
#                             'http://norton.net/post.html',
#                             'eOKMbXDUXYOCKeneysyv'],
#                      2: {   0: 1232,
#                             1: datetime(2005, 5, 17, 11, 17),
#                             2: [Decimal('-24418.76'), 1410]}},
#         'dignissimos': {   3: 'randalljohn@mitchell.org',
#                            4: [   'http://moyer-porter.org/privacy/',
#                                   Decimal('206925930069.0'),
#                                   1964],
#                            5: {   3: Decimal('-83393173.807'),
#                                   4: 1751,
#                                   5: [131646222446759.0, 358187879133.881]}},
#         'eos': {   1: 'caRFRpKwnxslXAFcNoNv',
#                    2: [   Decimal('-25136572987.62'),
#                           'EdrSyLrWRtGXpruVfGzn',
#                           'fiJuxhsjGjpOFRGPuzsK'],
#                    3: {   1: datetime(1982, 2, 25, 14, 3, 8),
#                           2: 'monicahardy@yahoo.com',
#                           3: ['SISNUDpgMOVqZbhmFHgG', 'oquwgmeoYsTlTeakkRfP']}},
#         'facere': {   4: -5362915827787.3,
#                       5: [   'kmtTveIxZSrEffPBCQgo',
#                              1666,
#                              'http://www.watkins-johnson.com/login/'],
#                       6: {   4: 'JnmYhYTLHlatNlElICXW',
#                              5: 'nDnQNvgxxuYmTxsubxtG',
#                              6: [Decimal('7019356.305875'), 567.75779442]}},
#         'magnam': {   6: Decimal('-12629.288'),
#                       7: [   'pcasey@rodriguez.com',
#                              'https://www.miller.net/privacy.asp',
#                              datetime(1976, 6, 21, 22, 33, 12)],
#                       8: {   6: datetime(1982, 6, 1, 6, 36, 17),
#                              7: 'http://guzman.com/wp-content/blog/home.htm',
#                              8: [   'http://www.castro.net/wp-content/wp-content/posts/faq.html',
#                                     datetime(1981, 6, 12, 10, 34, 31)]}},
#         'nisi': {   7: datetime(1978, 6, 19, 10, 55, 24),
#                     8: [-731690559698612.0, 4442542829917.0, -708.66],
#                     9: {   7: 690,
#                            8: 'http://jones-may.net/explore/terms.htm',
#                            9: ['hGizczTAkcFhmFgNfjui', 9127]}},
#         'possimus': {   9: 6845,
#                         10: [   6929,
#                                 'eHiGgXMUXpXqCUOejSOY',
#                                 'JmOFmHzugQrKJeZZPiqo'],
#                         11: {   9: 'BSkgASkzpYOcUAieNvNU',
#                                 10: 'IMpmlEZsCFBinjGHCSRg',
#                                 11: [   'YPpMpDevQHGHCySGZIeZ',
#                                         'xIrDnlhiVloflGUGCBdE']}},
#         'quaerat': {   5: 'IwoKoYxhhHDFYTGPGtFU',
#                        6: [   'rVOVzKhTDRrhFBSWpbky',
#                               8456843.3,
#                               'eLjwLQxmlInHicoaybeo'],
#                        7: {   5: datetime(1981, 3, 15, 11, 41, 48),
#                               6: 9198,
#                               7: ['https://reid.com/', 'austin34@pope.com']}},
#         'quo': {   2: 'EvjfgqTUghFGFClhWRAJ',
#                    3: [2120, Decimal('-824110486.0'), 'lZOVyZWZqSxrBMyCssxr'],
#                    4: {   2: 'connor63@hotmail.com',
#                           3: 'hannahlynch@gonzalez.com',
#                           4: ['MXepJBgujIyVtUgOxpHd', 'YLMUBrnRsGbkALIVzBdk']}},
#         'rerum': {   8: 'https://goodwin.org/author.html',
#                      9: [   'VqUYctqezvyTzSgQWywj',
#                             'glenn13@harmon-gonzalez.com',
#                             'BQrNqRaCBvhoYRfYQlaH'],
#                      10: {   8: 'xYgmfOPxVMMbTfKfAuLq',
#                              9: 'XIayVZbZvbDfeLJMBqyz',
#                              10: [   'MJJalIzYYtKCbZFWkhFU',
#                                      'uGhoQNvouwoniMjvJcER']}}})

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'TAmteKwtlfNUftWluwLv',
#     2089,
#     4841,
#     -885348961846.2,
#     'xDmKeHIgzsBRJjVgDHOj',
#     'rrobinson@phillips.biz',
#     'http://watson-durham.com/explore/main/blog/faq.html',
#     'https://www.jones.com/wp-content/category/',
#     -12594760204.336,
#     'siiHGiydfeoyFxWIxwpy',
#     'https://long.info/faq.html',
#     'yaJdnVvJaoVPIHmvhCzI',
#     datetime(2010, 8, 28, 19, 56, 13))

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

fake.pybool()
# False

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'nfrVdCNcucCybnbBFTbE',
#     'nqtBTJwrbvtfKSoYFOYD',
#     'WDFnroKYBQSYBneKJutA',
#     'https://www.whitney.biz/main.asp',
#     'vZUvAvVgzvoFNchQJphm',
#     Decimal('-750403287.76'),
#     5760,
#     Decimal('435493.566962184'),
#     'ywilliams@hotmail.com',
#     'dzxpEwpMQLWZpKGPxDwo',
#     'uwilliams@yahoo.com',
#     'https://www.smith.biz/']

fake.pyint()
# 8371

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