faker.providers.pythonΒΆ

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   9243,
#     'IBEHIlHDtnznnSYUpfkn',
#     'OfWFKpIBRJzjQvrcegGm',
#     'hiBptMCHMiMuRWRSmafu',
#     'nrichardson@gmail.com',
#     datetime.datetime(2008, 5, 16, 17, 13, 32),
#     5985451371002.0,
#     9050,
#     'FiXDPVnoYduZhcvLhGxw',
#     'TLkZFlFdLvTezvvATjfD',
#     'http://bray.com/list/tags/search.php',
#     datetime.datetime(1991, 9, 24, 10, 35, 41)]

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   1444,
#     2118,
#     'hNnpRgxAKJmLhccqRdqO',
#     'RnaumXsvsWcQUtrkSrTr',
#     'mttCEjUHcEuNJIzzjtYA',
#     'kPJCCYFwRVglCfxdZfix',
#     'HwNCuUqSDDTEQjmLlktI',
#     'LOwmXpAkYOyBPdbiQsHf',
#     'http://petty-gonzalez.com/search/explore/wp-content/privacy/',
#     'SwaffEFytiUIiCCZAMno')

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

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {'https://www.hicks.com/', Decimal('3416910301032.0'), 'TkPYztzyvFpqqblVtySs', 'palmerjoel@gmail.com', 'dmstFTsnIoQOwyzCuRnJ', datetime.datetime(1998, 9, 30, 9, 17, 30), -137074.4280836, 9263, 'https://www.riggs.com/explore/blog/main.html', 'http://gutierrez-garcia.com/categories/category/author/', 'http://walker.org/explore/categories/tags/home/'}

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

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'enim': Decimal('-30468215.301'),
#     'expedita': 'DsmmLguUzphbUtsHbiGC',
#     'harum': 'lSzWMFLHvBOrZCGNFKNO',
#     'inventore': 'ZXdZMwYQeNhUzNRCXIYE',
#     'molestiae': 'lHShfzHGrJOHCKcuGEzb',
#     'nihil': 'wqqWzOYxtzwALWyEFPyn',
#     'officia': 'ximTbddBVLTTUeCjCtTm',
#     'quis': 'mhess@gmail.com'}

fake.pyint()
# 984

fake.pybool()
# False

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

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'kLBMUbtZvTAdAMsnONWY',
#     'CvZlYrtQcDbvnSoKeZIU',
#     datetime.datetime(1975, 5, 5, 6, 8, 38),
#     'sAltMIqOGZrXQsCcLHas',
#     Decimal('-61853168.644534'),
#     'RcazvGvEsrAdVYTwwxzy']

