Street address parser and formatter
Installation
From source code:
python setup.py install
From pypi:
pip install street-address
Usage
from streetaddress import StreetAddressFormatter, StreetAddressParser
addr_parser = StreetAddressParser()
addr = addr_parser.parse("1600 Pennsylvania Ave")
print addr['house']
print addr['street_full']
print addr['street_name']
print addr['street_type']
addr = addr_parser.parse("One Union Square, Apt 22-C")
print addr['house']
print addr['street_full']
print addr['street_name']
print addr['street_type']
print addr['suite_num']
print addr['suite_type']
Acknowledgement
Based on test cases from http://pyparsing.wikispaces.com/file/view/streetAddressParser.py
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
street-address-0.1.0.tar.gz
(5.5 kB
view details)
File details
Details for the file street-address-0.1.0.tar.gz.
File metadata
- Download URL: street-address-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd82ae16964875b56d147040841e242454a0e0281c07341cb9c13bcf6e6e5cb9
|
|
| MD5 |
6987e241ade626edcb109c5ce297727d
|
|
| BLAKE2b-256 |
846777d0b8f9ed8ed31fd8cdbbcda1854a79b437b4e71b458cc1d2b613377528
|