faker.providers.addressΒΆ

fake.address()
# 'PSC 1296, Box 1833\nAPO AP 69881'

fake.bothify(text="## ??", letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
# '07 IJ'

fake.building_number()
# '4628'

fake.city()
# 'Clarkhaven'

fake.city_prefix()
# 'North'

fake.city_suffix()
# 'ville'

fake.country()
# 'Germany'

fake.country_code(representation="alpha-2")
# 'VN'

fake.hexify(text="^^^^", upper=False)
# 'ce14'

fake.language_code()
# 'the'

fake.lexify(text="????", letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
# 'XCen'

fake.locale()
# 'ug_CN'

fake.military_apo()
# 'PSC 2380, Box 4435'

fake.military_dpo()
# 'Unit 3227 Box 8615'

fake.military_ship()
# 'USS'

fake.military_state()
# 'AA'

fake.numerify(text="###")
# '767'

fake.postalcode()
# '65726'

fake.postalcode_in_state(state_abbr=None)
# '72706'

fake.postalcode_plus4()
# '19120-1442'

fake.postcode()
# '20126'

fake.postcode_in_state(state_abbr=None)
# '55262'

fake.random_choices(elements=('a', 'b', 'c'), length=None)
# ['a', 'b', 'b']

fake.random_digit()
# 3

fake.random_digit_not_null()
# 2

fake.random_digit_not_null_or_empty()
# 5

fake.random_digit_or_empty()
# 5

fake.random_element(elements=('a', 'b', 'c'))
# 'c'

fake.random_elements(elements=('a', 'b', 'c'), length=None, unique=False)
# ['b']

fake.random_int(min=0, max=9999, step=1)
# 9236

fake.random_letter()
# 'h'

fake.random_letters(length=16)
# ['p', 'M', 'P', 'v', 'I', 'f', 'P', 'Z', 'C', 'd', 'G', 'D', 'p', 'o', 'b', 'w']

fake.random_lowercase_letter()
# 'j'

fake.random_number(digits=None, fix_len=False)
# 94011

fake.random_sample(elements=('a', 'b', 'c'), length=None)
# ['c', 'a', 'b']

fake.random_uppercase_letter()
# 'H'

fake.randomize_nb_elements(number=10, le=False, ge=False, min=None, max=None)
# 9

fake.secondary_address()
# 'Suite 888'

fake.state()
# 'Minnesota'

fake.state_abbr(include_territories=True)
# 'PA'

fake.street_address()
# '2828 Thomas Estate'

fake.street_name()
# 'Patrick Hollow'

fake.street_suffix()
# 'Orchard'

fake.zipcode()
# '79391'

fake.zipcode_in_state(state_abbr=None)
# '29810'

fake.zipcode_plus4()
# '92736-5892'