faker.providers.address

class faker.providers.address.Provider(generator: Any)

Bases: faker.providers.BaseProvider

address() → str

:example ‘791 Crist Parks, Sashabury, IL 86039-9874’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.address()
...
'48764 Howard Forge Apt. 421\nVanessaside, PA 19763'
'578 Michael Island\nNew Thomas, NC 34644'
'60975 Jessica Squares\nEast Sallybury, FL 71671'
'8714 Mann Plaza\nLisaside, PA 72227'
'96593 White View Apt. 094\nJonesberg, FL 05565'
building_number() → str

:example ‘791’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'6048'
'6475'
'382'
'2194'
'924'
city() → str

:example ‘Sashabury’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'Changchester'
'West Tammyfort'
'Hullport'
'Howardborough'
'West Donald'
city_suffix() → str

:example ‘town’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
'furt'
'chester'
'ton'
'view'
'haven'
country() → str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Tanzania'
'Hungary'
'Senegal'
'Tuvalu'
'Italy'
country_code(representation: str = 'alpha-2') → str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_code()
...
'MV'
'PS'
'NL'
'BB'
'IL'
current_country() → str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country()
...
'United States'
'United States'
'United States'
'United States'
'United States'
current_country_code() → str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country_code()
...
'US'
'US'
'US'
'US'
'US'
postcode() → str

:example 86039-9874

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'50995'
'99847'
'55626'
'05807'
'34437'
street_address() → str

:example ‘791 Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'0487 Hull Village Suite 759'
'242 Christine Glen'
'1157 Michael Island'
'778 Brown Plaza'
'60975 Jessica Squares'
street_name() → str

:example ‘Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'Chang Manor'
'Jonathan Pass'
'Sullivan Tunnel'
'Faulkner Knolls'
'William Haven'
street_suffix() → str

:example ‘Avenue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_suffix()
...
'Vista'
'Lights'
'Trace'
'Manor'
'Canyon'