fake.pystruct(count=10, *value_types)
# (   [   'UwvVICDBVCyetxJAfoMw',
#         'matthew31@hotmail.com',
#         'hUYrCiCeloXlyUacTDfc',
#         'loLkwdTWMynFETbzzBTX',
#         Decimal('8991362318.3907'),
#         2983,
#         'ONNuPIxztarIhFoaoCoB',
#         'cmartin@jenkins.org',
#         'qzMQNuJlhHptGVzFVbZS',
#         'http://jones.biz/'],
#     {   'atque': 'https://gordon-hayes.com/',
#         'ducimus': 'qhukwvFWvBahwfyYDMMb',
#         'error': 'https://www.flowers.com/',
#         'expedita': 'https://www.white-wells.org/category/',
#         'impedit': 'XTRGFYgFNLCgNFgTSNMD',
#         'iste': 'XNxihKTZzwgOJISHFFAj',
#         'natus': 'DuwfOSHyAFdwIVktJNQS',
#         'quam': datetime.datetime(1984, 9, 26, 20, 11, 30),
#         'quisquam': 'AJbVNUnagjlWOOkVAcaS',
#         'quo': 'PECmxJKuGtYGoBRSIkiq'},
#     {   'animi': {   0: 4537,
#                      1: [   -473241613316176.0,
#                             'oVFwxFIhyMxcrSYxNEAI',
#                             'zXepUmBKIYskIeeBAche'],
#                      2: {   0: 2198,
#                             1: 'NBMQKpLQnAoGCtqXpRpF',
#                             2: ['bradley97@gmail.com', 'michael98@gmail.com']}},
#         'aspernatur': {   8: 'vXrPthGtRztsLKAyruzs',
#                           9: [   'https://www.martinez-martin.com/main.htm',
#                                  'vAilUmvhObVhqTdmCHeB',
#                                  'qhutchinson@yahoo.com'],
#                           10: {   8: 'WjIHBQONpXGBIGyENmeD',
#                                   9: 'SdevyokWqlzrvVDVrYgj',
#                                   10: ['QkujCmUelRHDyNOTFHfx', 79927.48623]}},
#         'commodi': {   9: 9923,
#                        10: [   -872716442765877.0,
#                                'https://hill.info/main/main/tag/faq/',
#                                9134],
#                        11: {   9: 2119,
#                                10: 'ZxEwLmcLnIAodeveODGU',
#                                11: [-52467682988.48, 'tWYptpzbKoTLNtoWIFcd']}},
#         'deserunt': {   3: 'yYutXQVVDyiazNJVdkBP',
#                         4: [   'https://www.garcia-fleming.org/homepage.html',
#                                3539,
#                                Decimal('612662126601022.0')],
#                         5: {   3: 'JkfbrSJaKtFSfwiNyRBf',
#                                4: Decimal('835004.41022'),
#                                5: [   'wpImACKYcQlcSniWcvlm',
#                                       'LmHxRdlXRJCcOUSxZorB']}},
#         'dignissimos': {   7: 'VWHQYLnmltNOBRzlYBpT',
#                            8: [   'iYNUfsvfRAtxEESoGGyN',
#                                   'CNBFsNySLjwsLLcjBLXG',
#                                   78362206212.0],
#                            9: {   7: 143652372141.584,
#                                   8: 'eqUkYCLGyvhiPgqOwETA',
#                                   9: [   'https://greene.com/blog/blog/posts/register/',
#                                          -440848732311485.0]}},
#         'error': {   4: 'mkbjYrMICyFCsMIIjTpY',
#                      5: [   'fwrglUYRVRSEIKaKvoDl',
#                             Decimal('-80362.0'),
#                             -41717.324],
#                      6: {   4: 'kcOguIvukcSESXaLnYFZ',
#                             5: 'RjzpzSHhUJbXBETbpuHA',
#                             6: [   datetime.datetime(1999, 12, 30, 21, 59, 5),
#                                    datetime.datetime(1971, 4, 3, 5, 42, 15)]}},
#         'esse': {   1: datetime.datetime(1976, 7, 20, 12, 38, 34),
#                     2: [   'iKadqVLZaOVFDLXxFcuu',
#                            'HEgZFNpwcoANVdXEibEc',
#                            'fXxBvtTSWdKeMJVlkVAN'],
#                     3: {   1: 6159,
#                            2: 'qDQPyegQigCObrIvxrKz',
#                            3: [   datetime.datetime(2005, 11, 27, 8, 44, 58),
#                                   'ZjjSslARDNPtVCTddkje']}},
#         'est': {   2: Decimal('3817495.28'),
#                    3: [   'tfdPyBtCKPvkGoCRobcN',
#                           -35560278307.4,
#                           'rgqNJSMssuFZgKFFwWhT'],
#                    4: {   2: 'XtoQWjAiBmEYpAxQbgAR',
#                           3: datetime.datetime(1986, 4, 27, 6, 40, 8),
#                           4: [2042, 'zJnSDPXNNOwygygaoskT']}},
#         'neque': {   6: datetime.datetime(1978, 6, 3, 11, 9, 7),
#                      7: [   'ZUMcNBcuNeMtGMTIKMyt',
#                             'MdZmVgpeWWqEtwtcPZft',
#                             'GuKIqYIJdNcAtxNETCLG'],
#                      8: {   6: 8154,
#                             7: datetime.datetime(2001, 8, 5, 7, 36, 2),
#                             8: [7618, Decimal('94310577.942')]}},
#         'voluptates': {   5: datetime.datetime(1998, 5, 16, 16, 57, 11),
#                           6: [-11322151.647, 7201, 'aifadTDIINvcfbffHshC'],
#                           7: {   5: 'https://butler-ballard.biz/main/list/search/home/',
#                                  6: 'kylegraham@bennett.com',
#                                  7: [6918, 9607]}}})