A collection of toolkit and algorithms for handling US addresses
Project description
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" href="_static/styles/sphinx-book-theme.css?digest=14f4ca6b54d191a8c7657f6c759bf11a5fb86285" type="text/css" />
<script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=927b94d3fcb96560df09"></script>
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/scripts/sphinx-book-theme.js?digest=5a5c038af52cf7bc1a1ec88eea08e6366ee68824"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'index';</script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Examples" href="example.html" />
Back to top
<nav class="bd-header navbar navbar-expand-lg bd-navbar">
</nav>
<div class="bd-sidebar-primary bd-sidebar">
<div class="sidebar-primary-items__start sidebar-primary__section">
<div class="sidebar-primary-item">
<img src="_static/android-chrome-512x512.png" class="logo__image only-light" alt="Logo image"/>
<script>document.write(`<img src="_static/android-chrome-512x512.png" class="logo__image only-dark" alt="Logo image"/>`);</script>
</div>
<main id="main-content" class="bd-main">
<div class="bd-content">
<div class="bd-article-container">
<div class="bd-header-article">
<div class="header-article-items__start">
<div class="header-article-item"><label class="sidebar-toggle primary-toggle btn btn-sm" for="__primary" title="Toggle primary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
</div>
<div class="header-article-items__end">
<div class="header-article-item">
</div>
Send The Raven
<div>
<h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
Send The Raven#
Send the Raven is a Python library that provides a comprehensive collection of toolkits and algorithms for handling US addresses. It aims to simplify the process of working with US addresses, offering functionalities such as parsing, validation, formatting, and more.
Features#
Address Parsing: Extract structured information from US addresses, including street names, house numbers, city, state, and ZIP codes.
Address Validation: Validate US addresses to ensure accuracy and compliance with USPS standards.
Address Formatting: Format US addresses in a consistent and standardized manner for various purposes.
Additional Utilities: Additional utilities to enhance address handling, such as address comparison, address normalization, and more.
Installation#
send_the_raven can be installed from PyPI:
pip install send_the_raven
Usage#
Here is a quick example of using send_the_raven to validate addresses:
from send_the_raven import Validator
addresses = [
{"street": "123 Main St", "city": "Anytown", "state": "CA", "zip_code": "12345"},
{"street": "456 Oak Rd", "city": "Forest", "state": "VT", "zip_code": "67890"}
]
validator = Validator(addresses, usps_id="MY_ID")
valid_addresses = validator()
send_the_raven handles parsing the address data, constructing the validation requests, and returning the corrected addresses.
The Address class also provides methods for normalizing, geocoding, and working with addresses.
Acknowledgments#
send_the_raven uses the following open source libraries:
usaddress-scourgify for parsing addresses.
xmltodict for working with XML.
aiohttp for asynchronous HTTP requests.
geopy for geocoding.
h3-py for geospatial indexing.
We thank the developers of these libraries for their contributions.
</article>
<footer class="prev-next-footer">
<!-- Previous / next buttons -->
</div>
<div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
</div>
<footer class="bd-footer-content">
</main>
</div>
<script src="_static/scripts/bootstrap.js?digest=927b94d3fcb96560df09"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=927b94d3fcb96560df09"></script>
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file send_the_raven-0.1.0.tar.gz.
File metadata
- Download URL: send_the_raven-0.1.0.tar.gz
- Upload date:
- Size: 161.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
092ea47427f451d76b1f7335e937ea5c0897aa233b77660cbf1ed78e1b8e6a0b
|
|
| MD5 |
7b2dfc1b680bf89abfcb3f94ddcce616
|
|
| BLAKE2b-256 |
0fafcbb4e1a5786e33d920def4fe01955872581b2d18bfd3dba3322aec1bed83
|
File details
Details for the file send_the_raven-0.1.0-py3-none-any.whl.
File metadata
- Download URL: send_the_raven-0.1.0-py3-none-any.whl
- Upload date:
- Size: 159.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb16a404374603c14f4f0ccc9edc14a5fdf7dabaf2db1a305249ee8029076173
|
|
| MD5 |
567d35cf118aa2687c3e45ade63c5529
|
|
| BLAKE2b-256 |
2a42952b0c76d818415ef5eccf0ef2232863c7586644e34df3f272853db10b20
|