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
Release history Release notifications | RSS feed
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 hashes)