Skip to main content

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)

Uploaded Source

File details

Details for the file street-address-0.1.0.tar.gz.

File metadata

File hashes

Hashes for street-address-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cd82ae16964875b56d147040841e242454a0e0281c07341cb9c13bcf6e6e5cb9
MD5 6987e241ade626edcb109c5ce297727d
BLAKE2b-256 846777d0b8f9ed8ed31fd8cdbbcda1854a79b437b4e71b458cc1d2b613377528

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 Sentry Error logging StatusPage Status page