Code for building the Property Praxis database
poetry install --no-root
make data
make tiles
- Download a parcel file from the city's data portal
- Create a list of parcels that have changed ownership and aren't currently coded by updating and running
scripts/identify_ownership.py - Once the coding is done for the year, save it to
input/own-id-$YEAR.csv - Update and run
scripts/own_id_map.pyto create a new mapping of all taxpayers that have been coded to speculator names - Create
clean_$YEAR.pyand run it to create new files - Backup any created files to the S3 bucket
- Update
scripts/clean_files.pywith any changes from the latest data - With a fresh database, run
sql/schema.sqlto load the database schema - With the schema loaded, run
python scripts/clean_files.pyto merge and reload the database - Run
make tiles/$YEAR/to regenerate the vector tiles and then deploy them to S3 - Run
pg_dumpandpg_restorewith the--cleanflag to overwrite the existing database with new records