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:
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7afe84c358f42f2380463ef162ca626e83c67792ddf7eff0f1696fa5fa98fe |
|
MD5 | d99783529c2e04c487135514eae093f0 |
|
BLAKE2b-256 | 0c33c9ba6efc10b689a47e48457f21eb058da34fd333de9161737aebd9c2c920 |
Hashes for random_real_address-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e98f88b1b176b868a78d347036a76feb03e4940b21764d5ee14322c59b7ce2 |
|
MD5 | a2172ac57be637b554b180c0ec9f6472 |
|
BLAKE2b-256 | b90f387cc332fef970e4cfd04e0a7efff4493042d82d11c6d797c9c713869299 |