Skip to main content

A Python port of the `parse-address` npm library

Project description

Addresser parses and normalizes street addresses and intersections. It is a port of the Node package, parse-address, which in turn is a port of the PERL package, Geo::StreetAddress::US.

From the Geo::StreetAddress::US description:

Geo::StreetAddress::US is a regex-based street address and street intersection parser for the United States. Its basic goal is to be as forgiving as possible when parsing user-provided address strings. Geo::StreetAddress::US knows about directional prefixes and suffixes, fractional building numbers, building units, grid-based addresses (such as those used in parts of Utah), 5 and 9 digit ZIP codes, and all of the official USPS abbreviations for street types and state names…


Addresser can be installed from pip:

$ pip install addresser


from addresser import parse_location

parse_location('1005 N Gravenstein Highway Sebastopol CA 95472')


    'number': '1005',
    'prefix': 'N',
    'street': 'Gravenstein',
    'type': 'Hwy',
    'city': 'Sebastopol',
    'state': 'CA',
    'zip': '95472'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for addresser, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size addresser-1.0.1-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size addresser-1.0.1.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page