-
All the relevant commands for running CPDB is wrapped in the cli bash script
./cpdb.sh, please read the file for more details. -
The capital spending scraping process should be done right after we load
fisa_capitalcommitmentsto data library. A separate bash script will importfisa_capitalcommitmentsto bigquery and we will create export the capital spending tablecpdb_capital_spendingvia a bigquery command (seebash/11_spending.shfor more details)Note that this process is triggered via workflow dispatch
-
Make sure to edit the
version.envfile to reflect the current fiscal year.The fiscal year begins on July 1st of one calendar year and ends on June 30th of the following calendar year (Mayor's Office of Management and Budget: When does the City's fiscal year begin and end?). The output files will be stored in subfolders named after branches.
-
Since CPDB is still a private database. You can generate a pre-signed sharable link using the
./cpdb.sh sharecommand. Run./cpdb.sh share --helpto see instructions.
Note: the url will only be valid for 7 days.