Metadata-Version: 2.1
Name: nycdb
Version: 0.1.9
Summary: database of nyc housing data
Home-page: https://github.com/aepyornis/nyc-db
Author: ziggy
Author-email: nycdb@riseup.net
License: AGPL-3.0-or-later
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3
Requires-Dist: PyYAML (>=3)
Requires-Dist: psycopg2 (>=2.7)
Requires-Dist: pyproj (>=1.9.5)
Requires-Dist: requests (>=2.18)
Requires-Dist: xlrd (>=1.1.0)

*****
NYCDB
*****

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:

.. code-block:: bash

    pip3 install nycdb


You'll be able to use the program `nycdb` to import a database.


For example to load all of hpd violations:

.. code-block:: bash

    nycdb --download hpd_violations
    nycdb --load hpd_violations -P YOUR_PG_PASSWORD -D YOUR_DATABASE

To see all possible datasets:

.. code-block:: bash

   nycdb --list-datasets


After a dataset has been loaded you can verify it with "--verify"

.. code-block:: bash

   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`


