<div align="center">
# Dummy Address Data (DAD) Python Library
Dummy Address Data (DAD) - Retrieve real addresses from all around the world. (Python Client Library)
[![Build Status](https://github.com/Justintime50/dad-python/workflows/build/badge.svg)](https://github.com/Justintime50/dad-python/actions)
[![Coverage Status](https://coveralls.io/repos/github/Justintime50/dad-python/badge.svg?branch=main)](https://coveralls.io/github/Justintime50/dad-python?branch=main)
[![PyPi](https://img.shields.io/pypi/v/dad_tool)](https://pypi.org/project/dad_tool)
[![Licence](https://img.shields.io/github/license/Justintime50/dad-python)](LICENSE)
<img src="https://raw.githubusercontent.com/justintime50/assets/main/src/dad/showcase.png" alt="Showcase">
</div>
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
```bash
# Install tool
pip3 install dad_tool
# Install locally
just install
```
## Address Data
Address objects will look like the [sample below](#sample-address-object). 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
```python
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:
```json
{
"street1": "231 N 1200 W",
"street2": "UNIT 104",
"city": "OREM",
"state": "UT",
"zip": "84057",
"country": "US"
}
```
### Sample ISO Country Object
```json
{
"country": "United States of America",
"alpha_2_code": "US",
"alpha_3_code": "USA"
}
```
## Development
```bash
# To setup the `DAD` git submodule
just setup-dad
# Get a comprehensive list of development tools
just --list
```
## Attribution
- Addresses provided by [DAD](https://github.com/justintime50/dad).
Raw data
{
"_id": null,
"home_page": "http://github.com/Justintime50/dad-python",
"name": "dad-tool",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Justintime50",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/fb/cb/262cb9c57236558861e7b6ea438f3eba801257c63142e4e4a83102d18564/dad_tool-2.0.0.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n# Dummy Address Data (DAD) Python Library\n\nDummy Address Data (DAD) - Retrieve real addresses from all around the world. (Python Client Library)\n\n[![Build Status](https://github.com/Justintime50/dad-python/workflows/build/badge.svg)](https://github.com/Justintime50/dad-python/actions)\n[![Coverage Status](https://coveralls.io/repos/github/Justintime50/dad-python/badge.svg?branch=main)](https://coveralls.io/github/Justintime50/dad-python?branch=main)\n[![PyPi](https://img.shields.io/pypi/v/dad_tool)](https://pypi.org/project/dad_tool)\n[![Licence](https://img.shields.io/github/license/Justintime50/dad-python)](LICENSE)\n\n<img src=\"https://raw.githubusercontent.com/justintime50/assets/main/src/dad/showcase.png\" alt=\"Showcase\">\n\n</div>\n\nThe 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.\n\n## Install\n\n```bash\n# Install tool\npip3 install dad_tool\n\n# Install locally\njust install\n```\n\n## Address Data\n\nAddress objects will look like the [sample below](#sample-address-object). The data type of each field on an address object is a `string`. A list of addresses is an `array` of `json` objects.\n\nAttempts 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.\n\nThe following files can be found in the `data` directory.\n\n## Australia\n\n| Locations | Tag |\n| --------------- | ----- |\n| Victoria Area | AU_VT |\n\n## Canada\n\n| Locations | Tag |\n| --------------- | ----- |\n| BC Area | CA_BC |\n\n## China\n\n| Locations | Tag |\n| ------------------------- | ----- |\n| Beijing Area | CN_BJ |\n| Hong Kong - Wan Chai Area | CN_HK |\n\n## Europe\n\n| Locations | Tag |\n| ----------------------------- | ----- |\n| Germany - Wesel Area | EU_DE |\n| Spain - Countrywide | EU_ES |\n| France - Paris Area | EU_FR |\n| United Kingdom - England Area | EU_UK |\n\n## Mexico\n\n| Locations | Tag |\n| ----------------------------- | ----- |\n| Mexico - Mexico City Area | MX_MX |\n\n## United States\n\n| Locations | Tag |\n| ------------------------- | ----- |\n| Arizona - Gilbert Area | US_AZ |\n| California - Anaheim Area | US_CA |\n| Idaho - Boise Area | US_ID |\n| Kansas - Barton County | US_KS |\n| Nevada - Lincoln Area | US_NV |\n| New York - Rochester Area | US_NY |\n| Oregon - Portland Area | US_OR |\n| Texas - Austin Area | US_TX |\n| Utah - Provo Area | US_UT |\n| Washington - Spokane Area | US_WA |\n\n## Usage\n\n```python\nimport dad_tool\n\n# Grab a random UT address\naddress = dad_tool.random_address('US_UT')\nprint(address)\n\n# Alternatively, grab the entire UT list\naddresses = dad_tool.list_addresses('US_UT')\nprint(addresses)\n\n# Get the list of all ISO country codes\niso_data = dad_tool.list_iso_country_codes()\nprint(iso_data)\n```\n\n### Sample Address Object\n\nA sample address object will look like the following:\n\n```json\n{\n \"street1\": \"231 N 1200 W\",\n \"street2\": \"UNIT 104\",\n \"city\": \"OREM\",\n \"state\": \"UT\",\n \"zip\": \"84057\",\n \"country\": \"US\"\n}\n```\n\n### Sample ISO Country Object\n\n```json\n{\n \"country\": \"United States of America\",\n \"alpha_2_code\": \"US\",\n \"alpha_3_code\": \"USA\"\n}\n```\n\n## Development\n\n```bash\n# To setup the `DAD` git submodule\njust setup-dad\n\n# Get a comprehensive list of development tools\njust --list\n```\n\n## Attribution\n\n- Addresses provided by [DAD](https://github.com/justintime50/dad).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Dummy Address Data (DAD) - Real addresses from all around the world.",
"version": "2.0.0",
"project_urls": {
"Homepage": "http://github.com/Justintime50/dad-python"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0e780cf80a6c51cb310474f24ade3c119a05b03d8c4a4945a09d0817f4963ac7",
"md5": "688dd0a00120746d340a5039409bc3b9",
"sha256": "8557331426ba7dd3353244129394e71c56a5f2b1c614fe80de2893ea85adb3ef"
},
"downloads": -1,
"filename": "dad_tool-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "688dd0a00120746d340a5039409bc3b9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.9",
"size": 51033,
"upload_time": "2024-07-16T23:00:11",
"upload_time_iso_8601": "2024-07-16T23:00:11.671254Z",
"url": "https://files.pythonhosted.org/packages/0e/78/0cf80a6c51cb310474f24ade3c119a05b03d8c4a4945a09d0817f4963ac7/dad_tool-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fbcb262cb9c57236558861e7b6ea438f3eba801257c63142e4e4a83102d18564",
"md5": "939eafaa489a48b8c951c9d2441ddca1",
"sha256": "ed909136a08b65c3f5b3c75fd6be2a914cadf861cc7b8b33779111d2f062a376"
},
"downloads": -1,
"filename": "dad_tool-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "939eafaa489a48b8c951c9d2441ddca1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.9",
"size": 37106,
"upload_time": "2024-07-16T23:00:14",
"upload_time_iso_8601": "2024-07-16T23:00:14.426012Z",
"url": "https://files.pythonhosted.org/packages/fb/cb/262cb9c57236558861e7b6ea438f3eba801257c63142e4e4a83102d18564/dad_tool-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-16 23:00:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Justintime50",
"github_project": "dad-python",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "dad-tool"
}