A Python package to generate real addresses in the US.
Project description
Random Real Address Generator
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.
Features
- 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
Installation
You can install the package via pip:
pip install random-address-generator
Usage
Generating a Random Address
from from random_address import generate_random_address
print(generate_random_address())
Output:
```bash
208 Northwind Dr
Goodlettsville, Tennessee 37072
Generating an Address in a Specific State
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
Learn More
For more details, visit the project page on PyPI: Random Real Address on PyPI
Development
To develop on this repository use bin/install
to set up your environment. And run bin/test
to run tests.
Contributing
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.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for random_real_address-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2aef841e2d29c8daec31a8cad2fea17e6c709e591b0ad760a6f1a6e868ae15f |
|
MD5 | 34a3808fdfa62d5eb7648093ef7b8bd2 |
|
BLAKE2b-256 | 3f03edde127b977faf87b3afa887abd2890d27c8679afe3fd372b1781eaf6b4f |
Hashes for random_real_address-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3922b6b70a03767a642a1fda543ec24bc88e996649cb216b3e6c8276b5b3f93a |
|
MD5 | b3965da65ac4c46bd715d4a8327eccdd |
|
BLAKE2b-256 | 520a0bcef110623ebac97ccb168366844cdf54c9498bb8d0ec3d10943cf22523 |