Skip to main content

A Python package to generate real addresses in the US.

Project description

Random Real Address Generator

PyPI Version

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.

  1. Fork the project.
  2. Make your feature addition or bug fix.
  3. Add tests for your changes.
  4. Ensure all tests are passing.
  5. Submit a pull request.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

random_real_address-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

random_real_address-0.1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file random_real_address-0.1.3.tar.gz.

File metadata

  • Download URL: random_real_address-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for random_real_address-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5646ebe1dfe18af67c097680b362b4f965cebc5073a22256b193ea6e7f68c017
MD5 47c8b7729a3bc49ffb7a698a39ad958a
BLAKE2b-256 cef0429e166e761c3ab84b0e3cd16ad80f6ec2af308e3bfb6b1e91168bf2bad8

See more details on using hashes here.

File details

Details for the file random_real_address-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for random_real_address-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37b5e4e9678710d55ad1f33372cd698b256b568b5666d92c212e3cb54120210a
MD5 f10db2def97053730197571cf5833e67
BLAKE2b-256 b49e0dafdeb9ba4b73d0c7b03d36521c0f570b2a409fd8235acc08c14ff4cde6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page