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
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.12.tar.gz
.
File metadata
- Download URL: nycdb-0.1.12.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d62839441674b7b3ba99e695bc1b0be8061e12d27cc74a68b76cbaa3d1de85 |
|
MD5 | 7d1bcfff53f2b1bc7e9cde57fbe6d1df |
|
BLAKE2b-256 | 2a786799b1a8f8ba0ff37c7d27e9deb79af8e0f2bd4df4d2d8393b950d6d6739 |
File details
Details for the file nycdb-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: nycdb-0.1.12-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8377e34c541bac62a29122396bccefc169a7422c1f9f1c1232b04be764cd50a |
|
MD5 | a76b9d53d5487ec2c48497d00ff58eae |
|
BLAKE2b-256 | 965062f4a698cc6a4dffa78fe197ae7049808552f30843637e827147a19fd1d5 |