skip to navigation
skip to content

Not Logged In

street-address 0.1.0

Street address parser and formatter

Latest Version: 0.1.1

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

 
File Type Py Version Uploaded on Size
street-address-0.1.0.tar.gz (md5) Source 2012-11-26 5KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 34 downloads in the last week
  • 238 downloads in the last month