Python Libraries
Practical guides for key Python libraries: core API, patterns, and production best practices.
Section Map
| Library | Focus |
|---|---|
| Requests / HTTP | HTTP client: methods, sessions, auth, retries, streaming, best practices |
| Pytest | Testing: fixtures, parametrize, markers, mocking, coverage, plugins, CI patterns |
| Playwright | Browser & API testing: locators, POM, assertions, network mocking, CI |
| HTTPX | Async HTTP client: sync/async, HTTP/2, streaming, concurrency, FastAPI testing |
| Pydantic | Data validation: models, fields, validators, serialization, settings, TypeAdapter |
| SQLAlchemy | ORM & SQL toolkit: models, relationships, sessions, async, Alembic, performance |
| FastAPI | Async web framework: routing, DI, auth, DB integration, testing, production, ASGI stack |
| uv | Python project manager: deps, scripts, tools, workspaces, Docker, build & publish |
| LangChain | LLM framework: models, LCEL chains, RAG, agents, tools, memory, LangGraph, LangSmith |
| Code Quality | Linters, formatters, type checkers, pre-commit hooks, test coverage, mutation testing |