Language zh_CN¶
faker.providers.address¶
fake.latitude() # 37.9015445
fake.street_name() # 衡路
fake.address() # 凤英市卫路J座 392104
fake.street_address() # 柏路S座
fake.postcode() # 273537
fake.longitude() # 17.114174
fake.country() # 老挝
fake.city_name() # 西宁
fake.street_suffix() # 街
fake.geo_coordinate(center=None, radius=0.001) # -169.566942
fake.city_suffix() # 市
fake.building_number() # F座
fake.city() # 鑫市
fake.state() # 南湖区
faker.providers.barcode¶
fake.ean(length=13) # 4381534682594
fake.ean13() # 0452293570065
fake.ean8() # 71976402
faker.providers.color¶
fake.rgb_css_color() # rgb(174,156,113)
fake.color_name() # Fuchsia
fake.rgb_color_list() # (213, 43, 90)
fake.rgb_color() # 60,9,208
fake.safe_hex_color() # #88bb00
fake.safe_color_name() # gray
fake.hex_color() # #30b5d4
faker.providers.company¶
fake.company_suffix() # 科技有限公司
fake.company() # 恒聪百汇信息有限公司
fake.company_prefix() # 信诚致远
faker.providers.credit_card¶
fake.credit_card_security_code(card_type=None) # 466
fake.credit_card_full(card_type=None, validate=False, max_check=10) # Voyager 琴 吉 869905822222162 07/19 CVC: 426
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y") # 10/16
fake.credit_card_number(card_type=None, validate=False, max_check=10) # 38267338709653
fake.credit_card_provider(card_type=None) # Discover
faker.providers.currency¶
fake.currency_code() # SLL
faker.providers.date_time¶
fake.date_time_ad() # 0717-12-22 18:01:28
fake.month() # 09
fake.am_pm() # PM
fake.iso8601() # 1992-10-16T07:22:11
fake.date_time_this_century() # 2002-03-08 12:47:26
fake.date_time() # 1987-04-25 01:56:32
fake.month_name() # April
fake.date_time_this_month() # 2016-03-05 15:34:58
fake.date_time_this_decade() # 2014-09-10 17:22:23
fake.day_of_week() # Monday
fake.day_of_month() # 01
fake.time(pattern="%H:%M:%S") # 20:31:37
fake.date_time_between(start_date="-30y", end_date="now") # 1989-08-21 18:33:04
fake.unix_time() # 280766855
fake.date_time_this_year() # 2016-03-14 08:13:59
fake.timezone() # Europe/Bratislava
fake.century() # VI
fake.date(pattern="%Y-%m-%d") # 1983-12-03
fake.year() # 1998
faker.providers.file¶
fake.mime_type(category=None) # image/png
faker.providers.internet¶
fake.ipv4() # 176.79.200.78
fake.url() # http://.com/
fake.company_email() # 12@.com
fake.uri() # http://.org/
fake.image_url(width=None, height=None) # http://placekitten.com/812/89
fake.tld() # com
fake.free_email() # .@yahoo.com
fake.slug(*args, **kwargs) # voluptas-expedita
fake.free_email_domain() # yahoo.com
fake.domain_name() # .net
fake.uri_extension() # .html
fake.ipv6() # fb5a:8dda:def9:94a1:e571:82dc:382b:8c11
fake.safe_email() # .@example.net
fake.user_name(*args, **kwargs) # .
fake.uri_path(deep=None) # tags/search
fake.email() # .@.com
fake.uri_page() # privacy
fake.mac_address() # d5:75:21:54:56:ea
faker.providers.job¶
fake.job() # Garment/textile technologist
faker.providers.lorem¶
fake.text(max_nb_chars=200) # Soluta minus laborum velit quae. Aperiam delectus neque do lorem. Eos impedit amet ipsa aut et dolorum voluptates nos trum. Perspiciatis esse quo et accusamus quae.
fake.sentence(nb_words=6, variable_nb_words=True) # Sapiente dolores quia laborum ex.
fake.word() # repellendus
fake.paragraphs(nb=3) # [u'Voluptatibus sit quia est eligendi rerum magnam. Cumque quos magnam possimus animi eaque omnis aut aut. Et et est suscipit rem hic. Dolore reprehenderit repellendus culpa nostrum.', u'Aperiam nam voluptatibus ipsam eveniet incidu nt ut. Error et voluptatem et dolore aut ducimus ut. Ut ul lam voluptates deleniti maxime eos qui. Aut dolorum dignis simos qui dolores possimus aperiam.', u'Expedita quis quas i odio rem laboriosam dolores animi. Est voluptatum commod i eveniet rerum quibusdam est esse.']
fake.words(nb=3) # [u'consectetur', u'in', u'animi']
fake.paragraph(nb_sentences=3, variable_nb_sentences=True) # Aut distinctio est id. Non dolor nemo et quia vel dicta vo luptates. Velit magni voluptatum tempore ut odio.
fake.sentences(nb=3) # [u'Inventore est dolores harum quod aut consequatur.', u'E t illum modi consequatur et qui non id qui.', u'Expedita u t ut voluptas quidem impedit itaque similique eum.']
faker.providers.misc¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True) # mUF*Ji#I3y
fake.locale() # fr_KW
fake.md5(raw_output=False) # fb6a73de099981746144a4c8461f69fb
fake.sha1(raw_output=False) # 0e387887cb0f2043235bd01c85531fa9c2c9434d
fake.null_boolean() # True
fake.sha256(raw_output=False) # 6ee2a98425f33d59b805fff8b91618f13eb5700d387b7b4565500e0b8a 515d56
fake.country_code() # MM
fake.language_code() # el
fake.boolean(chance_of_getting_true=50) # False
faker.providers.person¶
fake.last_name_male() # 孙
fake.name_female() # 濮璐
fake.name() # 咸畅
fake.name_male() # 武丽娟
fake.first_name() # 莉
fake.first_name_male() # 秀兰
fake.first_name_female() # 桂香
fake.last_name_female() # 邱
fake.last_name() # 人
faker.providers.profile¶
fake.profile(fields=[]) # {'website': [u'http://.info/', u'http://www..com/', u'http ://www..com/'], 'username': u'.', 'name': u'\u8861\u7ea2\u 6885', 'blood_group': '0+', 'residence': u'\u5a1c\u5e02\u8 c2f\u8defF\u5ea7 460137', 'company': u'\u4e03\u559c\u79d1\ u6280\u6709\u9650\u516c\u53f8', 'address': u'\u5efa\u5e02\ u987b\u8857v\u5ea7 610168', 'birthdate': '1991-08-31', 'se x': 'F', 'job': 'Facilities manager', 'ssn': u'234-91-6476 ', 'current_location': (Decimal('-32.3291315'), Decimal('- 106.628855')), 'mail': u'09@gmail.com'}
fake.simple_profile() # {'username': u'.', 'name': u'\u76db\u6668', 'birthdate': ' 1999-07-23', 'sex': 'M', 'address': u'\u6842\u82b1\u5e02\u 517b\u8857c\u5ea7 696334', 'mail': u'l@hotmail.com'}
faker.providers.python¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types) # (Decimal('-6.30646762988E+14'), 714366013.554, 9927, u'htt p://.com/tags/faq/', datetime(1983, 11, 18, 7, 0, 18), u'E t non totam aut.', Decimal('13819384.0'), u't@yahoo.com', u'http://www..com/explore/categories/app/home.html', 4827)
fake.pystr(max_chars=20) # Iure expedita ipsa.
fake.pyfloat(left_digits=None, right_digits=None, positive=False) # -284684.4786
fake.pystruct(count=10, *value_types) # ([u'Nemo numquam ut.', datetime(1971, 11, 23, 3, 4, 36), D ecimal('537.41828174'), u'Soluta eaque esse.', u'http://.i nfo/main/category/explore/home.jsp', u'Sit animi itaque.', u'Aut repellat ad.', u'Dolorum tenetur et.', u'Nemo quia sit qui.', u'80@.biz'], {u'non': u'45@.com', u'unde': u'Id molestiae velit.', u'asperiores': u'k@.org', u'fugiat': u 'Magnam unde.', u'incidunt': u'Sint et laborum.', u'sed': u'Atque sed at.', u'qui': u'http://.biz/', u'expedita': u' Molestias cum et.', u'consequatur': 1209, u'aliquam': u'Qu am aut dicta quam.'}, {u'nemo': {9: u'http://100.com/', 10 : [u'.@yahoo.com', u'http://.com/posts/app/wp-content/auth or/', u'Dolores rerum fugit.'], 11: {9: u'Sit neque qui et .', 10: 8701, 11: [9542, u'Sed labore dolores.']}}, u'saep e': {5: 634505272658.2, 6: [6104, 8178, datetime(1974, 3, 4, 7, 7, 1)], 7: {5: Decimal('1.174723509'), 6: u'Adipisci tempore.', 7: [u'http://www..net/faq.htm', u'Et et distin ctio.']}}, u'perspiciatis': {1: u'Alias id reiciendis.', 2 : [u'Nobis numquam.', u'Est atque omnis.', u'Ut suscipit v elit.'], 3: {1: u'Delectus occaecati.', 2: -68.873, 3: [u' .@gmail.com', u'http://www..net/posts/tags/explore/homepag e/']}}, u'laborum': {0: 7124, 1: [-98145.3027324211, 8880, u'Ratione est.'], 2: {0: 5827, 1: u'Hic sint sit soluta.' , 2: [u'Ut omnis.', u'Fuga blanditiis.']}}, u'facilis': {8 : [9088, u'Sequi tempora eius.', u'.@.com'], 9: {8: u'Et s imilique ipsa.', 9: [datetime(1985, 5, 13, 9, 56, 55), 719 8], 7: datetime(1999, 6, 22, 22, 17, 21)}, 7: u'http://.ne t/tag/wp-content/about/'}, u'harum': {2: Decimal('76661402 53.45'), 3: [9412, datetime(2000, 10, 7, 2, 40, 3), 4409], 4: {2: 4900, 3: u'http://.org/login/', 4: [u'http://.net/ main/explore/privacy.asp', u'Ea officiis.']}}, u'qui': {8: {8: [u'Accusantium ullam.', Decimal('359.52')], 6: dateti me(1993, 5, 19, 9, 39, 45), 7: u'Rerum hic molestiae.'}, 6 : u'Quod dolor autem ea.', 7: [u'Enim voluptas est.', date time(2006, 4, 24, 2, 30, 2), u'http://www..info/main.html' ]}, u'et': {3: 879202.0, 4: [datetime(2004, 10, 16, 18, 12 , 18), datetime(1974, 2, 3, 6, 18, 49), 3124], 5: {3: u'Na tus et dolor.', 4: u'Amet ipsam aperiam.', 5: [datetime(19 80, 12, 9, 11, 5, 12), 459]}}, u'laudantium': {4: u'Nam di gnissimos.', 5: [u'http://www..biz/home/', 2709, u'http:// .com/'], 6: {4: datetime(1992, 9, 18, 8, 13, 18), 5: u'.@. com', 6: [u'Neque quos atque.', 5074]}}, u'autem': {8: 30, 9: [u'Blanditiis.', 4038, 5424], 10: {8: 350109.38228075, 9: u'http://.com/tags/category/login.htm', 10: [u'Quis cu lpa facilis.', u'Consequatur.']}}})
fake.pydecimal(left_digits=None, right_digits=None, positive=False) # -85873651077.6
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types) # [u'Et amet consectetur.', Decimal('5746729294.43'), Decima l('-1989.445'), 5210730809699.2, u'http://www..info/tags/a uthor.php', u'Deleniti ut.', u'Nobis at aut eum.', Decimal ('-5921.46843623'), datetime(1982, 4, 8, 22, 28, 26)]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types) # (datetime(1982, 3, 17, 0, 13, 30), u'Nostrum ea quaerat.', u'Neque dolores rerum.', -8736450.81279967, datetime(1998 , 1, 16, 3, 19, 3), u'Recusandae.', 2812, u'http://www..bi z/register/')
fake.pybool() # True
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types) # set([u'Est architecto.', Decimal('959.385851847'), u'Dolor e.', u'Velit unde animi.', 88496614688.6, u'.@.com', u'Eum non eveniet et.', Decimal('-50160146400.8')])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types) # {u'quibusdam': -44718259.0, u'adipisci': u'.@.com', u'saep e': u'Incidunt eos aut.', u'tenetur': u'http://.org/', u'e t': u'Repellat vitae eos.', u'quae': 5313, u'nesciunt': da tetime(2008, 7, 18, 22, 1, 14), u'aliquam': -8147.3, u'min us': u'e@.net', u'quo': u'Magnam dicta ut sed.', u'omnis': -5.39759337}
fake.pyint() # 3147
faker.providers.phone_number¶
fake.phone_number() # 18244037802
fake.phonenumber_prefix() # 155
faker.providers.ssn¶
fake.ssn() # 841-12-6599
faker.providers.user_agent¶
fake.mac_processor() # U; Intel
fake.firefox() # Mozilla/5.0 (Windows NT 5.01; sl-SI; rv:1.9.2.20) Gecko/20 14-10-09 03:51:39 Firefox/3.8
fake.linux_platform_token() # X11; Linux i686
fake.opera() # Opera/9.63.(Windows 98; sl-SI) Presto/2.9.167 Version/11.0 0
fake.windows_platform_token() # Windows NT 6.1
fake.internet_explorer() # Mozilla/5.0 (compatible; MSIE 5.0; Windows NT 6.1; Trident /3.0)
fake.user_agent() # Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_3 rv:2.0; en-U S) AppleWebKit/535.28.1 (KHTML, like Gecko) Version/5.0 Sa fari/535.28.1
fake.chrome() # Mozilla/5.0 (Windows CE) AppleWebKit/5322 (KHTML, like Gec ko) Chrome/13.0.863.0 Safari/5322
fake.linux_processor() # i686
fake.mac_platform_token() # Macintosh; Intel Mac OS X 10_5_6
fake.safari() # Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_6_8 rv:3.0; en- US) AppleWebKit/535.42.2 (KHTML, like Gecko) Version/4.0.3 Safari/535.42.2