Language zh_TW¶
faker.providers.address¶
fake.latitude() # 19.986877
fake.street_name() # 文化街
fake.address() # 756 彰化縣公園路49號
fake.street_address() # 勝利街479號
fake.postcode() # 40283
fake.longitude() # 165.049763
fake.country() # 塞席爾
fake.city_name() # 宜蘭縣
fake.secondary_address() # 之8
fake.street_suffix() # Street
fake.geo_coordinate(center=None, radius=0.001) # -79.081329
fake.city_suffix() # Ville
fake.building_number() # 5號
fake.city() # 嘉義縣
faker.providers.barcode¶
fake.ean(length=13) # 6316925411963
fake.ean13() # 2240004685645
fake.ean8() # 10667316
faker.providers.color¶
fake.rgb_css_color() # rgb(243,231,122)
fake.color_name() # MediumAquaMarine
fake.rgb_color_list() # (83, 210, 155)
fake.rgb_color() # 168,207,243
fake.safe_hex_color() # #ffee00
fake.safe_color_name() # white
fake.hex_color() # #2d9c77
faker.providers.company¶
fake.company_suffix() # 股份有限公司
fake.company() # 台灣台油資訊有限公司
fake.company_prefix() # 台灣鐵高
faker.providers.credit_card¶
fake.credit_card_security_code(card_type=None) # 422
fake.credit_card_full(card_type=None, validate=False, max_check=10) # JCB 16 digit 怡伶 能 2100576998531358 09/18 CVC: 190
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) # 4792348136068548
fake.credit_card_provider(card_type=None) # American Express
faker.providers.currency¶
fake.currency_code() # CUC
faker.providers.date_time¶
fake.date_time_ad() # 1025-02-09 17:43:55
fake.month() # 05
fake.am_pm() # AM
fake.iso8601() # 2008-10-24T13:31:30
fake.date_time_this_century() # 2011-04-28 05:29:20
fake.date_time() # 1980-03-17 15:36:59
fake.month_name() # November
fake.date_time_this_month() # 2016-03-12 09:10:39
fake.date_time_this_decade() # 2012-12-23 09:24:54
fake.day_of_week() # Sunday
fake.day_of_month() # 24
fake.time(pattern="%H:%M:%S") # 09:54:14
fake.date_time_between(start_date="-30y", end_date="now") # 2007-11-06 00:56:53
fake.unix_time() # 1422203919
fake.date_time_this_year() # 2016-03-14 08:12:26
fake.timezone() # Africa/Blantyre
fake.century() # XX
fake.date(pattern="%Y-%m-%d") # 2007-02-04
fake.year() # 1996
faker.providers.file¶
fake.mime_type(category=None) # application/postscript
faker.providers.internet¶
fake.ipv4() # 32.93.189.110
fake.url() # http://www..com/
fake.company_email() # .@.net
fake.uri() # http://www..com/posts/main.jsp
fake.image_url(width=None, height=None) # http://www.lorempixum.com/27/380
fake.tld() # com
fake.free_email() # .@hotmail.com
fake.slug(*args, **kwargs) # velit-magni-dicta
fake.free_email_domain() # yahoo.com
fake.domain_name() # .info
fake.uri_extension() # .php
fake.ipv6() # 6da5:ab4d:d8da:f181:f0f2:2dec:7be4:714f
fake.safe_email() # g@example.com
fake.user_name(*args, **kwargs) # .
fake.uri_path(deep=None) # list/search/blog
fake.email() # .@hotmail.com
fake.uri_page() # login
fake.mac_address() # 05:23:cb:d3:1e:d1
faker.providers.job¶
fake.job() # Writer
faker.providers.lorem¶
fake.text(max_nb_chars=200) # Odio repudiandae et autem id. Reprehenderit consequatur ne sciunt quo delectus perspiciatis est.
fake.sentence(nb_words=6, variable_nb_words=True) # Qui et minus sed quo nihil.
fake.word() # quibusdam
fake.paragraphs(nb=3) # [u'Non et dolores eaque ad. Voluptates incidunt animi omni s ipsum possimus ut. Possimus quisquam error omnis molesti ae voluptas odio autem. Rerum dignissimos quibusdam aut qu ia dolor fuga deserunt.', u'Modi incidunt libero dolore ex pedita odit et ut. Ad praesentium hic quisquam eius. Qui d olor quos culpa et nihil. Voluptatem eveniet illum deserun t corporis.', u'Sed sunt aut consectetur error harum dolor es. Sequi qui delectus ipsum ducimus non vitae nostrum. La boriosam et quo possimus qui cum qui nam. Nihil in aut lab ore nobis.']
fake.words(nb=3) # [u'aut', u'praesentium', u'sint']
fake.paragraph(nb_sentences=3, variable_nb_sentences=True) # Velit officiis omnis ut voluptatem enim aut et. Omnis sint commodi et aut. Accusamus est ut corporis corporis at. Ve niam et itaque molestias ea.
fake.sentences(nb=3) # [u'Voluptatem quia autem iste officiis temporibus nihil ex omnis.', u'Voluptas veniam beatae qui est.', u'Ipsam volu ptatibus modi et architecto sunt veritatis.']
faker.providers.misc¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True) # ji*Zf5Kpdb
fake.locale() # en_GA
fake.md5(raw_output=False) # 110da103df9d74de01074320fe192777
fake.sha1(raw_output=False) # 85bdfb4233c275c53a80f211b5269c56f14580a6
fake.null_boolean() # True
fake.sha256(raw_output=False) # 6b62431ca82116c90a8d457a69e13be564915f326f502e5037330b3e14 978ec7
fake.country_code() # ST
fake.language_code() # en
fake.boolean(chance_of_getting_true=50) # True
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://.com/', u'http://w ww..net/', u'http://www..org/'], 'username': u'.', 'name': u'\u4e0a\u5b98\u90c1\u96ef', 'blood_group': '0+', 'reside nce': u'84441 \u9023\u6c5f\u7e23\u5b78\u5e9c\u8def7\u865f' , 'company': u'\u53f0\u7063\u96fb\u4fe1', 'address': u'214 63 \u53f0\u4e2d\u5e02\u6c11\u751f\u8def988\u865f', 'birthd ate': '1985-10-23', 'sex': 'F', 'job': 'Control and instru mentation engineer', 'ssn': u'J015768395', 'current_locati on': (Decimal('-4.4699825'), Decimal('44.196889')), 'mail' : u'd@yahoo.com'}
fake.simple_profile() # {'username': u'.', 'name': u'\u5180\u5a01\u5ef7', 'birthda te': '1996-10-02', 'sex': 'F', 'address': u'750 \u53f0\u67 71\u7e23\u5927\u667a\u8def175\u865f', 'mail': u'.@yahoo.co m'}
faker.providers.python¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types) # [u'Aliquam sapiente.', Decimal('-100824701.0'), -7684.5033 2937409, u'Sunt voluptatem.', datetime(2011, 3, 19, 9, 43, 22), u'http://www..com/app/register.php', u'Eum quia.', d atetime(2006, 3, 25, 4, 11, 32), u'Nemo tenetur.', u'Disti nctio quia.', u'Vero exercitationem.', 6305]
fake.pystr(max_chars=20) # Quis non impedit.
fake.pyfloat(left_digits=None, right_digits=None, positive=False) # -1.28392916932e+11
fake.pystruct(count=10, *value_types) # ([Decimal('-881.209'), u'http://.com/list/index/', 6074, - 561207.5, u'Rerum doloremque.', u'Aut reprehenderit.', Dec imal('448311491326'), -90129989206.0, u'Doloremque.', date time(2008, 9, 7, 16, 1, 46)], {u'consequuntur': u'Sed ut m olestias.', u'quam': u'http://www..info/main.htm', u'est': Decimal('-81446423873.9'), u'magnam': u'Veniam sapiente.' , u'autem': 8344, u'illo': datetime(2009, 2, 25, 21, 55, 5 7), u'dolor': u'j@.com', u'deserunt': 7482, u'delectus': d atetime(1978, 4, 4, 16, 22, 33), u'omnis': u'Alias ipsa te mpora.'}, {u'minima': {9: u'Perferendis.', 10: [1771, u'ht tp://.net/faq/', 1351], 11: {9: 3261, 10: Decimal('-270.20 0025092'), 11: [u'Voluptatem sed esse.', u'Velit possimus vero.']}}, u'similique': {8: {8: [7635, u'Esse cumque dolo rum.'], 6: 58181039100045.0, 7: u'10@gmail.com'}, 6: u'Qui busdam eum.', 7: [Decimal('17.24'), Decimal('9.78502013239 E+12'), Decimal('6.90453973588E+14')]}, u'error': {8: [u'E os necessitatibus.', datetime(1976, 9, 24, 2, 15, 38), Dec imal('275368.95')], 9: {8: u'Et excepturi nam.', 9: [u'Et omnis doloribus.', Decimal('22867205.4')], 7: datetime(201 2, 6, 7, 4, 31, 26)}, 7: -11329342.11}, u'eos': {5: u'Sequ i quasi vero.', 6: [7060, u'Ut corrupti eius.', u'Veritati s doloribus.'], 7: {5: 546544433876.854, 6: Decimal('85593 .2'), 7: [3842, u'Exercitationem amet.']}}, u'harum': {4: u'Nemo repudiandae.', 5: [6449, u'http://.biz/', 67876907. 4], 6: {4: u'Quia consequatur.', 5: u'http://www..com/main /explore/tags/homepage.html', 6: [u'g@yahoo.com', datetime (1985, 6, 1, 5, 37, 43)]}}, u'sed': {8: u'http://www..com/ post.htm', 9: [4252, datetime(1973, 8, 17, 1, 12, 49), Dec imal('5148293331.4')], 10: {8: 4880, 9: Decimal('-533.3354 41411'), 10: [-524.1576, -45950280357.0]}}, u'laboriosam': {1: datetime(1977, 11, 22, 7, 59, 19), 2: [u'Non sed qui porro.', u'Ut vel itaque rerum.', 784], 3: {1: u'70@.com', 2: u'02@yahoo.com', 3: [4715, 443]}}, u'velit': {2: u'Tem pora cumque quo.', 3: [u'http://www..com/category.htm', u' A deleniti repellat.', u'Sapiente officia.'], 4: {2: 7108, 3: 9589, 4: [u'Sapiente.', u'At ut nisi nulla.']}}, u'id' : {0: datetime(2014, 4, 30, 17, 51, 58), 1: [u'r@kiea.com' , u'Eveniet et culpa.', 1324666158.78], 2: {0: u'Maxime nu mquam ex.', 1: u'Eaque cupiditate.', 2: [u'Est vel volupta tem.', -5653679994.19721]}}})
fake.pydecimal(left_digits=None, right_digits=None, positive=False) # 44.6691751624
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types) # [u'A quia.', u'.@gmail.com', u'15@.org', 6944, u'Ea volupt as.', u'.@.com', datetime(1981, 4, 24, 5, 45, 21), u'Neces sitatibus.', u'http://www..org/', u'Quaerat qui non.', 6.3 912453616542, u'19@yahoo.com', datetime(2002, 7, 8, 6, 5, 19)]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types) # (6482, u'http://.com/', u'http://www..com/faq.html', u'Dol orum sapiente.', 9165, u'Maxime ratione.', datetime(1975, 6, 4, 6, 2, 34), u'Magni tempora ut.', u'Itaque eaque.', D ecimal('-3.75351937045E+14'), u'Qui perspiciatis.', u'Cumq ue illo autem.')
fake.pybool() # False
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types) # set([u'.@.biz', u'Totam vel autem et.', u'Fuga nemo ex.', u'.@yahoo.com', u'http://.com/', u'Excepturi eius iure.', u'Omnis quisquam qui.', 4817, 9862643651697.9, u'Incidunt hic.'])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types) # {u'numquam': datetime(1982, 4, 27, 11, 28, 35), u'voluptat es': 9906, u'culpa': u'Deleniti molestiae.', u'dolores': u 'Dicta sit minima.', u'quas': u'Vero perferendis.', u'aute m': 4784, u'sed': 3352, u'maiores': 6152, u'et': datetime( 1989, 2, 14, 12, 42, 43), u'id': u'Consectetur iure.', u'n ecessitatibus': 7710}
fake.pyint() # 3020
faker.providers.phone_number¶
fake.phone_number() # 084 63115880
faker.providers.ssn¶
fake.ssn() # L369908026
faker.providers.user_agent¶
fake.mac_processor() # PPC
fake.firefox() # Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/2012-06 -16 14:42:07 Firefox/15.0
fake.linux_platform_token() # X11; Linux x86_64
fake.opera() # Opera/9.22.(X11; Linux x86_64; en-US) Presto/2.9.186 Versi on/11.00
fake.windows_platform_token() # Windows NT 5.01
fake.internet_explorer() # Mozilla/5.0 (compatible; MSIE 5.0; Windows NT 5.1; Trident /4.0)
fake.user_agent() # Mozilla/5.0 (compatible; MSIE 8.0; Windows CE; Trident/4.0 )
fake.chrome() # Mozilla/5.0 (Windows 98) AppleWebKit/5352 (KHTML, like Gec ko) Chrome/13.0.828.0 Safari/5352
fake.linux_processor() # x86_64
fake.mac_platform_token() # Macintosh; U; Intel Mac OS X 10_6_9
fake.safari() # Mozilla/5.0 (iPod; U; CPU iPhone OS 3_0 like Mac OS X; sl- SI) AppleWebKit/531.11.1 (KHTML, like Gecko) Version/4.0.5 Mobile/8B113 Safari/6531.11.1