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

Uploaded Source

Built Distribution

nycdb-0.1.16-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nycdb-0.1.16.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for nycdb-0.1.16.tar.gz
Algorithm Hash digest
SHA256 7d793fb7f34bf5162d5ae52dd27e52b1f19793c43c4340dc659369bfa8cd2b9b
MD5 ad591ef693064a86c46a85586fee47b1
BLAKE2b-256 d1bd2b88b9686acc665539b775e87180616199584deeb687184d4f8d4b4dfb5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nycdb-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for nycdb-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 c5edd893e204aef93572751757526424eaf58e5430a6e386ed43722a357c034d
MD5 f7c38df3ff12fb4031f9ce6be8ea5ba8
BLAKE2b-256 50f0caf761beb5c7aef94a38de7b72fcbe7acb3acacf517255c87103070338ac

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