Language fa_IR¶
faker.providers.address
¶
fake.latitude() # 51.097982
fake.street_name() # رسته کوه
fake.address() # 4492 آرتین پل }, کرمانشاه 495298
fake.street_address() # 9790 مهدیس بلوار سوئیت 874
fake.postcode() # 52529
fake.longitude() # -20.887248
fake.country() # بحرین
fake.geo_coordinate(center=None, radius=0.001) # -165.353196
fake.secondary_address() # سوئیت 923
fake.street_suffix() # میدان
fake.city_prefix() # شهر
fake.city_suffix() # Ville
fake.building_number() # 572
fake.city() # e
fake.state() # قزوین
faker.providers.barcode
¶
fake.ean(length=13) # 1924491011163
fake.ean13() # 0082283141359
fake.ean8() # 88544717
faker.providers.color
¶
fake.rgb_css_color() # rgb(50,127,198)
fake.color_name() # DarkKhaki
fake.rgb_color_list() # (131, 186, 124)
fake.rgb_color() # 107,66,127
fake.safe_hex_color() # #337700
fake.safe_color_name() # navy
fake.hex_color() # #41060e
faker.providers.company
¶
fake.company() # خسروجردی-حریریان
fake.company_suffix() # PLC
fake.catch_phrase() # Future-proofed contextually-based paradigm
fake.bs() # productize vertical platforms
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None) # 612
fake.credit_card_full(card_type=None, validate=False, max_check=10) # Voyager آرتین سعیدی 869937629855803 11/17 CVC: 159
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y") # 12/16
fake.credit_card_number(card_type=None, validate=False, max_check=10) # 869997170760208
fake.credit_card_provider(card_type=None) # American Express
faker.providers.currency
¶
fake.currency_code() # SOS
faker.providers.date_time
¶
fake.date_time_ad() # 0423-04-14 01:47:45
fake.month() # 11
fake.am_pm() # PM
fake.iso8601() # 1986-07-12T11:02:16
fake.date_time_this_century() # 2005-08-11 10:39:29
fake.date_time() # 1971-08-25 03:47:58
fake.month_name() # August
fake.date_time_this_month() # 2016-03-01 05:40:54
fake.date_time_this_decade() # 2012-10-28 20:23:10
fake.day_of_week() # Tuesday
fake.day_of_month() # 29
fake.time(pattern="%H:%M:%S") # 13:12:46
fake.date_time_between(start_date="-30y", end_date="now") # 2004-05-13 19:49:44
fake.unix_time() # 1278222481
fake.date_time_this_year() # 2016-03-14 08:22:26
fake.timezone() # America/Recife
fake.century() # IX
fake.date(pattern="%Y-%m-%d") # 2011-12-15
fake.year() # 1996
faker.providers.file
¶
fake.mime_type(category=None) # model/x3d+xml
faker.providers.internet
¶
fake.ipv4() # 75.91.125.1
fake.url() # http://.com/
fake.company_email() # t@.com
fake.uri() # http://.biz/index.jsp
fake.image_url(width=None, height=None) # http://www.lorempixum.com/1001/847
fake.tld() # org
fake.free_email() # .@gmail.com
fake.slug(*args, **kwargs) # esse-perspiciatis
fake.free_email_domain() # hotmail.com
fake.domain_name() # .net
fake.uri_extension() # .html
fake.ipv6() # 7e0f:d5fa:4255:e3f4:7c24:1341:5287:a199
fake.safe_email() # s@example.net
fake.user_name(*args, **kwargs) # h
fake.uri_path(deep=None) # explore/list
fake.email() # .@yahoo.com
fake.uri_page() # privacy
fake.mac_address() # a0:c9:8a:c8:75:8a
faker.providers.job
¶
fake.job() # Database administrator
faker.providers.lorem
¶
fake.text(max_nb_chars=200) # Atque non reiciendis veritatis. Ut laudantium ut voluptatu m aut ex. Autem dolor officia cumque veritatis autem et de bitis. Cupiditate iure omnis ratione totam ut.
fake.sentence(nb_words=6, variable_nb_words=True) # Assumenda impedit aut laudantium earum ipsum voluptas.
fake.word() # praesentium
fake.paragraphs(nb=3) # [u'Et reprehenderit explicabo perspiciatis. Similique et d eserunt est unde dolor.', u'Dolorum incidunt voluptate vol uptatum. Dolores dicta reiciendis saepe ea tempora exceptu ri porro. Perferendis dolorum quo est architecto quis non adipisci. Ut animi ab et quos voluptas perferendis.', u'Il lo maiores nihil error rerum iure consequuntur. Soluta opt io repellendus et laborum. Beatae consequatur corrupti ver o sed eum atque.']
fake.words(nb=3) # [u'fugit', u'est', u'rerum']
fake.paragraph(nb_sentences=3, variable_nb_sentences=True) # Iure vero non voluptas placeat voluptatibus ipsum non quis . Voluptatem saepe quaerat quia non quia ea. Sint et aut u t veniam.
fake.sentences(nb=3) # [u'Rerum soluta magnam hic at autem.', u'Et dicta officia quo iste totam aut.', u'Eligendi molestiae temporibus mole stiae et aut nisi quas.']
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True) # uBqepbRLo4
fake.locale() # cn_BW
fake.md5(raw_output=False) # 0a6e09016040c85a7a9592cc0fd4a8a3
fake.sha1(raw_output=False) # 7fc707b3136de875efedc153563d81aacfca49b0
fake.null_boolean() # True
fake.sha256(raw_output=False) # dd5b1f020f0dcbc89465291013100c9308d6f35d33ed844cfebb406399 0a4db7
fake.country_code() # TM
fake.language_code() # en
fake.boolean(chance_of_getting_true=50) # True
faker.providers.person
¶
fake.last_name_male() # شبیری
fake.name_female() # آرمین یزدی
fake.prefix_male() # جناب آقای دکتر
fake.prefix() # سرکار خانم دکتر
fake.name() # حنانه عبدالمالکی
fake.name_male() # سوگند هوشیار
fake.first_name() # دانیال
fake.first_name_male() # آوا
fake.first_name_female() # علی اصغر
fake.last_name_female() # نوبختی
fake.last_name() # کمالی
fake.prefix_female() # جناب آقای دکتر
faker.providers.profile
¶
fake.profile(fields=[]) # {'website': [u'http://www..org/', u'http://www..org/', u'h ttp://www..com/', u'http://www..com/'], 'username': u'z', 'name': u'\u0627\u0645\u06cc\u0631 \u0639\u0644\u06cc \u06 44\u0627\u0686\u06cc\u0646\u06cc', 'blood_group': 'B-', 'r esidence': u'040 \u062d\u0633\u06cc\u0646 \u06a9\u0648\u06 86\u0647 \u0633\u0648\u0626\u06cc\u062a 981\nr, \u0647\u06 31\u0645\u0632\u06af\u0627\u0646 9755761629', 'company': u '\u062c\u0646\u062a\u06cc LLC', 'address': u'65055 \u0633\ u0645\u0633\u0627\u0631 \u0628\u0644\u0648\u0627\u0631 \u0 648\u0627\u062d\u062f 204\ni, \u0633\u0645\u0646\u0627\u06 46 5290947375', 'birthdate': '1984-10-27', 'sex': 'M', 'jo b': 'Engineer, biomedical', 'ssn': u'532-74-0347', 'curren t_location': (Decimal('50.2306415'), Decimal('10.410458')) , 'mail': u'.@yahoo.com'}
fake.simple_profile() # {'username': u'00', 'name': u'\u0645\u062d\u0645\u062f \u0 637\u0627\u0647\u0627 \u0631\u0628\u0627\u0646\u06cc', 'bi rthdate': '1971-02-13', 'sex': 'F', 'address': u'4221 \u06 33\u0645\u0627\u0648\u0627\u062a \u0686\u0647\u0627\u0631 \u0631\u0627\u0647\ni, \u06cc\u0632\u062f 5442918900', 'ma il': u'65@yahoo.com'}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types) # set([u'http://.net/search.asp', Decimal('-771705.428322'), Decimal('32329059241.8'), u'Facere et eum eius.', u'Excep turi.', u'.@hotmail.com', datetime(1998, 3, 25, 20, 40, 7) , 264302774447090.0, u'Laudantium.', u'Nulla nesciunt.', u 'Beatae eum.', u'http://www..com/search/'])
fake.pystr(max_chars=20) # Dolorum voluptas.
fake.pyfloat(left_digits=None, right_digits=None, positive=False) # -65417.65
fake.pystruct(count=10, *value_types) # ([-13006790123084.0, u'Et non molestiae in.', Decimal('-4. 82011717051E+12'), u'Praesentium eius.', u'Quia eaque sed. ', 500.533, u'Sit veritatis.', u'Et possimus quidem.', dat etime(1994, 1, 12, 10, 24, 38), u'http://.com/'], {u'quibu sdam': datetime(2011, 9, 6, 11, 30, 28), u'est': 152, u'nu mquam': -1242570261.0, u'rerum': u'Laudantium a rerum.', u 'dolore': 8614, u'in': 386, u'molestias': u'24@.org', u'vo luptate': -944488370.0, u'aut': datetime(1983, 11, 27, 4, 28, 47)}, {u'est': {8: {8: [3582.49, datetime(1987, 2, 3, 4, 59, 11)], 6: u'Similique qui dolor.', 7: u'Occaecati po ssimus.'}, 6: 6407, 7: [u'Est et omnis.', 5251, datetime(1 999, 3, 10, 12, 54, 26)]}, u'fugit': {8: 3362, 9: [u'Id no n similique.', u'.@.info', datetime(2010, 5, 27, 21, 7, 17 )], 10: {8: u'http://.com/post/', 9: 3447, 10: [u'http://w ww..com/blog/main/', u'.@.net']}}, u'sed': {2: u'24@.com', 3: [u'.@yahoo.com', -82644912678846.2, 430957.55487169], 4: {2: 3302, 3: 3161, 4: [u'http://.info/', u'71@.info']}} , u'rerum': {9: u'Dolorem architecto.', 10: [u'http://.com /', u'Qui quo a aliquam.', u'Quisquam sint enim.'], 11: {9 : 5933, 10: u'Est quas nihil.', 11: [datetime(2003, 8, 26, 20, 19, 30), u'Et ut quidem.']}}, u'quisquam': {1: u'http ://www..org/', 2: [-1792222821.72, datetime(1973, 10, 27, 8, 26, 16), u'Ut ipsam dolorum.'], 3: {1: datetime(1996, 9 , 8, 13, 21, 9), 2: -94724.727957, 3: [6991967991.0, u'79@ yahoo.com']}}, u'voluptatem': {4: datetime(1970, 7, 2, 5, 55, 48), 5: [Decimal('-8376695.341'), u'Ut cupiditate.', D ecimal('9925.256')], 6: {4: Decimal('1171465070.18'), 5: u 'http://.info/tag/category/register.php', 6: [Decimal('-18 0826316853'), datetime(2011, 5, 4, 11, 4, 47)]}}, u'explic abo': {0: 2731, 1: [u'Officia rerum.', u'Sunt voluptas qui .', 232913071.407495], 2: {0: u'Autem.', 1: u'Et odit temp oribus.', 2: [datetime(1973, 8, 7, 13, 15, 34), u'Esse sit facere.']}}, u'et': {8: [8255, u'Alias magni sit.', u'Non ipsam ducimus.'], 9: {8: u'Amet deserunt.', 9: [u'Aut et hic dolorum.', 5989], 7: u'http://.org/tags/app/wp-content /privacy/'}, 7: u'a@.com'}, u'consequatur': {3: u'Culpa co nsequatur.', 4: [1795, 9959, u'Rerum vero ut et in.'], 5: {3: 3070875949512.0, 4: u'Illo harum ea.', 5: [669, u'Tene tur delectus.']}}})
fake.pydecimal(left_digits=None, right_digits=None, positive=False) # -91666319573.8
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types) # [u'http://www..com/index.html', u'http://www..info/explore /register.html', u'Eveniet eum quos.', -6.9588499605, u'Qu i ex est pariatur.', u'Iure sunt ipsa nemo.', u'Repellat n eque.']
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types) # (u'http://.com/app/explore/posts/login.html', u'http://www ..com/faq.html', 7788, 9998, 59306574313.6345, datetime(20 15, 4, 30, 12, 34, 52), u'Voluptatibus quos.', 66624.7359, u'Quod blanditiis.', u'Minima iste dolor.')
fake.pybool() # False
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types) # set([u'Neque eum molestiae.', u'Dolor hic nihil.', u'http: //.net/faq/', u'Velit assumenda.', u'Hic est ducimus ea.', datetime(1988, 11, 26, 17, 27, 53), u'Voluptatibus maxime .', 3802, u'Sit placeat nisi.', u'Consequatur.', u'Harum a ut omnis.'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types) # {u'est': Decimal('521.23506829'), u'fuga': u'Laborum possi mus.', u'eaque': u'Molestiae nihil.', u'libero': 8315, u'a utem': u'Blanditiis.', u'nostrum': 5.561626, u'tenetur': - 2456.961288, u'nihil': u'Culpa ea minima et.', u'qui': u'4 7@yahoo.com', u'officiis': Decimal('114113178.0'), u'minus ': datetime(2005, 7, 9, 12, 41, 42), u'distinctio': 5625}
fake.pyint() # 4839
faker.providers.phone_number
¶
fake.phone_number() # 0921 791 4086
faker.providers.ssn
¶
fake.ssn() # 242-07-8682
faker.providers.user_agent
¶
fake.mac_processor() # U; PPC
fake.firefox() # Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; rv:1.9.3 .20) Gecko/2012-03-30 02:59:57 Firefox/6.0
fake.linux_platform_token() # X11; Linux i686
fake.opera() # Opera/8.34.(Windows NT 5.2; en-US) Presto/2.9.171 Version/ 12.00
fake.windows_platform_token() # Windows 98
fake.internet_explorer() # Mozilla/5.0 (compatible; MSIE 5.0; Windows NT 5.1; Trident /4.1)
fake.user_agent() # Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_3) AppleWebKi t/5330 (KHTML, like Gecko) Chrome/14.0.813.0 Safari/5330
fake.chrome() # Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_8_4) AppleWebKi t/5340 (KHTML, like Gecko) Chrome/14.0.857.0 Safari/5340
fake.linux_processor() # i686
fake.mac_platform_token() # Macintosh; U; PPC Mac OS X 10_5_0
fake.safari() # Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_6_2 rv:2.0; en- US) AppleWebKit/534.33.6 (KHTML, like Gecko) Version/5.0.4 Safari/534.33.6