dataflow.api.run_chess_api¶

Chess API demonstration script.

This script launches a standalone API server for the chess game with WebSocket support and Supabase integration.

Usage:

python run_chess_api.py [–port PORT]

Environment variables:

SUPABASE_URL: The URL of your Supabase instance SUPABASE_SERVICE_KEY: Service role API key SUPABASE_ANON_KEY: Anonymous API key

Attributes¶

Functions¶

main()

Parse arguments and run the chess API server.

run_chess_api([port])

Run the chess API server.

verify_environment(→ bool)

Verify that required environment variables are set.

Module Contents¶

dataflow.api.run_chess_api.main()¶

Parse arguments and run the chess API server.

dataflow.api.run_chess_api.run_chess_api(port: int = 8000)¶

Run the chess API server.

dataflow.api.run_chess_api.verify_environment() bool¶

Verify that required environment variables are set.

dataflow.api.run_chess_api.logger¶