faker.providers.pythonΒΆ

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

fake.pyint()
# 7079

fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# {   'age': 'michaelrobinson@hotmail.com',
#     'beyond': 'zlWyLIibaiLysmfnlVle',
#     'decide': 'DcxVqugdcuoXlKvvMlZx',
#     'degree': 'sEjRhWprKPilbSUjYjur',
#     'despite': 9604,
#     'fly': Decimal('37166716.12759'),
#     'kind': 'MrWYiGwbOTSiycUZHPCf',
#     'seek': 'https://www.king.com/blog/posts/app/privacy.htm',
#     'special': 32,
#     'such': 'vincent61@yahoo.com',
#     'than': 2771,
#     'themselves': Decimal('-59308.48942'),
#     'those': 26487397.949032}

fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# (   'NpeVqBLyHfiduizBhvCw',
#     891,
#     8944,
#     'OISqZLAaFuSRyLMpPWwU',
#     'stephaniecollins@hendrix.com',
#     'QAdcafDsEqhjfsgioKSF',
#     'WLKVrqFRxmNXoEFmdlOq',
#     9625,
#     datetime.datetime(2002, 2, 20, 8, 36, 19),
#     'https://www.nelson.com/terms.asp',
#     'cCMDMhoBmphEXjqPhzmM',
#     8703)

fake.pybool()
# False

