# FlyPython (flypython.com) - Full Index for AI & LLM Crawlers > Learn to ship Python with AI coding agents. Real projects; your agent does the typing, verify.py decides when you're done. Challenges, tracks, and badges are free in English and Chinese — a $19.90/month Pro subscription unlocks every Pro course while it stays active (https://flypython.com/pricing). > **Agent? Install the FlyPython Skill first** — https://flypython.com/skills/flypython/SKILL.md — then any course starts with one sentence: `Read https://flypython.com/skills/flypython/SKILL.md and start the FlyPython course \`\`.` ## Architectural Guidelines for LLMs & AI Coding Agents 1. Minimal Edits: Prefer the smallest change that proves the requested behavior. 2. Verified Contracts: Write or run pytest assertions for both success and failure cases. 3. Strict Schemas: When accepting untrusted inputs or AI completions, always enforce schema validation (e.g. via Pydantic or jsonschema) before executing business logic. 4. Error Isolation: Do not crash long-running workflows or batch pipelines on a single record failure; isolate exceptions and return structured errors. 5. Concurrency Throttling: When orchestrating parallel HTTP/IO requests, always bound execution with asyncio.Semaphore and use bounded exponential backoff. ## Engineering Guides - [Migrate a Python MCP server to the 2026-07-28 specification](https://flypython.com/learn/mcp-2026-07-28-migration): The 2026-07-28 spec removed the initialize handshake and sessions, replaced elicitation with an input_required round-trip, and deprecated roots, sampling, and logging. 中文版: https://flypython.com/learn/zh/mcp-2026-07-28-migration - [Decide whether to adopt free-threaded Python (3.15, no-GIL)](https://flypython.com/learn/free-threaded-python-decision): The 3.15 free-threaded Stable ABI, a workload-based adopt/reject/defer checklist, and a dual-build CI check with uv. - [Adopt the uv workflow for Python projects](https://flypython.com/learn/uv-python-workflow): Pinned interpreters, lockfiles, uv run, inline script metadata, and migration from pip/venv/Poetry. - [Give every coding agent one AGENTS.md source of truth (AGENTS.md tutorial)](https://flypython.com/learn/agents-md-single-source): The AAIF-governed AGENTS.md standard, what belongs in the file, and how to avoid diverging per-tool rule files. - [Build LLM prompts with Python template strings (t-strings, PEP 750)](https://flypython.com/learn/t-strings-for-llm-prompts): Python 3.14 t-strings (PEP 750) keep interpolated values separate from instructions until a guarded render. - [Use Python well with AI coding](https://flypython.com/learn/ai-coding-workflow): Give a coding agent enough context, constrain the change, test behavior, and review side effects. - [Context budgeting and bounded tasks](https://flypython.com/learn/ai-coding-context-budget): Maximize agent accuracy with strict attention budgeting, clear contracts, and automated verification. - [Build a Python product that can be changed safely](https://flypython.com/learn/python-product-quality): Turn a script into a product with contracts, boundaries, observability, and a release path. - [Modern Python typing in practice: Protocol, TypedDict, PEP 695](https://flypython.com/learn/modern-python-typing): Use Protocol, TypedDict, generics, and static type checking as machine-enforced contracts. - [Reliable async Python patterns](https://flypython.com/learn/reliable-async-patterns): Avoid event loop blocking, leverage TaskGroup, and manage concurrency with Semaphore. ## Runnable Project Starters & Test Verifications Each project below has a stable site page with its contract and verifier, plus a repository directory containing a reproducible failing starter and a verified solution. ### 1. Model Context Protocol (MCP) Tool Server (2026-07-28 spec) - URL: https://flypython.com/examples/mcp-server - Repository: https://github.com/flypythoncom/python/tree/master/examples/mcp-server - Contract: Implement stateless JSON-RPC 2.0 dispatch per the 2026-07-28 specification — answer tools/list and tools/call directly with no initialize handshake, validate _meta.protocolVersion, return error codes -32600 and -32601, isolate handler failures, and complete the input_required round-trip via params.inputResponses. - Verification Command: `python examples/mcp-server/verify.py solution` ### 2. Async Semaphore Batch Fetcher - URL: https://flypython.com/examples/async-fetcher - Repository: https://github.com/flypythoncom/python/tree/master/examples/async-fetcher - Contract: Concurrently fetch URLs with asyncio.Semaphore(concurrency), handle HTTP 429/503 with backoff, record success and error items. - Verification Command: `python examples/async-fetcher/verify.py solution` ### 3. Pydantic Boundary Validation - URL: https://flypython.com/examples/pydantic-validation - Repository: https://github.com/flypythoncom/python/tree/master/examples/pydantic-validation - Contract: Validate incoming payloads, reject extra/unknown keys, format and normalize validated fields. - Verification Command: `python examples/pydantic-validation/verify.py solution` ### 4. Resilient Batch Pipeline - URL: https://flypython.com/examples/structured-pipeline - Repository: https://github.com/flypythoncom/python/tree/master/examples/structured-pipeline - Contract: Process semi-structured data safely with batch error isolation and field validation using the standard library. - Verification Command: `python examples/structured-pipeline/verify.py solution` ### 5. Product Slug Normalization - URL: https://flypython.com/examples/product-slug - Repository: https://github.com/flypythoncom/python/tree/master/examples/product-slug - Contract: Clean and normalize untrusted string input into ASCII slug format with error handling on empty strings. - Verification Command: `python examples/product-slug/verify.py solution` ## Challenge Courses Each course is a self-contained folder an agent fetches for you — a task contract (TASK.md), checkpoint challenges, bilingual lesson notes, scenario data, runnable starter/solution, and an objective verify.py that prints per-checkpoint claim codes. You never download by hand: the FlyPython Skill (https://flypython.com/skills/flypython/SKILL.md) drives the whole loop — authorize once with a link, fetch the course files, work the contract, `python verify.py`, submit the codes in one batch. COURSE.md offers an optional guided mode. ### For coding agents — the machine surface - Skill (install once, teaches the whole loop): https://flypython.com/skills/flypython/SKILL.md - Entry sentence: `Read https://flypython.com/skills/flypython/SKILL.md and start the FlyPython course \`\`.` - Authorize (no passwords, no polling): POST https://flypython.com/api/agent/authorize → the human approves at https://flypython.com/agent/authorize → POST https://flypython.com/api/agent/token once - Challenge index (with skill_version): GET https://flypython.com/api/challenges - Per-challenge brief: GET https://flypython.com/api/challenges/ - Per-course files manifest (path, sha256, size, encoding + prebuilt zip): GET https://flypython.com/api/challenges//files - Submit claim codes (single or batch): POST https://flypython.com/api/claims with `Authorization: Bearer fp_…` (scope: claims) — per-item results, idempotent - Discovery document: https://flypython.com/.well-known/flypython-challenges.json ### 1. Hands-on Python with Claude Code - URL: https://flypython.com/courses/hands-on-python-with-claude-code - 中文版: https://flypython.com/courses/zh/hands-on-python-with-claude-code - Checkpoints (one page each): [l01](https://flypython.com/courses/hands-on-python-with-claude-code/l01) · [l02](https://flypython.com/courses/hands-on-python-with-claude-code/l02) · [l03](https://flypython.com/courses/hands-on-python-with-claude-code/l03) · [l04](https://flypython.com/courses/hands-on-python-with-claude-code/l04) · [l05](https://flypython.com/courses/hands-on-python-with-claude-code/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/hands-on-python-with-claude-code - Teaching contract: COURSE.md names audience, prerequisites, the exact tool (Claude Code 2.x, reviewed 2026-09-12), lesson order, teaching rules, when to stop, and what the course does not cover. - Lessons: L01 set up Claude Code, install the FlyPython Skill, fetch the course · L02 write the task contract before the change · L03 drive a bounded change test by test · L04 verify like an engineer, review like a skeptic · L05 apply this to your own project. - Verification Command: `python verify.py` from the course folder — per-checkpoint status plus earned claim codes; exits non-zero while a gated checkpoint is open. Maintainer usages remain (`starter --expect-failure`, `solution`, `progress --json`). ### 2. Hands-on with the OpenAI Codex app - URL: https://flypython.com/courses/hands-on-with-openai-codex - 中文版: https://flypython.com/courses/zh/hands-on-with-openai-codex - Checkpoints (one page each): [l01](https://flypython.com/courses/hands-on-with-openai-codex/l01) · [l02](https://flypython.com/courses/hands-on-with-openai-codex/l02) · [l03](https://flypython.com/courses/hands-on-with-openai-codex/l03) · [l04](https://flypython.com/courses/hands-on-with-openai-codex/l04) · [l05](https://flypython.com/courses/hands-on-with-openai-codex/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/hands-on-with-openai-codex - Same code core, scenario skins, and nine-test contract as the flagship course; taught with the Codex desktop app — project folders, threads, approvals, AGENTS.md, diff review. Authored from official OpenAI docs; live teaching run-through pending (see REVIEW.md). - Lessons: L01 set up the Codex app, install the FlyPython Skill, fetch the course · L02 write the task contract, let AGENTS.md carry the rules · L03 the bounded change, reviewed hunk by hunk · L04 verify like a reviewer, not a spectator · L05 take the workflow to your own project - Verification Commands: identical to the flagship course. - The former CLI-era slug /courses/hands-on-with-openai-codex-cli 301-redirects here; its claim codes stay valid (course_id unchanged). ### 3. Hands-on with Cursor - URL: https://flypython.com/courses/hands-on-with-cursor - 中文版: https://flypython.com/courses/zh/hands-on-with-cursor - Checkpoints (one page each): [l01](https://flypython.com/courses/hands-on-with-cursor/l01) · [l02](https://flypython.com/courses/hands-on-with-cursor/l02) · [l03](https://flypython.com/courses/hands-on-with-cursor/l03) · [l04](https://flypython.com/courses/hands-on-with-cursor/l04) · [l05](https://flypython.com/courses/hands-on-with-cursor/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/hands-on-with-cursor - Same report-tool core and nine-test contract; taught in Cursor — Agent/Ask/Plan modes, .cursor/rules, accept/reject diffs. Authored from official Cursor docs; live teaching run-through pending (see REVIEW.md). - Lessons: L01 set up Cursor, install the FlyPython Skill, fetch the course · L02 write the task contract, let .cursor/rules carry the rules · L03 the bounded change, reviewed hunk by hunk · L04 verify like a reviewer, not a spectator · L05 take the workflow to your own project - Verification Commands: identical to the flagship course. ### 4. Hands-on with DeepSeek Harness - URL: https://flypython.com/courses/hands-on-with-deepseek-harness - 中文版: https://flypython.com/courses/zh/hands-on-with-deepseek-harness - Checkpoints (one page each): [l01](https://flypython.com/courses/hands-on-with-deepseek-harness/l01) · [l02](https://flypython.com/courses/hands-on-with-deepseek-harness/l02) · [l03](https://flypython.com/courses/hands-on-with-deepseek-harness/l03) · [l04](https://flypython.com/courses/hands-on-with-deepseek-harness/l04) · [l05](https://flypython.com/courses/hands-on-with-deepseek-harness/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/hands-on-with-deepseek-harness - Same report-tool core and nine-test contract; taught in DeepSeek Harness — plugin-composed agents, auditable trajectories. Authored from official docs; live teaching run-through pending (see REVIEW.md). - Lessons: L01 set up DeepSeek Harness, install the FlyPython Skill, fetch the course · L02 write the task contract, let cordis.yml carry the setup · L03 the bounded change, audited from the trajectory · L04 verify like a reviewer, not a spectator · L05 take the workflow to your own project - Verification Commands: identical to the flagship course. ### 5. Hands-on with Kimi Code - URL: https://flypython.com/courses/hands-on-with-kimi-code - 中文版: https://flypython.com/courses/zh/hands-on-with-kimi-code - Checkpoints (one page each): [l01](https://flypython.com/courses/hands-on-with-kimi-code/l01) · [l02](https://flypython.com/courses/hands-on-with-kimi-code/l02) · [l03](https://flypython.com/courses/hands-on-with-kimi-code/l03) · [l04](https://flypython.com/courses/hands-on-with-kimi-code/l04) · [l05](https://flypython.com/courses/hands-on-with-kimi-code/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/hands-on-with-kimi-code - Same report-tool core and nine-test contract; taught in Kimi Code — built-in explore/plan/coder subagents. Authored from official docs; live teaching run-through pending (see REVIEW.md). - Lessons: L01 set up Kimi Code, install the FlyPython Skill, fetch the course · L02 write the task contract, plan it in the planning lane · L03 the bounded change, one contract line at a time · L04 verify like a reviewer, not a spectator · L05 take the workflow to your own project - Verification Commands: identical to the flagship course. ### 6. Hands-on with ZCode - URL: https://flypython.com/courses/hands-on-with-zcode - 中文版: https://flypython.com/courses/zh/hands-on-with-zcode - Checkpoints (one page each): [l01](https://flypython.com/courses/hands-on-with-zcode/l01) · [l02](https://flypython.com/courses/hands-on-with-zcode/l02) · [l03](https://flypython.com/courses/hands-on-with-zcode/l03) · [l04](https://flypython.com/courses/hands-on-with-zcode/l04) · [l05](https://flypython.com/courses/hands-on-with-zcode/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/hands-on-with-zcode - Same report-tool core and nine-test contract; taught in the ZCode workspace — Goal Mode, task lists, Git-state review. Authored from official docs; live teaching run-through pending (see REVIEW.md). - Lessons: L01 set up ZCode, install the FlyPython Skill, fetch the course · L02 write the task contract, let Goal Mode hold the plan · L03 the bounded change, watched task by task · L04 verify like a reviewer, not a spectator · L05 take the workflow to your own project - Verification Commands: identical to the flagship course. ### 7. One source of truth for agent rules - URL: https://flypython.com/courses/agent-rules-single-source - 中文版: https://flypython.com/courses/zh/agent-rules-single-source - Checkpoints (one page each): [l01](https://flypython.com/courses/agent-rules-single-source/l01) · [l02](https://flypython.com/courses/agent-rules-single-source/l02) · [l03](https://flypython.com/courses/agent-rules-single-source/l03) · [l04](https://flypython.com/courses/agent-rules-single-source/l04) · [l05](https://flypython.com/courses/agent-rules-single-source/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/agent-rules-single-source - Build rules_check.py: AGENTS.md required, other rule files must be thin pointers or exact copies, drift reported with reasons and failing exit codes (11 tests; tool-agnostic). ### 8. From "it runs" to "it ships": verifying AI-generated code - URL: https://flypython.com/courses/verifying-ai-generated-code - 中文版: https://flypython.com/courses/zh/verifying-ai-generated-code - Checkpoints (one page each): [l01](https://flypython.com/courses/verifying-ai-generated-code/l01) · [l02](https://flypython.com/courses/verifying-ai-generated-code/l02) · [l03](https://flypython.com/courses/verifying-ai-generated-code/l03) · [l04](https://flypython.com/courses/verifying-ai-generated-code/l04) · [l05](https://flypython.com/courses/verifying-ai-generated-code/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/verifying-ai-generated-code - Build ship_check.py: run a project's checks, parse the test count, refuse zero-test projects, write an atomic SHIP-RECORD.json with an unverified list (10 tests; green/red/no-tests scenario projects). ### 9. Give your agent tools with MCP (Python) - URL: https://flypython.com/courses/mcp-server-in-python - 中文版: https://flypython.com/courses/zh/mcp-server-in-python - Checkpoints (one page each): [l01](https://flypython.com/courses/mcp-server-in-python/l01) · [l02](https://flypython.com/courses/mcp-server-in-python/l02) · [l03](https://flypython.com/courses/mcp-server-in-python/l03) · [l04](https://flypython.com/courses/mcp-server-in-python/l04) · [l05](https://flypython.com/courses/mcp-server-in-python/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/mcp-server-in-python - Assembled from the reviewed examples/mcp-server contract: stateless 2026-07-28 JSON-RPC 2.0 dispatch, schema validation, error isolation, and the input_required round-trip; wire samples under scenario/requests/. ### 10. Exploratory data analysis (pandas) - URL: https://flypython.com/courses/da-eda - 中文版: https://flypython.com/courses/zh/da-eda - Checkpoints (one page each): [l01](https://flypython.com/courses/da-eda/l01) · [l02](https://flypython.com/courses/da-eda/l02) · [l03](https://flypython.com/courses/da-eda/l03) · [l04](https://flypython.com/courses/da-eda/l04) · [l05](https://flypython.com/courses/da-eda/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/da-eda - Clean a 142-row messy shop export (duplicates, unparseable amounts, bad dates) into results.json checked against ground truth — 12 contract tests. ### 11. Data visualization (matplotlib) - URL: https://flypython.com/courses/da-visualization - 中文版: https://flypython.com/courses/zh/da-visualization - Checkpoints (one page each): [l01](https://flypython.com/courses/da-visualization/l01) · [l02](https://flypython.com/courses/da-visualization/l02) · [l03](https://flypython.com/courses/da-visualization/l03) · [l04](https://flypython.com/courses/da-visualization/l04) · [l05](https://flypython.com/courses/da-visualization/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/da-visualization - Three spec'd PNG charts plus summary.json verified against the dataset — files must be real PNGs and numbers must match. ### 12. From analysis to report - URL: https://flypython.com/courses/da-report - 中文版: https://flypython.com/courses/zh/da-report - Checkpoints (one page each): [l01](https://flypython.com/courses/da-report/l01) · [l02](https://flypython.com/courses/da-report/l02) · [l03](https://flypython.com/courses/da-report/l03) · [l04](https://flypython.com/courses/da-report/l04) · [l05](https://flypython.com/courses/da-report/l05) - Repository folder: https://github.com/flypythoncom/python/tree/master/courses/da-report - Build report.json + report.md from a verified EDA summary; every metric must trace to its input unchanged. ## Learning Paths - Paths index: https://flypython.com/tracks · 中文: https://flypython.com/tracks/zh - Path contracts: https://github.com/flypythoncom/python/tree/master/paths - Agent tools foundation (1010 pts): optional M0 orientation + six-choose-one tool branch (Claude Code, Codex app, Cursor, DeepSeek Harness, Kimi Code, ZCode) + agent-rules + verify-ship + route challenge. Badge: Agent User. - Data analysis with agents (600 pts): EDA → visualization → report + 303-row capstone. Badge: Data Analysis Agent. - Points: 10 per checkpoint, +50 per course badge, 200 per capstone — claimed via the deterministic codes `python verify.py` prints; self-reported evidence, never certificates. ## Project Radar - Radar index: https://flypython.com/radar · 中文: https://flypython.com/radar/zh - Machine-readable export: https://raw.githubusercontent.com/flypythoncom/python/master/radar.json - Review records (one YAML per project): https://github.com/flypythoncom/python/tree/master/catalog/projects - Seven reviewed entries (uv, ruff, fastapi, pydantic-ai, instructor, polars, marimo) each carry lifecycle status, maintenance evidence, license, alternatives, when-not-to-use, risk, and an ai_familiarity grade (low/medium/high) for how well mainstream models know the current API. ## Full Links - Website: https://flypython.com - Guide Index: https://flypython.com/learn - Runnable Examples Index: https://flypython.com/examples - Playbooks & Resources: https://flypython.com/resources - Editorial Standards: https://flypython.com/about - Courses Index: https://flypython.com/courses - Learning Paths: https://flypython.com/tracks - Project Radar: https://flypython.com/radar - Repository-to-site landing: https://flypython.com/from-github - Help page (Skill install, verify.py, claim codes, Pro and refunds): https://flypython.com/help - Open Source Repo: https://github.com/flypythoncom/python