This project aims to provide automation for sorting and formatting data in a Google Sheets spreadsheet using the Google Sheets API. It includes functionality to sort data based on a specific column and update the spreadsheet with the sorted data. Additionally, it supports formatting cells, such as aligning cell contents horizontally to the center.
Or use this video tutorial.
Create credentials.json > service account > KEYS > ADD KEY JSON
Share "Your Table" with your service account email
cd backend/
echo "Creating .env file..."
cat <<EOL > .env
# Get form url https://docs.google.com/spreadsheets/d/__HERE_IS_SHEET_ID__/edit#gid=0
SHEET_ID="..."
EOL
cd ..
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py