Dummy Address Data (DAD) Python Library
Dummy Address Data (DAD) - Retrieve real addresses from all around the world. (Python Client Library)
The DAD Python library is the perfect companion to quickly bootstrap address data in your application. DAD provides real addresses from all over the world with a consistent data structure so you can spend less time looking up addresses and address rules and more time coding.
Install
# Install tool
pip3 install dad_tool
# Install locally
just install
Address Data
Address objects will look like the sample below. The data type of each field on an address object is a string. A list of addresses is an array of json objects.
Attempts have been made to verify addresses and ensure that street1, city, state, and zip are present on all records. Some lists may be shorter than others to avoid complexity or because of a lack of accurate data.
The following files can be found in the data directory.
Australia
| Locations | Tag |
|---|---|
| Victoria Area | AU_VT |
Canada
| Locations | Tag |
|---|---|
| BC Area | CA_BC |
China
| Locations | Tag |
|---|---|
| Beijing Area | CN_BJ |
| Hong Kong - Wan Chai Area | CN_HK |
Europe
| Locations | Tag |
|---|---|
| Germany - Wesel Area | EU_DE |
| Spain - Countrywide | EU_ES |
| France - Paris Area | EU_FR |
| United Kingdom - England Area | EU_UK |
Mexico
| Locations | Tag |
|---|---|
| Mexico - Mexico City Area | MX_MX |
United States
| Locations | Tag |
|---|---|
| Arizona - Gilbert Area | US_AZ |
| California - Anaheim Area | US_CA |
| Idaho - Boise Area | US_ID |
| Kansas - Barton County | US_KS |
| Nevada - Lincoln Area | US_NV |
| New York - Rochester Area | US_NY |
| Oregon - Portland Area | US_OR |
| Texas - Austin Area | US_TX |
| Utah - Provo Area | US_UT |
| Washington - Spokane Area | US_WA |
Usage
import dad_tool
# Grab a random UT address
address = dad_tool.random_address('US_UT')
print(address)
# Alternatively, grab the entire UT list
addresses = dad_tool.list_addresses('US_UT')
print(addresses)
# Get the list of all ISO country codes
iso_data = dad_tool.list_iso_country_codes()
print(iso_data)
Sample Address Object
A sample address object will look like the following:
{
"street1": "231 N 1200 W",
"street2": "UNIT 104",
"city": "OREM",
"state": "UT",
"zip": "84057",
"country": "US"
}
Sample ISO Country Object
{
"country": "United States of America",
"alpha_2_code": "US",
"alpha_3_code": "USA"
}
Development
# To setup the `DAD` git submodule
just setup-dad
# Get a comprehensive list of development tools
just --list
Attribution
- Addresses provided by DAD.
Metadata
Release files for dad-tool 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dad_tool-3.0.0.tar.gz | 37.2 kB | Without provenance | Details for dad_tool-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dad_tool-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for dad_tool-3.0.0-py3-none-any.whl |
Total release size: 88.2 kB
Release files / dad_tool-3.0.0.tar.gz
| Download URL | dad_tool-3.0.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ccc54ef88ccf2f0f78eba3e47e696f8fb995ae4e3e512db3c8f8988b96eb15c
|
|
BLAKE2b-256 checksum How to use checksums |
c69cb33c70e174ab23b4555be7cae057401b19b4ba303d15f6d73b3d14301461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / dad_tool-3.0.0-py3-none-any.whl
| Download URL | dad_tool-3.0.0-py3-none-any.whl |
|---|---|
| Size | 51.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1b337a7962ec004f94d6ec6c52a7962c0c7cf5dba569d273eaeddf7595e2042
|
|
BLAKE2b-256 checksum How to use checksums |
260f16daa3d377550b92ec545dce04715242e0d40b89ec7165cd87775d91cc4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for dad-tool 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.