faker.providers.pythonΒΆ

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'assumenda': 'http://www.stokes.com/',
#     'molestiae': datetime(1990, 9, 10, 9, 55, 29),
#     'molestias': 1868320541930.8,
#     'nesciunt': 'https://www.chaney-smith.info/categories/category.asp',
#     'non': Decimal('85365790.29'),
#     'perspiciatis': 'gina43@wilson-pollard.com',
#     'placeat': datetime(2000, 12, 18, 22, 3, 49),
#     'porro': 'cUzdCXwfwBGikaQuoAvg',
#     'quae': Decimal('8727.59280353'),
#     'tenetur': 5993,
#     'veniam': 'http://www.johnson-allen.info/'}

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'ELSCtOLCrkoqFrwwYQwX',
#     Decimal('58130762.11147'),
#     'https://www.shaw.com/',
#     'PtoeDDPWhbAzaYRIGGgr',
#     'https://smith-jones.com/about.html',
#     'https://www.simpson.com/search/wp-content/post/',
#     'WicYORjugXdOGrgATWHN']

fake.pyint()
# 5865

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   7106,
#     'JdSRqOCAiuSJjhusmTLw',
#     892303025220.0,
#     9799,
#     6507,
#     Decimal('5541912.249'),
#     'ghLFQDhJzGcJZqDoKPUP',
#     'http://www.holland-campbell.net/',
#     'KZdrjJtYNwGsveSwnOTm',
#     'XUCakLoLWIRqdTByxdBM',
#     Decimal('252.2597'),
#     Decimal('-28160813.3498776'),
#     'IPeVpweXQyTAZrVqSuLl',
#     'bryan21@hall.com')

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {datetime(1985, 12, 8, 8, 51, 2), datetime(2006, 8, 18, 6, 22, 25), 'nKpvLbLdHyfgmpsrSVkf', 'KglMDDUpIidnyJdzLdCn', 9548, Decimal('-7.303081'), 6574, 'fRjXUVkzNkyUIUNlZMWn', 'andrewbaker@yahoo.com', 'http://www.rodriguez.com/explore/tag/home/', 'ygVfqkafxlzuDoeltOWk', 2002, 'SiZtVPfnGhDktYKFWXZk', Decimal('8.605255')}

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

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

fake.pybool()
# True

