← Winnitude! Search  ·  Reader Mode (1228 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 24 LINKS

python/examples at master · flypythoncom/python

Repository navigation

examples

Directory actions

More options

Directory actions

More options

Latest commit

 

History


History
View commit history for this file.

examples

Folders and files

Name Name Last commit message Last commit date

parent directory

..
async-fetcher async-fetcher    
mcp-server mcp-server    
product-slug product-slug    
pydantic-validation pydantic-validation    
structured-pipeline structured-pipeline    
README.md README.md    
README_cn.md README_cn.md    

README.md

Runnable examples

These examples are deliberately small. Each one has a task contract, a broken starter, a completed solution, and a verifier so you can practice an AI-coding loop without trusting generated code on sight.

  • Product slug regression : reproduce a text-boundary bug, ask an agent for the smallest fix, and verify the solution. Standard library only; about three minutes.
  • Untrusted payload validation : handle messy camelCase and snake_case inputs, dirty amount strings, and structured error responses.
  • MCP tool server : build a stateless 2026-07-28 MCP tool server: no initialize handshake, schema validation, error isolation, and the input_required round-trip.
  • Async batch fetcher : control concurrency with Semaphore, back off and retry transient HTTP failures, and collect structured results.
  • Resilient batch pipeline : process semi-structured data safely with batch error isolation and field validation using the standard library.

中文索引