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…

Install

Addresser can be installed from pip:

$ pip install addresser

Usage

from addresser import parse_location

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

Result

{
    '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.

Source Distribution

addresser-1.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

addresser-1.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file addresser-1.0.1.tar.gz.

File metadata

  • Download URL: addresser-1.0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for addresser-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b177416523a82a7c8bcea936738b4cc0ff33fb8762b946bcbfee952cbefa12b4
MD5 2bdff2797bbc6fed423e1df24dde58f1
BLAKE2b-256 e9bfe4dff583d568974205a1e5dedd1a9df61ae5b17a204da83c04bf7e6c5336

See more details on using hashes here.

File details

Details for the file addresser-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: addresser-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for addresser-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 015db7323fd66c8feaa4696558a9a600efb04d7c17778da6811a58bee1dab6a9
MD5 c88460d285e5892821608ab728584103
BLAKE2b-256 e4f0cd8b2ec0b41e6761204c7274ead22a714ddd56f42f78634c3873cb5a47e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page