Skip to main content

database of nyc housing data

Project description

a tool for building a database of NYC housing data

This is a Python library and cli tool for installing, updating and managing NYC-DB, a postgres database of Housing Data for NYC.

why is this needed?

New York City is in a housing crisis. Some landlords leave their buildings in despair and let their tenants suffer without heat in winter. Others evict their tenants, legally or illegally, in order to flip buildings and profit off of gentrification. Affordable housing is a scarce resource.

Residents, lawyers, tenants, and organizers who want to use data in their struggle turn to proprietary databases and resources, like PropertyShark, designed for real estate or contend with CSV and printouts from city websites. NYC-DB aims to give technologists and researchers who want to volunteer their time helping community groups who are defending the city against the real estate industry a leg up by providing a ready-to-use database filled with housing data.

How to use

After installing via pip:

pip3 install nycdb

You’ll be able to use the program nycdb to import a database.

For example to load all of hpd violations:

nycdb --download hpd_violations
nycdb --load hpd_violations -P YOUR_PG_PASSWORD -D YOUR_DATABASE

To see all possible datasets:

nycdb --list-datasets

By default the downloaded data files are stores in ‘./data’. Use –root-dir to change the location of the data directory.

To see more options run: nycdb –help

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

nycdb-0.1.4.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

nycdb-0.1.4-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file nycdb-0.1.4.tar.gz.

File metadata

  • Download URL: nycdb-0.1.4.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nycdb-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b1ac4e8f041ec5dfc908dcec2fd3c1299c8826e08eb4426c671394e51bde8e9a
MD5 22f8e2cd354f4631d2491108854e7b73
BLAKE2b-256 24fb8fa712693ebc398ebb721ff8338d910fa1e40730a6528acc02ab675ab00b

See more details on using hashes here.

File details

Details for the file nycdb-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nycdb-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d5dccbd2deaedbb55fe9e6f3dd5a6f086af395ccb45dbf34e0ab7d5f692f25ce
MD5 5871acfec662b42795a5d8f7b4a0d417
BLAKE2b-256 2447bcffc7842f5fd656b83084b96b7f13d8d7e792611a4b164c0fdba785b88f

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