Data processing code for BA Torment
Bug Report
|
Request
Data processing code for BA Torment.
It is processed on my local machine in schedule.
Most of the processed data is updated to the Oracle Object Storage, and the rest is updated to the PostgreSQL database powered by Supabase.
Period | Description |
---|---|
2023.07 ~ 2024.03 | Used python script to process data |
2024.03 ~ 2024.10 | Extended the data schema to serve more information, configured auto-migration via GitHub Actions |
2024.10 ~ | Migrated data to Oracle Object Storage & Supabase, deployed the backend |
Data source | Description |
---|---|
Schale DB | To extract character data |
info.herdatasam.me | To extract party data |
Arona.AI 1 | To validate the data + get additional information |
-
You need to install Python 3.12 and Poetry to manage the packages.
-
You need to set environment variables to run the script.
POSTGRES_HOST= POSTGRES_PORT= POSTGRES_USER= POSTGRES_PASSWORD= POSTGRES_DBNAME= BATORMENT_UPLOAD_URL="presigned-url-to-upload-images"
Activate the virtual environment
poetry shell
Install packages
This will install the required packages in the whole repository.
poetry install
Run the script
If you want to run the script manually, run ba-torment-batch/main.py
.
See the CONTRIBUTING.md.
Footnotes
-
The developer of Arona.AI is same as the developer of info.herdatasam.me. ↩