Skip to main content

Parse single line NYC addresses.

Project description

NYC Parser

A utility to parse NYC addresses from a single line input. Returns a dictionary with PHN, STREET, BOROUGH_CODE, BOROUGH_NAME, ZIP if values are present.

Install

$ pip install nyc-parser

or clone this repo, cd into it and

$ pip install .

Usage

>> from nycparser import Parser

>> p = Parser()

>> p.address('74-12 35th ave, Queens NY 11372')

{'PHN': '74-12',
'STREET': '35TH AVE',
'BOROUGH_CODE': 4,
'BOROUGH_NAME': 'QUEENS',
'ZIP': '11372'}

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

nyc-parser-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file nyc-parser-0.0.1.tar.gz.

File metadata

  • Download URL: nyc-parser-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2

File hashes

Hashes for nyc-parser-0.0.1.tar.gz
Algorithm Hash digest
SHA256 19ef0fc8aadc1ae35f3700eb61134de0591462bffcc20418fcc406d5415fda1a
MD5 cfb45db1bddfdd79b717723c9f7edca6
BLAKE2b-256 01003a77014698c92b97cc92b80dac0ad977caed075ca7e98c48969ec2df7d07

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