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

Uploaded Source

Built Distribution

nycdb-0.1.23-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nycdb-0.1.23.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.23.tar.gz
Algorithm Hash digest
SHA256 ca0b1c42260ff3989b23c54330849447655298aaa284a205d536994cce5c38cd
MD5 884b9a9eac5b22bef672ef1c62190c7e
BLAKE2b-256 e967909352a4305fcc9a5649cbb5d477a6b0096607b22cbfe4c3780a5ee6cccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nycdb-0.1.23-py3-none-any.whl
  • Upload date:
  • Size: 44.2 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.23-py3-none-any.whl
Algorithm Hash digest
SHA256 53e3151bfbf9103cedc3913329585b388ca1d4a5fc8272ba8a892a756d94af3c
MD5 1f3c323a786ca6f405dbcc398748f263
BLAKE2b-256 1e4757e36f2f60932d2ddefa150c8bf9d82d836cb533695ec169b0280756779e

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