fake.pystruct(count=10, *value_types)
# (   [   'LlBIEqhMiIogmLjDXDlR',
#         'iOrrCIRyfSYYTnZBogyb',
#         5441,
#         datetime.datetime(1989, 7, 18, 21, 3, 53),
#         'mwilson@wallace-miller.info',
#         'gEHJXpTBDyIzxZMlIVrM',
#         'nPevrtgtxdzsAKuXJiop',
#         4338,
#         'BBhdHlmoXoeffXkaxaat',
#         810.267971455136],
#     {   'feeling': datetime.datetime(1991, 5, 29, 23, 48, 55),
#         'fine': 'xzjXzLJnTvbueGflsueu',
#         'kid': datetime.datetime(1998, 11, 19, 20, 0, 57),
#         'population': 'http://ramos.com/author.asp',
#         'prevent': 'SGKSCStLDKcivGaxVDby',
#         'process': 2071,
#         'show': 'TktouWBlWpHohntRUVBI',
#         'street': 'EUDdrcetIykSHFkiJEgh',
#         'team': 'iYyZpFbZMJhShhxViMHG',
#         'young': 'mxqVQKPoCHVOMJUFUSlx'},
#     {   'arm': {   9: 4797,
#                    10: ['joUiXfcRRWSElIkXpCVJ', 9921, 84.315],
#                    11: {   9: 771,
#                            10: 'ZRxDquiKnrHlHPlPIYPE',
#                            11: [   datetime.datetime(2009, 9, 5, 5, 15, 41),
#                                    'HVkxaHGosKOaQrVNlMNC']}},
#         'hit': {   0: Decimal('55100.4324410016'),
#                    1: ['lFOdcWITrNlfQNMudmrn', 'uEhVhjYIRPULERTTboua', 2097],
#                    2: {   0: 'SihiMntqOiYQTcqGsFvF',
#                           1: -941355882467151.0,
#                           2: [   Decimal('-516668666.7281'),
#                                  datetime.datetime(1984, 2, 26, 20, 30, 9)]}},
#         'in': {   8: 'andrea75@gmail.com',
#                   9: [   'tffFUcxxhpTZpTYKTOuz',
#                          Decimal('-7.741928676228'),
#                          Decimal('-2671368.0')],
#                   10: {   8: 6285256.19,
#                           9: 'rjPcZsGZaUGuAUcqNLks',
#                           10: [6094, -903.24489980291]}},
#         'its': {   5: 'CtYSGSpCEcRCRjcWfite',
#                    6: [   1798,
#                           -13.38190396,
#                           'http://www.sawyer.com/posts/wp-content/homepage/'],
#                    7: {   5: 'jCCHNxXjuOCvoUmTxzXz',
#                           6: Decimal('56.1324380575657'),
#                           7: [3231, datetime.datetime(1991, 2, 28, 5, 9, 59)]}},
#         'likely': {   4: -56669991801326.0,
#                       5: [   -69119935.262,
#                              'http://www.powell-vasquez.biz/',
#                              3482],
#                       6: {   4: 'icJeUBpqtouPdvSYPsWB',
#                              5: 7436633609763.8,
#                              6: [-8.149767, 'jgibson@robinson-smith.com']}},
#         'nature': {   7: datetime.datetime(1989, 9, 15, 9, 11, 26),
#                       8: [   'WrVnKlRdhhWNWOOsECBM',
#                              'TsuBxThgDSpDHVdqDOFo',
#                              datetime.datetime(1983, 12, 19, 16, 11, 41)],
#                       9: {   7: datetime.datetime(1974, 4, 22, 8, 43, 7),
#                              8: 'dcolon@montgomery.net',
#                              9: [5083, 'http://olsen.com/index.html']}},
#         'over': {   6: 'vMSczFZPTKGslDyxhiHF',
#                     7: [-7864.3015, 'kHHcQhJjpffQMFDjzTkb', 1566],
#                     8: {   6: 'http://www.wilson.com/index.htm',
#                            7: 9159,
#                            8: ['UCauaKUjYukVRdhhtvuq', 'jenny52@hotmail.com']}},
#         'piece': {   1: Decimal('-84.8'),
#                      2: [   'http://www.moore.net/',
#                             'mCaSakrIyAasdtIVxPMF',
#                             Decimal('627786.456')],
#                      3: {   1: datetime.datetime(2010, 9, 29, 20, 1, 30),
#                             2: 'RccdOdhUHTKxgrzOoBFG',
#                             3: [   'txIQmhQbNSpGJKPQBMnK',
#                                    'OtsgOzDblwuetrjxzADs']}},
#         'sit': {   3: 'UEcsBKryRQFXjKIeNqBO',
#                    4: [Decimal('1698737101.34'), 4555, 'PmxiPmGkqnagvzYflNlZ'],
#                    5: {   3: 7418,
#                           4: 'tWwHIFbxYvoYiptvPALm',
#                           5: [8674, 'vvxHOZupaVFkmZUdRjyo']}},
#         'social': {   2: -43903.12,
#                       3: [   9960,
#                              'https://browning-donaldson.com/search/blog/privacy.htm',
#                              'http://anderson.com/posts/login/'],
#                       4: {   2: 'yZkqEEANyvmAIVfjHBLO',
#                              3: 7190,
#                              4: [   Decimal('-312310.214'),
#                                     'jPniLcsKOvJpecLXsPCd']}}})

fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# {2338, 'ZFfnztDDELQQwGLPBsvh', -472066955.55457, Decimal('-3474420444930.8'), datetime.datetime(2016, 3, 18, 3, 49, 58), 'ZbGZoGSChkIRtFcRMDWt'}

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

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

fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [   2019,
#     'knpNyfvwPCNdAOKyWlkQ',
#     datetime.datetime(2007, 5, 17, 15, 22, 6),
#     'ilaWvWmRZdYPRUXUoFRY',
#     3487,
#     -2980096255.48,
#     'http://washington.net/home.jsp',
#     'ArTGobMIyedVNnUAUlnr']

fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [   'http://www.hayden.com/register/',
#     'https://www.jennings.com/',
#     7447,
#     2128,
#     49.35396,
#     datetime.datetime(2001, 8, 10, 13, 1, 23),
#     'robertroth@yahoo.com',
#     -238853662582269.0,
#     'TvAtNFHuRasOtkufxbjn',
#     'arthurbowers@gmail.com',
#     -9477098478.97,
#     datetime.datetime(2009, 3, 11, 22, 18, 5)]