faker.providers.addressΒΆ

fake.random_int(min=0, max=9999)
# 1500

fake.country()
# 'Namibia'

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

fake.random_digit()
# 3

fake.military_state()
# 'AP'

fake.zipcode_plus4()
# '32474-9370'

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

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

fake.random_digit_not_null_or_empty()
# 4

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

fake.random_letter()
# 'V'

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

fake.city_prefix()
# 'East'

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

fake.postcode()
# '22800'

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

fake.bothify(text="## ??", letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
# '77 cp'

fake.city_suffix()
# 'shire'

fake.random_uppercase_letter()
# 'C'

fake.city()
# 'Lake Markhaven'

fake.postalcode()
# '71927'

fake.random_digit_or_empty()
# ''

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

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

fake.street_name()
# 'Jeffrey Valley'

fake.postalcode_plus4()
# '19644-6904'

fake.secondary_address()
# 'Apt. 703'

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

fake.building_number()
# '134'

fake.military_apo()
# 'PSC 2583, Box 5254'

fake.address()
# '6913 Stacey Brook Apt. 950\nKimberlyfort, NY 38452'

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

fake.random_digit_not_null()
# 3

fake.zipcode()
# '54856'

fake.street_suffix()
# 'River'

fake.random_letters(length=16)
# ['C', 'y', 'h', 'y', 'a', 'f', 'S', 'X', 'c', 'a', 'R', 'y', 'p', 'j', 'D', 'F']

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

fake.military_ship()
# 'USCGC'

fake.state()
# 'Nevada'

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

fake.street_address()
# '55534 Ryan Harbors Suite 898'

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

fake.military_dpo()
# 'Unit 8456 Box 4657'

fake.random_lowercase_letter()
# 'z'