Faker Documentation

Faker Documentation
Release 0.3.2
Daniele Faraglia
March 11, 2014
Contents
1
Basic Usage
3
2
Providers
5
3
Localization
7
4
Using from shell
9
5
How to create a Provider
11
6
Seeding the Generator
13
7
Tests
15
8
License
17
9
Credits
19
10 Contents
10.1 Providers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.2 Locales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
21
25
11 Indices and tables
41
i
ii
Faker Documentation, Release 0.3.2
_|_|_|_|
_|
_|_|_|
_|_|_| _|
_|
_|
_|
_|
_|
_|_|_|
_|
_| _|
_|_|
_| _|
_|
_|
_|_|
_|_|_|_|
_|
_|_|_|
_| _|_|
_|_|
_|
_|
Faker is a Python package that generates fake data for you. Whether you need to bootstrap your database, create
good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production
service, Faker is for you.
Faker is heavily inspired by PHP’s Faker, Perl’s Data::Faker, and by ruby’s Faker.
Contents
1
Faker Documentation, Release 0.3.2
2
Contents
CHAPTER 1
Basic Usage
Install with pip:
pip install fake-factory
Use faker.Factory.create() to create and initialize a faker generator, which can generate data by accessing
properties named after the type of data you want.
from faker import Factory
fake = Factory.create()
# OR
from faker import Faker
fake = Faker()
fake.name()
# ’Lucy Cechtelar’
fake.address()
# "426 Jordy Lodge
# Cartwrightshire, SC 88120-6700"
fake.text()
# Sint velit eveniet. Rerum atque repellat voluptatem quia rerum. Numquam excepturi
# beatae sint laudantium consequatur. Magni occaecati itaque sint et sit tempore. Nesciunt
# amet quidem. Iusto deleniti cum autem ad quia aperiam.
# A consectetur quos aliquam. In iste aliquid et aut similique suscipit. Consequatur qui
# quaerat iste minus hic expedita. Consequuntur error magni et laboriosam. Aut aspernatur
# voluptatem sit aliquam. Dolores voluptatum est.
# Aut molestias et maxime. Fugit autem facilis quos vero. Eius quibusdam possimus est.
# Ea quaerat et quisquam. Deleniti sunt quam. Adipisci consequatur id in occaecati.
# Et sint et. Ut ducimus quod nemo ab voluptatum.
Each call to method fake.name() yields a different (random) result. This is because faker forwards
faker.Generator.method_name() calls to faker.Generator.format(method_name).
for i in range(0,10):
print fake.name()
#
#
#
#
#
Adaline Reichel
Dr. Santa Prosacco DVM
Noemy Vandervort V
Lexi O’Conner
Gracie Weber
3
Faker Documentation, Release 0.3.2
#
#
#
#
#
4
Roscoe Johns
Emmett Lebsack
Keegan Thiel
Wellington Koelpin II
Ms. Karley Kiehn V
Chapter 1. Basic Usage
CHAPTER 2
Providers
Each of the generator properties (like name, address, and lorem) are called Providers. A faker generator has
many of them, packaged in “providers”.
5
Faker Documentation, Release 0.3.2
6
Chapter 2. Providers
CHAPTER 3
Localization
faker.Factory can take a locale as an argument, to return localized data. If no localized provider is found, the
factory fallbacks to the default locale (en_EN).
See the full list of included Locales.
7
Faker Documentation, Release 0.3.2
8
Chapter 3. Localization
CHAPTER 4
Using from shell
In a python environment with faker installed you can use it with:
python -m faker [option] [*args]
[option]:
• formatter name as text, address: display result of fake
[*args]: pass value to formatter (actually only strings)
$ python -m faker address
968 Bahringer Garden Apt. 722
Kristinaland, NJ 09890
9
Faker Documentation, Release 0.3.2
10
Chapter 4. Using from shell
CHAPTER 5
How to create a Provider
from faker import Faker
fake = Faker()
# first, import a similar Provider or use the default one
from faker.providers import BaseProvider
# create new provider class
class MyProvider(BaseProvider):
def foo(self):
return ’bar’
# then add new provider to faker instance
fake.add_provider(MyProvider)
# now you can use:
fake.foo()
> ’bar’
11
Faker Documentation, Release 0.3.2
12
Chapter 5. How to create a Provider
CHAPTER 6
Seeding the Generator
You may want to get always the same generated data - for instance when using Faker for unit testing purposes. The
generator offers a seed() method, which seeds the random number generator. Calling the same script twice with the
same seed produces the same results.
from faker import Faker
fake = Faker()
fake.seed(4321)
print fake.name()
# Margaret Boehm
13
Faker Documentation, Release 0.3.2
14
Chapter 6. Seeding the Generator
CHAPTER 7
Tests
Run tests:
$ python setup.py test
or:
$ python -m unittest -v faker.tests
Write documentation for providers:
$ python -m faker > docs.txt
15
Faker Documentation, Release 0.3.2
16
Chapter 7. Tests
CHAPTER 8
License
Faker is released under the MIT Licence. See the bundled LICENSE file for details.
17
Faker Documentation, Release 0.3.2
18
Chapter 8. License
CHAPTER 9
Credits
• FZaninotto / Faker
• Distribute
• Buildout
• modern-package-template
19
Faker Documentation, Release 0.3.2
20
Chapter 9. Credits
CHAPTER 10
Contents
10.1 Providers
10.1.1 faker.providers.base
fake.random_digit_not_null()
fake.randomize_nb_elements(number=10, le=False, ge=False)
fake.random_letter()
fake.random_digit_not_null_or_empty()
fake.random_element(array=(’a’, ’b’, ’b’))
fake.bothify(text="## ??")
fake.random_digit()
fake.random_number(digits=None)
fake.lexify(text="????")
fake.random_int(min=0, max=9999)
#
#
#
#
#
#
#
#
#
#
3
9
Y
5
a
37 HN
9
784
wdHa
7316
fake.numerify(text="###")
# 942
10.1.2 faker.providers.lorem
fake.text(max_nb_chars=200)
fake.sentence(nb_words=6, variable_nb_words=True)
fake.word()
fake.paragraphs(nb=3)
fake.words(nb=3)
fake.paragraph(nb_sentences=3, variable_nb_sentences=True)
fake.sentences(nb=3)
#
#
#
#
#
#
#
Deserun
Esse do
et
[u’Nobi
[u’cons
Vero po
[u’Nihi
#
#
#
#
#
#
#
#
NY
-6.2192
Schumm
012 Nic
55988 W
54108
-130.53
Kyrgyz
10.1.3 faker.providers.address
fake.state_abbr()
fake.latitude()
fake.street_name()
fake.address()
fake.street_address()
fake.postcode()
fake.longitude()
fake.country()
21
Faker Documentation, Release 0.3.2
fake.geo_coordinate(center=None, radius=0.001)
fake.secondary_address()
fake.street_suffix()
fake.city_prefix()
fake.city_suffix()
fake.building_number()
fake.city()
fake.state()
#
#
#
#
#
#
#
#
-143.92
Suite 2
Rapid
New
berg
7564
East Ad
Louisia
#
#
#
#
#
Mia Oku
Jr.
Howe
Imogene
Dr.
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
0173-07
06
PM
2011-10
1920-04
1992-07
June
2014-02
2011-10
Sunday
01
12:49:5
2006-09
8204338
2013-05
Europe/
XVI
2008-06
1994
#
#
#
#
Jaskols
Group
Network
matrix
10.1.4 faker.providers.person
fake.name()
fake.suffix()
fake.last_name()
fake.first_name()
fake.prefix()
10.1.5 faker.providers.date_time
fake.date_time_ad()
fake.month()
fake.am_pm()
fake.iso8601()
fake.date_time_this_century()
fake.date_time()
fake.month_name()
fake.date_time_this_month()
fake.date_time_this_decade()
fake.day_of_week()
fake.day_of_month()
fake.time(pattern="%H:%M:%S")
fake.date_time_between(start_date="-30y", end_date="now")
fake.unix_time()
fake.date_time_this_year()
fake.timezone()
fake.century()
fake.date(pattern="%Y-%m-%d")
fake.year()
10.1.6 faker.providers.company
fake.company()
fake.company_suffix()
fake.catch_phrase()
fake.bs()
10.1.7 faker.providers.internet
fake.ipv4()
fake.url()
fake.company_email()
22
# 158.36.
# http://
# allie27
Chapter 10. Contents
Faker Documentation, Release 0.3.2
fake.uri()
fake.tld()
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
#
#
#
#
#
#
#
#
#
#
#
#
#
#
http://
info
list/ca
juana82
leonard
yahoo.c
bartell
.jsp
a434:e9
jesse.w
homepag
dimitri
gloverm
consect
10.1.8 faker.providers.misc
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True) # oNLkq#A
fake.locale()
# fr_ME
fake.md5(raw_output=False)
# 4fc2e86
fake.sha1(raw_output=False)
# c30e94c
fake.null_boolean()
# None
fake.sha256(raw_output=False)
# e5fe3ab
fake.country_code()
# CI
fake.language_code()
# cn
fake.boolean(chance_of_getting_true=50)
# False
10.1.9 faker.providers.phone_number
fake.phone_number()
# 923-441
10.1.10 faker.providers.user_agent
fake.mac_processor()
fake.firefox()
fake.linux_platform_token()
fake.opera()
fake.windows_platform_token()
fake.internet_explorer()
fake.user_agent()
fake.chrome()
fake.linux_processor()
fake.mac_platform_token()
fake.safari()
#
#
#
#
#
#
#
#
#
#
#
U; PPC
Mozilla
X11; Li
Opera/8
Windows
Mozilla
Mozilla
Mozilla
x86_64
Macinto
Mozilla
10.1.11 faker.providers.file
fake.mime_type(category=None)
10.1. Providers
# message
23
Faker Documentation, Release 0.3.2
10.1.12 faker.providers.python
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
fake.pystr(max_chars=20)
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
fake.pystruct(count=10, *value_types)
#
#
#
#
[u’elou
Magnam
8099127
([1672,
#
#
#
#
#
841
10.1.13 faker.providers.credit_card
fake.credit_card_security_code(card_type=None)
fake.credit_card_full(card_type=None, validate=False, max_check=10)
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
fake.credit_card_number(card_type=None, validate=False, max_check=10)
fake.credit_card_provider(card_type=None)
06/14
4532937
VISA 13
10.1.14 faker.providers.profile
fake.profile(fields=[])
fake.simple_profile()
# {’websi
# {’usern
10.1.15 faker.providers.job
fake.job()
# Copywri
10.1.16 faker.providers.color
fake.rgb_css_color()
fake.color_name()
fake.rgb_color_list()
fake.rgb_color()
fake.safe_hex_color()
fake.safe_color_name()
fake.hex_color()
24
#
#
#
#
#
#
#
Chapter 10. Contents
rgb(117
RosyBro
(35, 19
36,202,
#eedd00
silver
#640847
Faker Documentation, Release 0.3.2
10.2 Locales
10.2.1 Language en_US
faker.providers.address
fake.state_abbr()
# MO
fake.latitude()
# -43.935110
fake.street_name()
# Abdiel View
fake.address()
# 37470 Emard Plaza
fake.street_address()
# 63470 Johnathon Way Apt. 698
fake.postcode()
# 96420-2886
fake.longitude()
# -128.605330
fake.country()
# Greenland
fake.geo_coordinate(center=None, radius=0.001) # 35.982809
fake.secondary_address()
# Suite 294
fake.street_suffix()
# Pass
fake.city_prefix()
# Port
fake.city_suffix()
# town
fake.building_number()
# 266
fake.city()
# New Rubie
fake.state()
# NewJersey
faker.providers.person
fake.name()
fake.suffix()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
#
Monique Wolff
IV
Krajcik
Edwina
Dr.
#
#
#
#
Tromp, Welch and Hand
and Sons
Robust analyzing task-force
optimize visionary paradigms
faker.providers.company
fake.company()
fake.company_suffix()
fake.catch_phrase()
fake.bs()
faker.providers.phone_number
fake.phone_number()
# (090)942-4084
10.2.2 Language it_IT
faker.providers.address
fake.state_abbr()
fake.latitude()
fake.street_name()
fake.address()
10.2. Locales
#
#
#
#
LE
-77.5700035
Borgo Nicoletta
Via Testa 3 Appartamento 37
25
Faker Documentation, Release 0.3.2
fake.street_address()
# Strada Mazza 18 Piano 0
fake.postcode()
# 08686
fake.longitude()
# 130.612104
fake.country()
# Mauritania
fake.geo_coordinate(center=None, radius=0.001) # 148.795626
fake.secondary_address()
# Piano 0
fake.street_suffix()
# Viale
fake.city_prefix()
# San
fake.city_suffix()
# veneto
fake.building_number()
# 53
fake.city()
# Settimo Jole
fake.state()
# Chieti
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
Rebecca Mazza
Mazza
Anselmo
Dott.
#
#
#
#
Bruno Group
Group
Capacità sinergica full-range
supply-chains massimizzate valore aggiunto
faker.providers.company
fake.company()
fake.company_suffix()
fake.catch_phrase()
fake.bs()
faker.providers.phone_number
fake.phone_number()
# +32 53 8660871
10.2.3 Language fr_FR
faker.providers.address
fake.address()
# 54, rue Jean Techer
fake.latitude()
# 24.9135475
fake.department_number()
# 79
fake.street_name()
# rue Dupre
fake.department()
# (u’31’, u’Haute-Garonne’)
fake.department_name()
# Haute-Marne
fake.street_address()
# avenue Chretien
fake.postcode()
# 19532
fake.longitude()
# 8.230412
fake.country()
# Grèce
fake.street_prefix()
# avenue
fake.street_suffix()
# Street
fake.geo_coordinate(center=None, radius=0.001) # 164.390858
fake.city_suffix()
# -les-Bains
fake.building_number()
# 9
fake.region()
# Poitou-Charentes
fake.city()
# Charpentier
26
Chapter 10. Contents
Faker Documentation, Release 0.3.2
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
Danielle Riviere
Mahe
Adrien
de
#
#
#
#
#
#
#
#
Carlier SA
SA
de changer
L’avantage de rouler à l’état pur
l’assurance
007 946 929
008 107 830 00589
à la pointe
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
74.194.74.92
http://andre.com/
[email protected]
http://www.reynaud.com/tags/blog/author/
net
wp-content/posts/tags
[email protected]
eric54
club-internet.fr
mendes.com
.htm
0f8b:4d70:06f5:6e5d:e981:ca97:4ba2:d786
[email protected]
main
[email protected]
chevalier
sit-temporibus-quos
faker.providers.company
fake.company()
fake.company_suffix()
fake.catch_phrase_verb()
fake.catch_phrase()
fake.catch_phrase_noun()
fake.siren()
fake.siret(max_sequential_digits=2)
fake.catch_phrase_attribute()
faker.providers.internet
fake.ipv4()
fake.url()
fake.company_email()
fake.uri()
fake.tld()
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
faker.providers.phone_number
fake.phone_number()
# +33 (0)1 12 38 44 20
10.2.4 Language pt_BR
faker.providers.address
fake.estado_nome()
fake.latitude()
fake.street_name()
fake.street_prefix()
fake.address()
10.2. Locales
#
#
#
#
#
Alagoas
-18.5001775
Estrada Murilo Gomes
Lago
Vale de Dias, 93
27
Faker Documentation, Release 0.3.2
fake.street_address()
# Pátio Heloísa Fernandes, 19
fake.bairro()
# Vila Independencia 2ª Seção
fake.longitude()
# 139.690195
fake.country()
# Armênia
fake.estado_sigla()
# RS
fake.street_suffix()
# Street
fake.geo_coordinate(center=None, radius=0.001) # 103.343863
fake.city_suffix()
# Alegre
fake.building_number()
# 65
fake.estado()
# (u’RJ’, u’Rio de Janeiro’)
fake.city()
# Rodrigues
fake.postcode()
# 70950203
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
Gabriela Souza-Santos
Ferreira
Maria Sophia
do
faker.providers.company
fake.company()
fake.company_suffix()
# Barros - ME
# S.A.
faker.providers.internet
fake.ipv4()
fake.url()
fake.company_email()
fake.uri()
fake.tld()
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
53.228.162.176
http://www.barbosa.org/
[email protected]
http://barbosa.br/privacy/
net
wp-content/search/tags
joã[email protected]
silva.joão lucas
yahoo.com.br
gomes.com
.htm
4892:364a:78dd:6ab9:65ee:063f:78a9:8bfa
joão [email protected]
index
[email protected]
almeida
et-velit
faker.providers.phone_number
fake.phone_number()
28
# +55 61 5772-5899
Chapter 10. Contents
Faker Documentation, Release 0.3.2
10.2.5 Language el_GR
faker.providers.lorem
fake.text(max_nb_chars=200)
fake.sentence(nb_words=6, variable_nb_words=True)
fake.word()
fake.paragraphs(nb=3)
fake.words(nb=3)
fake.paragraph(nb_sentences=3, variable_nb_sentences=True)
fake.sentences(nb=3)
#
#
#
#
#
#
#
K𝜆𝜋 𝜒𝛼𝜇𝜂𝜆 𝜇𝜖𝜏 𝛼𝜑𝜌𝛼𝜎𝜏 𝜏 𝜌𝜋o 𝜖𝜑𝛼𝜌𝜇o𝛾 𝜋o𝜄𝛼 𝛼𝜈
Σ𝜐𝜈𝛿𝜖𝜆𝜑o 𝜋𝜖𝜌𝜋o𝜐 𝜋𝜖𝜏 o𝜈 𝜎o𝜐 𝜒𝜌𝜂𝜎𝜄𝜇o𝜋o𝜄𝜈𝜏 𝛼.
𝜒𝜖𝜄𝜌𝜏 𝜖𝜌𝛼
[u’\u038c\u03c4\u03b9 \u03b3\u03bd\u03c9
[u’\u03bf’, u’\u03ba\u03b1\u03bb\u03cd\u
Σ𝜐𝜈𝜖𝜒 𝜏 𝜔𝜈 𝜋o𝜐 𝜇𝜂. A𝜋 𝛿𝜄o𝜆𝜄𝜎𝜃𝜎𝜖𝜄 𝜏 𝛼 𝜏 o𝜐 𝜏 𝜂
[u’\u03a0\u03b1\u03c1\u03b1\u03b4\u03ce\
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
40.189107
P𝜃𝜐𝜇𝜈o
A𝜏 𝜎𝛼𝜆𝜅𝜂 510-170,
Π𝜌o𝛿o K𝛼𝜇𝛼𝜏 𝜖𝜌o 332
63204
Π𝜌o𝛿o
23.188313
P𝜖𝜈𝜄𝜈
Π𝜌o𝛿o
Street
-108.863012
P𝜄𝜆o𝜐
Ville
0
I𝜔𝛼𝜅𝜖𝜄𝜇𝛿o𝜐
Λo𝜐𝜏 𝜌o𝜋𝜆𝜖𝜔 Θ𝜖𝜌𝜇 8, TK 162 85 K𝜄𝜆𝜅
(39.268161, 28.06182)
K𝛼𝜏 𝜖𝜌𝜈𝜂
Λ𝜖𝜔𝜑.
#
#
#
#
#
#
#
#
#
Φ𝜄𝜆𝜄𝜋𝜋𝜅𝜂
E𝜐𝜎𝜏 𝜌𝛼𝜏 𝛼 Φ𝜄𝜆𝜄𝛾𝜅o𝜐
Io𝜌𝛿𝛼𝜈𝛼-Σ𝜋𝜐𝜌𝜈𝜈𝛼 Π𝛼𝜋𝛼𝜈𝜄𝜅o𝜆o𝜐
B𝜌𝛼𝜎𝛿𝛼 X𝜌𝜄𝜎𝜏 𝜅𝜂
Θ𝜖o𝜒𝛼𝜌o𝜆𝛼
A𝜈𝜏 𝜋𝛼𝜏 𝜌o
E𝜌𝜄𝜑𝜆𝜂
M𝛼𝜌𝛾𝛼𝜌𝜄𝜏 𝜅𝜂
Γ𝜅𝛾𝜅𝛼
#
#
#
#
#
58.167.149.248
http://www.mpozikis.gr/
[email protected]
http://www.dorimasgalas.gr/
org
faker.providers.address
fake.latitude()
fake.region()
fake.address()
fake.street_address()
fake.postcode()
fake.street_prefix_long()
fake.longitude()
fake.country()
fake.street_prefix()
fake.street_suffix()
fake.geo_coordinate(center=None, radius=0.001)
fake.street()
fake.city_suffix()
fake.building_number()
fake.street_name()
fake.line_address()
fake.latlng()
fake.city()
fake.street_prefix_short()
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.internet
fake.ipv4()
fake.url()
fake.company_email()
fake.uri()
fake.tld()
10.2. Locales
29
Faker Documentation, Release 0.3.2
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
#
#
#
#
#
#
#
#
#
#
#
#
app/tags/list
[email protected]
xfasoulidou
gmail.com
kakotrichitsoukia.gr
.jsp
1838:9271:22e5:adef:4e48:3e85:319c:af0c
[email protected]
index
[email protected]
euaggelatos
nulla-possimus
faker.providers.phone_number
fake.phone_number()
# 2730 015 836
10.2.6 Language en_CA
faker.providers.address
fake.latitude()
# 45.422687
fake.street_name()
# Torp Center
fake.address()
# 60226 Goodwin Court
fake.street_address()
# 045 McLaughlin Inlet Suite 455
fake.postcode()
# 91102
fake.longitude()
# -65.235949
fake.country()
# Bermuda
fake.geo_coordinate(center=None, radius=0.001) # -142.343468
fake.postal_code_letter()
# P
fake.province()
# Yukon Territory
fake.city_prefix()
# Lake
fake.city_suffix()
# land
fake.building_number()
# 95611
fake.street_suffix()
# Greens
fake.secondary_address()
# Suite 135
fake.city()
# New Elverashire
fake.province_abbr()
# SK
fake.postalcode()
# G9A-2R1
faker.providers.phone_number
fake.phone_number()
# 1-722-123-6431
10.2.7 Language en_GB
faker.providers.address
fake.latitude()
fake.street_name()
fake.address()
30
# -40.6168845
# Lebsack isle
# 2 Maia glens
Chapter 10. Contents
Faker Documentation, Release 0.3.2
fake.street_address()
# 88 Kautzer underpass
fake.postcode()
# V7O 8UC
fake.longitude()
# -1.103934
fake.country()
# South Georgia and the South Sandwich Islands
fake.geo_coordinate(center=None, radius=0.001) # 1.272686
fake.secondary_address()
# Flat 8
fake.street_suffix()
# knolls
fake.city_prefix()
# North
fake.city_suffix()
# furt
fake.building_number()
# 128
fake.city()
# Enolaport
faker.providers.phone_number
fake.phone_number()
# +44(0)3860 60161
10.2.8 Language de_DE
faker.providers.address
fake.latitude()
# 89.2786155
fake.street_name()
# Geiselweg
fake.address()
# Alisson-Naser-Allee 4
fake.street_address()
# Frankestr. 74
fake.postcode()
# 62219
fake.longitude()
# 63.063940
fake.country()
# Afghanistan
fake.city_name()
# Wertingen
fake.street_suffix()
# Street
fake.geo_coordinate(center=None, radius=0.001) # -5.377474
fake.city_suffix()
# Ville
fake.building_number()
# 6/1
fake.street_suffix_long()
# Gasse
fake.street_suffix_short()
# gasse
fake.city()
# Stollberg
fake.state()
# Hamburg
faker.providers.person
fake.prefix_male()
fake.prefix()
fake.name()
fake.first_name()
fake.suffix()
fake.first_name_male()
fake.first_name_female()
fake.last_name()
fake.prefix_female()
10.2. Locales
#
#
#
#
#
#
#
#
#
Dipl.-Ing.
Ing.
Benny Wernecke B.Eng.
Argus
B.Eng.
Anatol
Simona
Kroker
Ing.
31
Faker Documentation, Release 0.3.2
faker.providers.company
fake.company()
fake.company_suffix()
# Neuschäfer AG
# GmbH & Co. OHG
faker.providers.internet
fake.ipv4()
fake.url()
fake.company_email()
fake.uri()
fake.tld()
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
240.10.206.202
http://www.schulz.de/
[email protected]
http://www.schmidt.de/search/posts/login.php
de
wp-content/explore/tags
[email protected]
stiffel.isabel
gmx.de
metz.net
.html
605d:df39:6072:16dc:9ac3:3666:6eeb:7067
[email protected]
home
[email protected]
foerster
sunt-dignissimos-ad
faker.providers.phone_number
fake.phone_number()
# (01098) 313934
10.2.9 Language ru_RU
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
# -.
#
#
# .
faker.providers.phone_number
fake.phone_number()
# +7 (026) 230-25-66
faker.providers.job
fake.job()
32
#
Chapter 10. Contents
Faker Documentation, Release 0.3.2
10.2.10 Language cs_CZ
faker.providers.address
fake.latitude()
# 24.0937445
fake.street_name()
# Budčická
fake.address()
# Dobrošovská 8/1
fake.street_address()
# Pat’anka 77
fake.postcode()
# 030 96
fake.longitude()
# -145.524236
fake.country()
# Chorvatsko
fake.city_name()
# Česká Skalice
fake.street_suffix()
# Street
fake.geo_coordinate(center=None, radius=0.001) # -156.925003
fake.city_suffix()
# Ville
fake.building_number()
# 541
fake.street_suffix_long()
# náměstí
fake.street_suffix_short()
# nám.
fake.city()
# Náměšt’ nad Oslavou
fake.state()
# Hlavní město Praha
faker.providers.person
fake.last_name_male()
fake.prefix_male()
fake.prefix()
fake.name()
fake.first_name()
fake.suffix()
fake.first_name_male()
fake.first_name_female()
fake.last_name_female()
fake.last_name()
fake.prefix_female()
#
#
#
#
#
#
#
#
#
#
#
Moravec
Mgr.
Mgr.
Bc. Kamila Bláhová
Bohumil
Ph.D.
Dušan
Eliška
Vacková
Bláhová
MUDr.
faker.providers.company
fake.company()
fake.company_suffix()
# Nováková a.s.
# s.r.o.
faker.providers.internet
fake.ipv4()
fake.url()
fake.company_email()
fake.uri()
fake.tld()
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
10.2. Locales
#
#
#
#
#
#
#
#
#
#
#
169.76.110.159
http://moravcova.cz/
[email protected]
http://www.benesova.com/tag/blog/app/login/
cz
tags
[email protected]
ruzickova.nikol
centrum.cz
jelinek.cz
.html
33
Faker Documentation, Release 0.3.2
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
#
#
#
#
#
#
bfcf:1e94:e84b:9837:de33:1d8c:5021:c5b8
[email protected]
home
[email protected]
maly
quos-et-tempore
faker.providers.phone_number
fake.phone_number()
# 605 971 281
10.2.11 Language fi_FI
faker.providers.address
fake.latitude()
# 9.2203485
fake.street_name()
# Mangostaanikatu
fake.address()
# Pomelokatu 84
fake.street_address()
# Pepinobulevardi 1
fake.postcode()
# 09784
fake.longitude()
# 116.936622
fake.country()
# Etelä-Afrikka
fake.city_name()
# Pyhäjärvi
fake.fruit()
# Banaani
fake.street_suffix()
# tie
fake.geo_coordinate(center=None, radius=0.001) # 18.012461
fake.city_suffix()
# Ville
fake.building_number()
# 990
fake.city()
# Haapavesi
fake.state()
# Turun ja Porin lääni
faker.providers.person
fake.name()
fake.suffix()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
#
Anna-Kaisa Salli
BSc
Karhu
Jarmo
Rouva
faker.providers.company
fake.company()
fake.company_suffix()
# Ovaska Ky
# ry
faker.providers.internet
fake.ipv4()
fake.url()
fake.company_email()
fake.uri()
34
#
#
#
#
128.56.116.41
http://www.haapasalo.com/
[email protected]
http://www.niemela.net/tag/categories/search.php
Chapter 10. Contents
Faker Documentation, Release 0.3.2
fake.tld()
fake.uri_path(deep=None)
fake.free_email()
fake.user_name()
fake.free_email_domain()
fake.domain_name()
fake.uri_extension()
fake.ipv6()
fake.safe_email()
fake.uri_page()
fake.email()
fake.domain_word()
fake.slug(value=None)
#
#
#
#
#
#
#
#
#
#
#
#
#
com
posts/main/blog
[email protected]
pekkanen.eelin
suomi24.fi
maki.net
.html
eaf7:05ba:1e3d:95a5:a876:37ba:3064:eed3
[email protected]
search
[email protected]
viitanen
blanditiis-illo
faker.providers.phone_number
fake.phone_number()
# 036 107 0933
10.2.12 Language dk_DK
faker.providers.person
fake.prefix_male()
fake.prefix()
fake.name()
fake.first_name()
fake.first_name_male()
fake.first_name_female()
fake.last_name()
fake.prefix_female()
#
#
#
#
#
#
#
#
Univ.Prof.
Prof.
Univ.Prof. Iben Schmidt
Sille
Laus
Carla
Jeppesen
Prof.
10.2.13 Language es_MX
faker.providers.address
fake.state_abbr()
# NAY
fake.latitude()
# 52.243393
fake.street_name()
# Circuito Norte Rivero
fake.address()
# Peatonal Norte Vela 253 246
fake.street_address()
# Corredor Luna 715 Edif. 944 , Depto. 598
fake.postcode()
# 27626-2182
fake.longitude()
# -40.615904
fake.country()
# Irán
fake.geo_coordinate(center=None, radius=0.001) # -70.061676
fake.secondary_address()
# 616 071
fake.street_prefix()
# Avenida
fake.street_suffix()
# Street
fake.city_prefix()
# Norte
fake.city_suffix()
# los altos
fake.building_number()
# 29933
fake.city_adjetive()
# Nueva
fake.city()
# Vieja Congo
fake.state()
# Baja California Sur
10.2. Locales
35
Faker Documentation, Release 0.3.2
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
Mtro. Ricardo Salcido
Ruiz
Alma
Lic.
#
#
#
#
#
A.C.
Ruelas-Cavazos
Proyectos
alianza vía web inverso
evoluciona convergencia de paquete
faker.providers.company
fake.company_suffix()
fake.company()
fake.company_prefix()
fake.catch_phrase()
fake.bs()
faker.providers.phone_number
fake.phone_number()
# +41(2)9344831261
10.2.14 Language es_ES
faker.providers.address
fake.state_name()
# Málaga
fake.latitude()
# 28.086732
fake.street_name()
# Via de Enrique Guerra
fake.address()
# Via Julio Salgado 217 Piso 3
fake.street_address()
# Rambla Diana Borja 28
fake.postcode()
# 67776
fake.longitude()
# -142.740374
fake.country()
# Cuba
fake.secondary_address()
# Puerta 9
fake.street_prefix()
# Plaza
fake.street_suffix()
# Street
fake.geo_coordinate(center=None, radius=0.001) # -34.470996
fake.city_suffix()
# Ville
fake.building_number()
# 2
fake.city()
# Salamanca
fake.state()
# Álava
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
36
#
#
#
#
Joel Guerra Mayol
Moles
Samuel
del
Chapter 10. Contents
Faker Documentation, Release 0.3.2
faker.providers.phone_number
fake.phone_number()
# +34 364 17 53 06
10.2.15 Language pl_PL
faker.providers.address
fake.latitude()
# -66.9277915
fake.street_name()
# Bydgoska
fake.address()
# 72 Warszawska 69-055 Bielsko-Biała
fake.street_address()
# 76 Lubelska
fake.postcode()
# 76-441
fake.longitude()
# 48.902015
fake.country()
# Kenya
fake.street_suffix()
# Street
fake.geo_coordinate(center=None, radius=0.001) # 132.304468
fake.city_suffix()
# Ville
fake.building_number()
# 56
fake.city()
# Goleniów
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
fake.prefix()
#
#
#
#
Krzysztof Aleksa
Wójcikiewicz
Aniela
pani
faker.providers.phone_number
fake.phone_number()
# +48 547 401 670
10.2.16 Language ko_KR
faker.providers.address
fake.latitude()
# 86.002784
fake.street_name()
#
fake.address()
#
3 (211-727)
fake.street_address()
# 5959
fake.postcode()
# 846-614
fake.longitude()
# 47.992609
fake.country()
#
fake.secondary_address()
# 323 953
fake.street_suffix()
#
fake.geo_coordinate(center=None, radius=0.001) # -61.067907
fake.city_suffix()
#
fake.building_number()
# 0007
fake.city()
#
fake.state()
#
10.2. Locales
37
Faker Documentation, Release 0.3.2
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
#
#
#
faker.providers.company
fake.company()
fake.company_suffix()
fake.catch_phrase()
fake.bs()
#
# ()
#
# 24/7
faker.providers.phone_number
fake.phone_number()
# 064-690-9968
10.2.17 Language zh_CN
faker.providers.address
fake.latitude()
# 7.613990
fake.street_name()
#
fake.address()
# A 997580
fake.street_address()
# J
fake.postcode()
# 138779
fake.longitude()
# -46.317569
fake.country()
#
fake.city_name()
#
fake.street_suffix()
#
fake.geo_coordinate(center=None, radius=0.001) # -160.207895
fake.city_suffix()
#
fake.building_number()
# e
fake.city()
#
fake.state()
#
faker.providers.person
fake.name()
fake.last_name()
fake.first_name()
#
#
#
faker.providers.company
fake.company_suffix()
fake.company()
fake.company_prefix()
38
#
#
#
Chapter 10. Contents
Faker Documentation, Release 0.3.2
faker.providers.phone_number
fake.phone_number()
fake.phonenumber_prefix()
10.2. Locales
# 13046303355
# 181
39
Faker Documentation, Release 0.3.2
40
Chapter 10. Contents
CHAPTER 11
Indices and tables
• genindex
• modindex
• search
41