Model/etl/costs
2025-03-16 18:47:41 +00:00
..
app.py changing simulation methodology to use corrected floor area 2025-03-16 18:47:41 +00:00
README.md Created costs elt app 2023-11-23 19:17:58 +00:00
requirements.txt Created costs elt app 2023-11-23 19:17:58 +00:00

Costs ETL Application

This is a simple application to push the materials costs data to the database.

How to run

Ensure you have a .env file in the base Model directory with the following variables

DB_HOST="Your db host"
DB_PORT="Your db port"
DB_USER="Your db user"
DB_PASSWORD="Your db password"
DB_NAME="Your db name"

Make sure your python path environment variable pouints to the base Model directory. To set the PYTHONPATH environment variable, run the following command from the base Model directory

export PYTHONPATH=`pwd`

From the base Model directory, install the requirements by running the following command

pip install -r etl/costs/requirements.txt

Then run the following command to run the application

python etl/costs/app.py