Uses uv and fastapi.
Note
There is a devcontainer you should just use that but here is a list of things you'll need if not
- Install uv (ran originally with 0.10.7)
- Install docker
- Install npm/node (ran originally with Node 24)
uv sync
uv run python generate.py
rm -rf generated/python && mkdir -p generated/python
docker run --user $(id -u):$(id -g) -v "./generated/python:/app/output" -v "./openapi.json:/app/openapi.json" mcr.microsoft.com/openapi/kiota:1.30.0 "generate" -l python -c PythonClient -n client -d openapi.json --exclude-backward-compatible --clean-output --additional-data false
rm -rf app/generated/typescript && mkdir -p app/generated/typescript
docker run --user $(id -u):$(id -g) -v "./generated/typescript:/app/output" -v "./openapi.json:/app/openapi.json" mcr.microsoft.com/openapi/kiota:1.30.0 "generate" -l typescript -c FrontendClient -n client -d openapi.json --exclude-backward-compatible --clean-output --additional-data false
- Install dependencies:
uv sync
In one terminal window, start the FastAPI server using uv:
uv run fastapi devThe server will start on http://localhost:8000. You should see output like:
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
In another terminal window, run the python verification script:
uv run python verify_sse_client.pyNote
Notice it'll run infinitely and not return any data as the client expects a full response before handling it.
In another terminal window, run the typescript verification script:
cd app
npm run dev
Note
Notice it'll run infinitely and not return any data as the client expects a full response before handling it.