# pydemo **Repository Path**: bohunqing/pydemo ## Basic Information - **Project Name**: pydemo - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-21 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pydemo Lesson demo for Java developers who are learning Python Agent engineering. ## What is inside - `src/pydemo/models.py`: pydantic request and response models - `src/pydemo/tools.py`: one fake tool function plus tool schema - `src/pydemo/agent.py`: a fake agent that decides whether to call a tool - `src/pydemo/main.py`: FastAPI entrypoint - `POST /demo/async-weather`: compare sequential await with concurrent await ## Run ```powershell conda activate F:\Project\py\pydemo\.conda poetry run uvicorn pydemo.main:app --reload ``` Open `http://127.0.0.1:8000/docs` after startup. See `SESSION_HANDOFF.md` if you want to continue learning on another computer. ## Test ```powershell poetry run python -m unittest ```