<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Python on danilchenko.dev</title><link>https://www.danilchenko.dev/tags/python/</link><description>Recent content in Python on danilchenko.dev</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 19 Nov 2026 08:28:04 +0000</lastBuildDate><atom:link href="https://www.danilchenko.dev/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Modern Python Tooling in 2026: Package Managers, Type Checkers, and Speed</title><link>https://www.danilchenko.dev/posts/python-tooling-guide/</link><pubDate>Thu, 02 Jul 2026 06:00:00 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-tooling-guide/</guid><description>A complete guide to modern Python tooling in 2026: uv, Poetry, and pip; mypy, Pyright, ty, and Pyrefly; plus free-threading, t-strings, and Polars vs Pandas.</description></item><item><title>asyncio Queue Worker Pools in Python: Backpressure, Errors and Shutdown</title><link>https://www.danilchenko.dev/posts/asyncio-queue/</link><pubDate>Thu, 19 Nov 2026 08:28:04 +0000</pubDate><guid>https://www.danilchenko.dev/posts/asyncio-queue/</guid><description>An asyncio Queue worker pool ran 100,000 jobs with 100 tasks and flat memory, while gather() added 163 MB. Code for task_done, join, backpressure and shutdown.</description></item><item><title>Pydantic AI Review 2026: Type-Safe Agents in v2, Tested Without an API Key</title><link>https://www.danilchenko.dev/posts/pydantic-ai-review/</link><pubDate>Sun, 15 Nov 2026 08:22:58 +0000</pubDate><guid>https://www.danilchenko.dev/posts/pydantic-ai-review/</guid><description>Pydantic AI review: v2.68 run offline with real output. Validation retries, docstring tool schemas and hooks work well, but importing it alone takes 1.1 s.</description></item><item><title>httpx vs aiohttp vs requests in 2026: Benchmarks and the httpx2 Fork</title><link>https://www.danilchenko.dev/posts/httpx-vs-aiohttp/</link><pubDate>Thu, 05 Nov 2026 08:43:26 +0000</pubDate><guid>https://www.danilchenko.dev/posts/httpx-vs-aiohttp/</guid><description>httpx vs aiohttp vs requests, benchmarked locally: aiohttp ran 9-19x faster than httpx async. Plus httpx2, the Pydantic fork the OpenAI SDK now ships.</description></item><item><title>Python Tenacity Tutorial: Retries With Backoff, Jitter and Retry-After</title><link>https://www.danilchenko.dev/posts/python-tenacity/</link><pubDate>Sun, 01 Nov 2026 08:21:33 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-tenacity/</guid><description>Python tenacity tutorial with runnable code: exponential backoff, jitter that survives the max cap, Retry-After on 429s, async retries and fast pytest tests.</description></item><item><title>asyncio TaskGroup vs gather: Exceptions, Cancellation and Results, Tested</title><link>https://www.danilchenko.dev/posts/taskgroup-vs-gather/</link><pubDate>Thu, 22 Oct 2026 08:21:19 +0000</pubDate><guid>https://www.danilchenko.dev/posts/taskgroup-vs-gather/</guid><description>asyncio TaskGroup vs gather, run side by side: gather leaves siblings running after a failure and silently drops later errors. TaskGroup cancels them all.</description></item><item><title>FastAPI Rate Limiting: slowapi, a Token Bucket and Redis, Tested</title><link>https://www.danilchenko.dev/posts/fastapi-rate-limiting/</link><pubDate>Sun, 18 Oct 2026 08:22:14 +0000</pubDate><guid>https://www.danilchenko.dev/posts/fastapi-rate-limiting/</guid><description>FastAPI rate limiting with slowapi, a token-bucket dependency and Redis. Real runs show a fixed window letting 19 requests through a 10-per-minute limit.</description></item><item><title>Python Sampling Profiler: Profile a Running Process Without Restarting It</title><link>https://www.danilchenko.dev/posts/python-sampling-profiler/</link><pubDate>Tue, 22 Sep 2026 08:20:28 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-sampling-profiler/</guid><description>Python 3.15&amp;#39;s built-in sampling profiler (Tachyon) attaches to a running process by PID, no code changes. Hands-on: attach, flamegraph, wall vs CPU vs GIL.</description></item><item><title>Ruff vs Flake8 vs Black vs Pylint: The 2026 Verdict</title><link>https://www.danilchenko.dev/posts/ruff-vs-flake8-vs-black/</link><pubDate>Mon, 07 Sep 2026 08:21:23 +0000</pubDate><guid>https://www.danilchenko.dev/posts/ruff-vs-flake8-vs-black/</guid><description>Ruff vs Flake8, Black, and Pylint in 2026: Astral&amp;#39;s speed numbers, what it replaces, where it still loses, and a migration you can finish in an afternoon.</description></item><item><title>DuckDB in Python: Query CSV, Parquet, and Pandas with SQL</title><link>https://www.danilchenko.dev/posts/duckdb-python/</link><pubDate>Thu, 27 Aug 2026 08:20:56 +0000</pubDate><guid>https://www.danilchenko.dev/posts/duckdb-python/</guid><description>DuckDB in Python turns SQL into a zero-setup analytics engine: query CSV, Parquet, and Pandas DataFrames in-process, join across sources, and add UDFs.</description></item><item><title>uv Workspaces: Build a Python Monorepo From Scratch</title><link>https://www.danilchenko.dev/posts/uv-workspaces-monorepo/</link><pubDate>Thu, 30 Jul 2026 08:22:24 +0000</pubDate><guid>https://www.danilchenko.dev/posts/uv-workspaces-monorepo/</guid><description>Build a Python monorepo with uv workspaces: one shared lockfile and virtualenv, cross-package imports, per-package builds, and the gotchas to watch for.</description></item><item><title>LangGraph vs CrewAI vs OpenAI Agents SDK: The 2026 Verdict</title><link>https://www.danilchenko.dev/posts/langgraph-vs-crewai/</link><pubDate>Sat, 25 Jul 2026 08:27:28 +0000</pubDate><guid>https://www.danilchenko.dev/posts/langgraph-vs-crewai/</guid><description>LangGraph vs CrewAI vs OpenAI Agents SDK compared for 2026: architecture, real code, pricing, and which multi-agent framework to pick for production work.</description></item><item><title>Python Lazy Imports (PEP 810): The Startup Speedup, Benchmarked</title><link>https://www.danilchenko.dev/posts/python-lazy-imports/</link><pubDate>Fri, 24 Jul 2026 08:26:17 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-lazy-imports/</guid><description>Python lazy imports (PEP 810) land in Python 3.15. I benchmarked boto3, requests and pydantic startup: the real speedup, and how to get most of it today.</description></item><item><title>msgspec vs Pydantic v2: When the Speed Gap Pays Off</title><link>https://www.danilchenko.dev/posts/msgspec-vs-pydantic/</link><pubDate>Tue, 14 Jul 2026 08:23:57 +0000</pubDate><guid>https://www.danilchenko.dev/posts/msgspec-vs-pydantic/</guid><description>msgspec vs Pydantic v2 in 2026: real code, reported benchmark numbers, where the speed gap actually shows up in a Python API, and how to run both together.</description></item><item><title>Django-Bolt Review: Rust-Powered Django, FastAPI Speed</title><link>https://www.danilchenko.dev/posts/django-bolt/</link><pubDate>Sat, 11 Jul 2026 08:23:30 +0000</pubDate><guid>https://www.danilchenko.dev/posts/django-bolt/</guid><description>Django-Bolt puts Actix and Rust under Django to hit 188K RPS. I dug through the source and benchmarks — where it beats FastAPI, and where the speed evaporates.</description></item><item><title>Python 3.15: Lazy Imports, frozendict, and Faster Startup</title><link>https://www.danilchenko.dev/posts/python-3-15/</link><pubDate>Fri, 10 Jul 2026 08:23:56 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-3-15/</guid><description>Python 3.15 lands lazy imports, a frozendict builtin, unpacking in comprehensions, and the Tachyon sampling profiler. Here&amp;#39;s what changed and what to test.</description></item><item><title>FastAPI vs Litestar vs Django Ninja: 2026 Verdict</title><link>https://www.danilchenko.dev/posts/fastapi-vs-litestar/</link><pubDate>Thu, 09 Jul 2026 08:22:01 +0000</pubDate><guid>https://www.danilchenko.dev/posts/fastapi-vs-litestar/</guid><description>FastAPI vs Litestar vs Django Ninja in 2026: real code, serialization speed, dependency injection, and a clear pick for every kind of Python API project.</description></item><item><title>DuckDB vs Polars in 2026: Which One for Your Data Pipeline?</title><link>https://www.danilchenko.dev/posts/duckdb-vs-polars/</link><pubDate>Fri, 03 Jul 2026 08:23:13 +0000</pubDate><guid>https://www.danilchenko.dev/posts/duckdb-vs-polars/</guid><description>DuckDB vs Polars for data engineering in 2026: benchmarks, memory usage, SQL vs DataFrame ergonomics, and when to reach for each. Real numbers, honest verdict.</description></item><item><title>Mem0 vs Cognee vs Letta: Which AI Agent Memory Actually Sticks?</title><link>https://www.danilchenko.dev/posts/mem0-vs-cognee-vs-letta/</link><pubDate>Wed, 01 Jul 2026 08:23:14 +0000</pubDate><guid>https://www.danilchenko.dev/posts/mem0-vs-cognee-vs-letta/</guid><description>Mem0 adds drop-in memory in 5 lines. Cognee builds a knowledge graph. Letta makes the agent its own memory. Here&amp;#39;s which one fits your stack.</description></item><item><title>Mistral OCR 4 Tutorial: Build a Document Pipeline in Python</title><link>https://www.danilchenko.dev/posts/mistral-ocr-4-tutorial/</link><pubDate>Thu, 25 Jun 2026 08:24:28 +0000</pubDate><guid>https://www.danilchenko.dev/posts/mistral-ocr-4-tutorial/</guid><description>Extract text, tables, and structured JSON from PDFs using Mistral OCR 4 in Python. Bounding boxes, confidence scores, and a complete invoice pipeline.</description></item><item><title>LiteLLM Vulnerability 2026: 6 CVEs, CVSS 10.0 RCE, and the Fix</title><link>https://www.danilchenko.dev/posts/litellm-vulnerability/</link><pubDate>Wed, 17 Jun 2026 08:32:06 +0000</pubDate><guid>https://www.danilchenko.dev/posts/litellm-vulnerability/</guid><description>Six LiteLLM vulnerabilities hit in 2026, including a CVSS 10.0 RCE CISA flagged as actively exploited. Which versions are exposed and how to patch to v1.83.14+.</description></item><item><title>uv Python Tutorial: Build a CLI Tool From Scratch</title><link>https://www.danilchenko.dev/posts/uv-python-tutorial/</link><pubDate>Tue, 02 Jun 2026 08:17:14 +0000</pubDate><guid>https://www.danilchenko.dev/posts/uv-python-tutorial/</guid><description>Step-by-step uv tutorial: create a real Python CLI project, manage deps, run tests, lint with ruff, build a wheel, and ship it in Docker — from scratch.</description></item><item><title>Pyrefly vs mypy vs ty: Which Python Type Checker Should You Use in 2026?</title><link>https://www.danilchenko.dev/posts/pyrefly-vs-mypy-vs-ty/</link><pubDate>Sun, 24 May 2026 08:22:48 +0000</pubDate><guid>https://www.danilchenko.dev/posts/pyrefly-vs-mypy-vs-ty/</guid><description>Pyrefly 1.0 checks 1.85M lines/sec with 87.8% conformance, mypy 2.0 adds parallelism, ty hits sub-10ms updates. Full benchmarks and migration guide.</description></item><item><title>Spec-Driven Development in 2026: Build a Python CLI Step by Step</title><link>https://www.danilchenko.dev/posts/spec-driven-development/</link><pubDate>Thu, 14 May 2026 08:22:52 +0000</pubDate><guid>https://www.danilchenko.dev/posts/spec-driven-development/</guid><description>Spec-driven development with GitHub Spec Kit and Claude Code: write the spec, review the plan, implement task by task, and build a working Python CLI.</description></item><item><title>Gemini CLI Tutorial: Setup, Configuration, and a Real Python Project</title><link>https://www.danilchenko.dev/posts/gemini-cli-tutorial/</link><pubDate>Fri, 08 May 2026 08:24:33 +0000</pubDate><guid>https://www.danilchenko.dev/posts/gemini-cli-tutorial/</guid><description>Set up Gemini CLI, configure GEMINI.md, wire MCP servers, and build a Python FastAPI project — plus what changed after Google ended the free tier in June 2026.</description></item><item><title>MarkItDown vs Docling vs Marker: PDF to Markdown 2026</title><link>https://www.danilchenko.dev/posts/markitdown-vs-docling-vs-marker/</link><pubDate>Sun, 03 May 2026 08:20:42 +0000</pubDate><guid>https://www.danilchenko.dev/posts/markitdown-vs-docling-vs-marker/</guid><description>MarkItDown vs Docling vs Marker, tested on 4,000 real PDFs: speed, table fidelity, install size, and the one I actually shipped for a RAG pipeline in 2026.</description></item><item><title>FastMCP 4 Tutorial: Build an MCP Server in Python, From First Tool to OAuth</title><link>https://www.danilchenko.dev/posts/fastmcp-mcp-server/</link><pubDate>Wed, 29 Apr 2026 08:24:49 +0000</pubDate><guid>https://www.danilchenko.dev/posts/fastmcp-mcp-server/</guid><description>FastMCP 4 tutorial: build a Python MCP server with tools, resources and prompts, test it with pytest, add GitHub OAuth, and fix what v4 broke in 3.x code.</description></item><item><title>Python t-strings (PEP 750) vs f-strings: SQL, HTML, and Logging Examples</title><link>https://www.danilchenko.dev/posts/python-t-strings/</link><pubDate>Mon, 27 Apr 2026 08:21:49 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-t-strings/</guid><description>Python t-strings (3.14) build a Template object instead of a str. Helpers for SQL placeholders, escaped HTML, lazy JSON logs, psycopg 3.3 usage and 8 gotchas.</description></item><item><title>Polars vs Pandas in 2026: Performance Benchmarks, Real Numbers, and When to Switch</title><link>https://www.danilchenko.dev/posts/polars-vs-pandas/</link><pubDate>Fri, 17 Apr 2026 06:00:00 +0000</pubDate><guid>https://www.danilchenko.dev/posts/polars-vs-pandas/</guid><description>Polars vs Pandas in 2026: independent benchmarks show 7-40x speedups on large data. What Pandas 3.0 fixes, and what still favors Polars.</description></item><item><title>mypy vs Pyright vs ty: Python Type Checker Comparison (2026)</title><link>https://www.danilchenko.dev/posts/ty-vs-mypy-vs-pyright/</link><pubDate>Thu, 16 Apr 2026 06:00:00 +0000</pubDate><guid>https://www.danilchenko.dev/posts/ty-vs-mypy-vs-pyright/</guid><description>mypy vs Pyright vs ty: speed, conformance and IDE support. Pyright leads at 98% spec conformance; ty is 10-60x faster but passes only 53% of tests.</description></item><item><title>Python 3.14 Free-Threading: Real Benchmarks, Real Breakage, Real Code</title><link>https://www.danilchenko.dev/posts/python-314-free-threading/</link><pubDate>Mon, 13 Apr 2026 06:00:00 +0000</pubDate><guid>https://www.danilchenko.dev/posts/python-314-free-threading/</guid><description>Python 3.14&amp;#39;s free-threaded build is officially supported. Published benchmarks show ~3x speedups on 4 threads; which libraries break, how to install it.</description></item><item><title>uv vs Poetry vs pip: Which Python Package Manager Wins in 2026?</title><link>https://www.danilchenko.dev/posts/uv-vs-pip-vs-poetry/</link><pubDate>Sun, 12 Apr 2026 06:00:00 +0000</pubDate><guid>https://www.danilchenko.dev/posts/uv-vs-pip-vs-poetry/</guid><description>uv vs Poetry vs pip: published install and resolution benchmarks, lockfiles, workspaces, Python version management. Which Python package manager to use in 2026.</description></item></channel></rss>