Generate random, realistic addresses from a curated list. This Python library allows you to obtain random addresses or addresses specific to any U.S. state. It includes a collection of actual addresses that provide realistic data points for testing or demonstration purposes.
- Generate random addresses across the U.S.
- Generate random addresses specific to a U.S. state
- Provides structured data (street, city, state, zipcode)
- Incorporates official state abbreviations
You can install the package via pip:
pip install random-address-generator
from from random_address import generate_random_address
print(generate_random_address())
Output:
208 Northwind Dr
Goodlettsville, Tennessee 37072
from random_address import generate_random_address_in_state, State
print(generate_random_address_in_state(State.CA))
print(generate_random_address_in_state(State.ME))
Output:
1839 Arbor Way
Turlock, California 95380
10 Bass Ln
Winterport, Maine 04496
For more details, visit the project page on PyPI: Random Real Address on PyPI
To develop on this repository use bin/install
to set up your environment. And run bin/test
to run tests.
Feel free to contribute by submitting pull requests or reporting issues.
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for your changes.
- Ensure all tests are passing.
- Submit a pull request.
This project is licensed under the MIT License.