In this repo, we are going to feed data into PostgreSQL, retrieve that data, doing labeling, and then return it back into db
- This repo is inseparable with
https://github.com/fajarmuslim/postgres-alembic-migration
. So, you may follow instruction there to setup the db - Install poetry
pip3 install poetry
- Create virtual environment for python
python3 -m venv venv
- Change directory into
app
cd app
- Create
.env
file, the example can be found on.env-example
file. Make sure that you have same variable with your actual postgres db - Install all the python package dependency
poetry install
- Feed the data first
python3 feed_data.py
- Run the scheduler job to retrieve data, doing labeling on that data, and return the label into db on another table
python3 label_data.py