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

Functions¶

main()

Parse arguments and run the chess API server.

run_chess_api([port])

Run the chess API server.

verify_environment()

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=8000)¶

Run the chess API server.

Parameters:

port (int)

dataflow.api.run_chess_api.verify_environment()¶

Verify that required environment variables are set.

Return type:

bool