fake.pystruct(count=10, *value_types)
# (   [   'antonio18@yahoo.com',
#         Decimal('522521741.9324'),
#         'thanson@yahoo.com',
#         'ipSgWkJRndvkBjHysmLP',
#         'dennisdeanna@jones.com',
#         2701,
#         Decimal('9331.65041097'),
#         Decimal('8.61965772540577'),
#         99727896.4913237,
#         'brianmcconnell@yahoo.com'],
#     {   'autem': 'aNqAoiFyhaAVdKaVJiST',
#         'corrupti': 'zysnjwXTJOWjkxcwbqLr',
#         'deleniti': 7100,
#         'dolorum': 'https://www.meyer.com/',
#         'ea': 5378,
#         'eius': 'http://smith.com/category/homepage/',
#         'eum': datetime(2016, 12, 25, 7, 54, 46),
#         'facere': Decimal('-7213.53854'),
#         'in': 'https://www.hicks-marshall.info/main/post.htm',
#         'maxime': Decimal('-859653790.3654')},
#     {   'consequatur': {   1: -1299019.9,
#                            2: [   Decimal('445691.433746601'),
#                                   6307,
#                                   'qnAhLFYGEypjduwdiCuv'],
#                            3: {   1: 'http://www.page.com/main.htm',
#                                   2: datetime(1973, 6, 10, 21, 50, 34),
#                                   3: [7454.675, 'FbdMOMmhoOrvrjCiRKkh']}},
#         'ea': {   8: datetime(1996, 3, 31, 6, 26, 9),
#                   9: [   4859,
#                          'tPgEQtsFSmrXQazfsGpM',
#                          datetime(2012, 6, 8, 2, 56, 15)],
#                   10: {   8: 'JZNyIzqPycypSJpGXeUG',
#                           9: 79304473756735.0,
#                           10: [   'cSdEfTNZtIXKQFwclnYU',
#                                   'YEVNhvpxfzvmmbqSCzCq']}},
#         'incidunt': {   7: 'PEKMHxgYeFKNHcuCFvBD',
#                         8: [   2.89,
#                                'iGggzSIizjKJKrGeMumG',
#                                Decimal('-9869059565235.0')],
#                         9: {   7: datetime(2014, 11, 3, 15, 11, 54),
#                                8: 3913,
#                                9: [625.1, 'ScmWMMTWwhmXcVHiCpEO']}},
#         'maiores': {   5: 'http://nguyen-king.com/login/',
#                        6: [   7714,
#                               'EpaKLejlnlNWfbRIAswG',
#                               'http://www.romero-chambers.com/'],
#                        7: {   5: 'jrzAKiiOjBzBxZVbDMkW',
#                               6: 388963472270.0,
#                               7: [   'fZxLzwQAhNrSGVbfIjxB',
#                                      datetime(1996, 8, 20, 1, 55, 28)]}},
#         'minima': {   9: 'christophermiles@hotmail.com',
#                       10: [   'UmhlIKeuiQvSOcfMuYLr',
#                               Decimal('-692825711395.13'),
#                               'ryan82@obrien-summers.info'],
#                       11: {   9: datetime(1991, 8, 12, 20, 10, 59),
#                               10: 9368,
#                               11: [   'http://www.henry.com/category.php',
#                                       'hqeDJYRbieCxLdpogSWb']}},
#         'nulla': {   0: 'hTZUXvDHIPUbqzcbaWkf',
#                      1: [2577257.8, 'iAUjiaATKJmcDJVdrQSr', 3043],
#                      2: {   0: 'HRAPdlsraMbOgbWYcVns',
#                             1: 'rgray@hotmail.com',
#                             2: [Decimal('-75271666415.6744'), 48057845.86]}},
#         'odio': {   4: 'https://johnson.com/terms.htm',
#                     5: ['hJzdvWcOrUOZlifYTBOK', 2083, 'KnmjbzyoURjxjHVBVbGF'],
#                     6: {   4: 'yltlzwZtTGjxDEHjOrRz',
#                            5: 'JovYaXrmPYQQRgTAXhnn',
#                            6: [   'bCrAOhzTmGBcpzMMUBHs',
#                                   'rLdnAUYQwEDxVMLOGxGj']}},
#         'perferendis': {   6: 'OLDgwVGiMGZjbEyLFGQk',
#                            7: [   'SCXPjTvUvZPiCENjDjJo',
#                                   datetime(2014, 5, 26, 13, 51, 55),
#                                   'http://baxter-campbell.biz/blog/tags/privacy/'],
#                            8: {   6: 'fefacxmnkSQoPMRPJdoN',
#                                   7: 'InbvkFRXzewPYeHiMsoh',
#                                   8: [7108.488, 'EzePKyrPMsPxNbLrfgSv']}},
#         'sint': {   3: -89.675,
#                     4: [   'https://washington-clark.net/',
#                            'james65@palmer.org',
#                            'UpGNCvCPSeNviWMmVZNq'],
#                     5: {   3: datetime(1971, 12, 2, 23, 36, 50),
#                            4: 8685,
#                            5: [8255, 'cntUvIGaFyWioouzdjBQ']}},
#         'voluptatibus': {   2: 'sstevens@gmail.com',
#                             3: [   'IbdDzUoyyCOJgNvqjkPW',
#                                    'TyQRFwOiDVDcOQcMWLqC',
#                                    'parsonsronald@marshall.biz'],
#                             4: {   2: 'EqMoSySpzYWcLuiHCfLe',
#                                    3: 'sFPsUppFyTEVtJXbdmfu',
#                                    4: [   datetime(1999, 3, 30, 4, 8, 45),
#                                           'vjXJcIAMjmszSIJHOANG']}}})

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# (   datetime(1983, 12, 30, 0, 28, 5),
#     4517,
#     'GwpjCoVWdFxJSoRbLXRV',
#     5765,
#     datetime(1978, 12, 19, 16, 42, 6),
#     -49.526,
#     Decimal('0.52328'),
#     'jXMoHaKDHzAfPZYbfsWZ',
#     'zmcdonald@yahoo.com',
#     'pWzrtTetMDzcZSREoLpi',
#     'bradley06@kennedy.org',
#     'finleytiffany@garcia.com',
#     6876,
#     'KlOzsymrsXjVFnhzocMa')

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