Skip to main content

Parse single line NYC addresses and BBLs.

Project description

NYC Parser

A utility to parse NYC addresses and BBLs from a single line input.


$ pip install nyc-parser

or clone this repo, cd into it and

$ pip install .


>> from nycparser import Parser

>> p = Parser()

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

{'PHN': '74-12',
'ZIP': '11372'}

# parse a BBL
>> p.bbl('1004380006')

{'BLOCK': 438,
'LOT': 6,

# can contain special characters, just needs 10 digits
>> p.bbl('1-00438-0006')

{'BLOCK': 438,
'LOT': 6,



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 nyc-parser, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size nyc-parser-0.0.3.tar.gz (2.8 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