757 B
757 B
Dev setup
Python environment
This repo expects a Python venv in .venv/.
The easiest path on macOS is to use the helper script:
./setup_venv.sh
That script:
- Creates (or reuses)
.venv/ - Tries to locate
mariadb_configunder/opt/homebrew - Installs
mariadb-connector-cvia Homebrew if needed - Exports
MARIADB_CONFIGand runspip install -r requirements.txt
If you already have .venv/ created and just want to activate with the MariaDB environment variable:
source ./activate_with_env.sh
Requirements
Dependencies are listed in requirements.txt and include:
fastapi+uvicorn(API server)mariadb(DB access; requires MariaDB Connector/C to build)shortuuid(player id generation)