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
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
Built Distribution
File details
Details for the file nycdb-0.1.5.tar.gz
.
File metadata
- Download URL: nycdb-0.1.5.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e898e1217b3bb36cc5fa618652026650d52c0082854b172908594fc69c4ecf |
|
MD5 | 3be780433644cef590ca06a33ff226be |
|
BLAKE2b-256 | 697d83c242c5c6f74bd526fa6d10d12e75f3ab00a6a2b84909afd0bfdd1adeb0 |
File details
Details for the file nycdb-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: nycdb-0.1.5-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f202e02fb7281760da67f913535ffd3c8f6666ef8a82e042f23345c7ed2997e |
|
MD5 | 981824dceee569c0052eb7d7b5c1ac11 |
|
BLAKE2b-256 | c937ce9a84bce2abf3b6c59298831535d7de311c407ed350744b746ca2d2952b |