# FlyPython (flypython.com)
> 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 \`da-eda\`.`
FlyPython provides concise, runnable, and testable engineering patterns rather than superficial code snippets. All examples run on Python 3.12+ and are verified in CI with automated tests and linting.
## Core Learning Paths & Guides
- [Python foundations with tests](https://flypython.com/learn/python-foundations-with-tests): Environment isolation, explicit function contracts, and automated success/failure tests.
- [Build a Python product that can be changed safely](https://flypython.com/learn/python-product-quality): Explicit boundaries, tested failure paths, observable operation, and reversible releases.
- [Modern Python typing in practice: Protocol, TypedDict, PEP 695](https://flypython.com/learn/modern-python-typing): Protocol, TypedDict, PEP 695 generics, and static type checking as machine-enforced contracts.
- [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 decision 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.
- [Python web API boundaries](https://flypython.com/learn/python-web-api-boundaries): Pydantic validation, boundary errors, timeouts, and deterministic test contracts.
- [Safe, retryable Python automation](https://flypython.com/learn/safe-retryable-python-automation): Checkpoint design, idempotency, bounded backoff, and failure recovery.
- [Reliable async Python patterns](https://flypython.com/learn/reliable-async-patterns): Event-loop discipline, TaskGroup, Semaphore bounds, and cancellation cleanup.
- [Python AI agent roadmap](https://flypython.com/learn/python-ai-agent-roadmap): Deterministic agent loops, action-name traces, and narrow tool boundaries without external API keys.
- [Migrate a Python MCP server to 2026-07-28](https://flypython.com/learn/mcp-2026-07-28-migration): Remove the initialize handshake, adopt the input_required round-trip, and drop deprecated features.
- [Use Python well with AI coding](https://flypython.com/learn/ai-coding-workflow): Task contracts, repository inspection, reproducible environments, and evidence-based handoffs.
- [Context budgeting and bounded tasks](https://flypython.com/learn/ai-coding-context-budget): Attention budgets, machine-checkable contracts, and fast verification loops.
- [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 keep one source of truth.
- [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.
## Chinese Content (zh-CN)
- 䏿æåç´¢å¼: https://flypython.com/learn/zh
- [æå»ºè½å¤æç»ä¿®æ¹ç Python 产å](https://flypython.com/learn/zh/python-product-quality): è¾¹çã失败路å¾ãå¯è§æµæ§ä¸å¯åéåå¸ã
- [ç°ä»£ Python ç±»åç³»ç»å®æ](https://flypython.com/learn/zh/modern-python-typing): ProtocolãTypedDictãæ³åä¸éææ£æ¥å¥çº¦ã
- [弿¥ Python å¯é 模å¼ä¸é¿åæå](https://flypython.com/learn/zh/reliable-async-patterns): äºä»¶å¾ªç¯çºªå¾ãTaskGroupãSemaphore ä¸åæ¶æ¸
çã
- [å° Python MCP æå¡ç«¯è¿ç§»å° 2026-07-28 è§è](https://flypython.com/learn/zh/mcp-2026-07-28-migration): ç§»é¤ initialize æ¡æãinput_required å¤è½®äº¤äºä¸åºå¼é¡¹ã
- [ç¨ AI Coding å好 Python](https://flypython.com/learn/zh/ai-coding-workflow): ä»»å¡å¥çº¦ãä»åºæ£æ¥ãå¯å¤ç°ç¯å¢ä¸è¯æ®äº¤ä»ã
- [Coding Agent ä¸ä¸æé¢ç®ä¸ç²¾åä»»å¡è®¾è®¡](https://flypython.com/learn/zh/ai-coding-context-budget): 注æåé¢ç®ãæºå¨å¯éªè¯å¥çº¦ä¸å¿«ééªè¯éç¯ã
- 䏿å¯è¿è¡ç¤ºä¾: https://flypython.com/examples/zh
## On-Site Playbooks
- [Start a Python project you can verify](https://flypython.com/resources#python-project-verification): Isolated environment, recorded commands, and a tested function contract.
- [Write an API boundary before choosing a framework](https://flypython.com/resources#http-boundary-contract): Validation rules, deadlines, and a boundary test matrix for one endpoint.
- [Design a retryable automation run](https://flypython.com/resources#retryable-run-contract): Run IDs, checkpoints, idempotency, retry limits, and completion evidence.
- [Run an agent loop before adding a model](https://flypython.com/resources#bounded-agent-loop): Deterministic planner, action-name trace, and 13 automated tests without an API key.
All twelve playbooks â including API changes, external integrations, migrations, structured logging, releases, and LLM evals â are indexed at https://flypython.com/resources#playbooks.
## Runnable Examples
- [MCP tool server (2026-07-28 spec)](https://flypython.com/examples/mcp-server): Stateless JSON-RPC dispatch with no initialize handshake, schema validation, and the input_required round-trip.
- [Async batch fetcher](https://flypython.com/examples/async-fetcher): Concurrency control with asyncio.Semaphore and exponential backoff.
- [Pydantic boundary validation](https://flypython.com/examples/pydantic-validation): Parse and validate untrusted payloads with schema checks.
- [Resilient batch pipeline](https://flypython.com/examples/structured-pipeline): Safe batch processing with per-item error isolation and field validation.
- [Product slug normalization](https://flypython.com/examples/product-slug): A three-minute AI-coding change with a regression test.
All examples are indexed at https://flypython.com/examples with one-command verifiers.
## Challenge Courses (one sentence starts each course â your agent fetches the files)
- [Hands-on Python with Claude Code](https://flypython.com/courses/hands-on-python-with-claude-code): Task contract â bounded change â verify.py evidence; solve with your agent, guided mode optional. 䏿ç: https://flypython.com/courses/zh/hands-on-python-with-claude-code
- [Hands-on with the OpenAI Codex App](https://flypython.com/courses/hands-on-with-openai-codex): The same verified workflow taught in the Codex desktop app â threads, approvals, AGENTS.md, diff review. 䏿ç: https://flypython.com/courses/zh/hands-on-with-openai-codex
- [Hands-on with Cursor](https://flypython.com/courses/hands-on-with-cursor): The same verified workflow in Cursor â Agent/Ask/Plan modes, .cursor/rules, accept/reject diffs. 䏿ç: https://flypython.com/courses/zh/hands-on-with-cursor
- [Hands-on with DeepSeek Harness](https://flypython.com/courses/hands-on-with-deepseek-harness): The same verified workflow in DeepSeek Harness â plugin-composed agents, auditable trajectories. 䏿ç: https://flypython.com/courses/zh/hands-on-with-deepseek-harness
- [Hands-on with Kimi Code](https://flypython.com/courses/hands-on-with-kimi-code): The same verified workflow in Kimi Code â built-in explore/plan/coder subagents. 䏿ç: https://flypython.com/courses/zh/hands-on-with-kimi-code
- [Hands-on with ZCode](https://flypython.com/courses/hands-on-with-zcode): The same verified workflow in the ZCode workspace â Goal Mode, task lists, Git-state review. 䏿ç: https://flypython.com/courses/zh/hands-on-with-zcode
- [One source of truth for agent rules](https://flypython.com/courses/agent-rules-single-source): Build a checker that proves one AGENTS.md source across CLAUDE.md and .cursorrules. 䏿ç: https://flypython.com/courses/zh/agent-rules-single-source
- [From "it runs" to "it ships"](https://flypython.com/courses/verifying-ai-generated-code): Build the release-evidence machine â parsed results, zero-test refusal, SHIP-RECORD.json. 䏿ç: https://flypython.com/courses/zh/verifying-ai-generated-code
- [Give your agent tools with MCP (Python)](https://flypython.com/courses/mcp-server-in-python): A stateless 2026-07-28 MCP tool server in pure Python. 䏿ç: https://flypython.com/courses/zh/mcp-server-in-python
- [Exploratory data analysis](https://flypython.com/courses/da-eda): Clean a messy shop export into a ground-truth-verified results.json (pandas). 䏿ç: https://flypython.com/courses/zh/da-eda
- [Data visualization](https://flypython.com/courses/da-visualization): Three spec'd matplotlib charts plus a verified summary.json. 䏿ç: https://flypython.com/courses/zh/da-visualization
- [From analysis to report](https://flypython.com/courses/da-report): report.json + report.md where every number traces to its input. 䏿ç: https://flypython.com/courses/zh/da-report
- All courses: https://flypython.com/courses · 䏿: https://flypython.com/courses/zh
- Every one of a course's five challenges has its own readable page: /courses/