User interface for re-extraction using BANZAI-FLOYDS [docs]
Project is managed with uv
uv sync
# Activate the venv
source .venv/bin/activate
# Or run commands using uv
uv run python banzai_floyds_ui/manage.py ...
You can run a local development version.
You will want to set a BANZAI_DB_ADDRESS environment variable that points to the location of a DB with Banzai Data.
This can be either a local DB with some test data stored in it, or the production DB.
Next,run the following commands to prepare the project and run a local server.
python banzai_floyds_ui/manage.py migrate
python banzai_floyds_ui/manage.py createcachetable
python banzai_floyds_ui/manage.py collectstatic
python banzai_floyds_ui/manage.py runserver 8080
And then point your browser to http://127.0.0.1:8080/ to visit the project dashboard.
To run this in a more production-like deployment, you can use skaffold.
nix develop --impure
ctlptl apply -f local-cluster.yaml
ctlptl apply -f local-registry.yaml
kubectl create secret generic lco-local-secrets --from-literal=auth-token=${AUTH_TOKEN} --from-literal=aws-access-key-id=${AWS_ACCESS_KEY_ID} --from-literal=aws-secret-access-key=${AWS_SECRET_ACCESS_KEY} --from-literal=banzai-db-address=${BANZAI_DB_ADDRESS}
skaffold -m app dev --port-forward
This package is broken into two subpackages, one for the API, and one for the GUI (web frontend). The API is a standard Django Rest Framework. The GUI is comprised of a Django Plotly Dash app to enable user interaction.