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.

For more background information on this project, the api, and to download the full database dump see: https://github.com/aepyornis/nyc-db

How to use

Requirements: Postgres and Python3

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

After a dataset has been loaded you can verify it with “–verify”

nycdb --verify hpd_violations
nycdb --verify-all

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

## Adding New Datasets

[Guide Here](ADDING_NEW_DATASETS.md)

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

Uploaded Source

Built Distribution

nycdb-0.1.22-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nycdb-0.1.22.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1

File hashes

Hashes for nycdb-0.1.22.tar.gz
Algorithm Hash digest
SHA256 fd16bb0ea878834666441035affb1919868d838d7e296d4d7723de78325bb13a
MD5 b9f70672f791750dde977054a543935c
BLAKE2b-256 6b5adff3fe6ab737c7b4fa4397a798079e7f4228488f792533744bb3591fb502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nycdb-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3rc1

File hashes

Hashes for nycdb-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 6e425270e2c69b6c83d3890218002eb9b6f6dc494bb39820e10211e98a3a3a96
MD5 efee47ac4afc6cea7d0ea27af7d8febf
BLAKE2b-256 917d058cac380aa5a1765994e6346509bd5d20b3b3c8ead29271b7ed6c05eef2

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