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'}

Contribute

Please do, issues and PRs welcome.

License

MIT

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.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: nyc-parser-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 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.2.tar.gz
Algorithm Hash digest
SHA256 aaf415d9989aff7986b42ba7d3eb174042bc79cdec79bc59b7a1feefc2ade244
MD5 35580bad21c5679cf0b71e9fa4d82c5f
BLAKE2b-256 5441d649327523e72b987ee2e243ac1691478008cf332d2065145b6ed4ead477

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