All guides
FastAPI Dependency Injection Explained with Examples
How FastAPI dependency injection works: Depends, sub-dependencies, yield for cleanup, class dependencies, and overriding dependencies in tests.
Pydantic v1 to v2 Migration Guide: What Changed
Migrating from Pydantic v1 to v2: renamed methods, validators, model config, BaseSettings, Optional fields, pydantic.v1, bump-pydantic and FastAPI support.
python-dotenv vs pydantic-settings for Configuration
python-dotenv vs pydantic-settings compared: loading .env files, typed validation, precedence, nested settings and the extra-keys error, with tested code.
argparse vs Click vs Typer: Python CLI Libraries Compared
argparse vs Click vs Typer compared with the same example in each: setup, subcommands, type handling and help output, and which to choose for your CLI.
Python 3.9 End of Life: What It Means and How to Upgrade
Python 3.9 reached end of life on 31 October 2025 and gets no more fixes. What that means for your code, which version to move to, and what breaks.
Python match Statement Explained with Examples
How Python’s match statement works: literal, sequence, mapping and class patterns, guards, wildcards and the mistakes to avoid. With tested examples.
Loguru vs logging: Which Python Logger to Use
Loguru vs the standard library logging module compared: setup, formatting, rotation, exceptions, library use and how to bridge the two, with tested code.
Microsoft Agent Framework Explained: AutoGen’s Successor
What Microsoft Agent Framework is, how its agents and workflows work, how it maps onto AutoGen, and a runnable example that needs no API key
pathlib vs os.path: Which Should You Use in Python?
pathlib vs os.path compared with side-by-side examples: joining paths, reading files, globbing and walking directories. Use pathlib unless you have a reason.
pytest Fixtures Explained: Scope, Teardown and conftest
How pytest fixtures work: defining and using them, yield teardown, scopes, conftest.py sharing, parametrized fixtures, and the built-in ones worth knowing.
What Is Anaconda? Anaconda vs Miniconda vs Miniforge
What Anaconda, conda, Miniconda and Miniforge are, how they differ, when Anaconda is free, and the commands to create and share environments.
Fix: ModuleNotFoundError: No module named in Python
How to fix ModuleNotFoundError: No module named in Python: wrong interpreter, missing install, package name vs import name, shadowing files and PATH issues.
python vs python3 vs py: Which Command to Use
Which command runs Python: python, python3 or py? What each does on Windows, macOS and Linux, how to choose a version, and why python may not exist.
What Is Python IDLE? A Guide to IDLE and the REPL
What Python’s built-in IDLE is, how to open it on Windows, macOS and Linux, how it differs from the REPL, and when to move on to a different editor.
Read and Write Excel Files in Python (pandas, openpyxl)
Install openpyxl and use pandas to read and write Excel files: sheets, formulas, formatting, large files, the calamine engine change and common errors.
Best Online Python Compilers and IDEs (2026)
Run Python in your browser with no install: Colab, Codespaces, PythonAnywhere, JupyterLite, Pyodide and more, checked against official pages in November 2026.
Fix: error externally-managed-environment (pip)
Why pip says externally-managed-environment (PEP 668) and how to fix it: use a virtual environment, pipx or uv, the OS package, or —break-system-packages.
Free Alternatives to VS Code for Python (2026)
The best free VS Code alternatives for Python: PyCharm’s free tier, Zed, Positron, Spyder, Thonny and Neovim, and which one suits your kind of work.
pipx vs uv tool: Installing Python CLI Apps
pipx vs uv tool compared: isolated installs for Python command-line apps, running tools once with pipx run or uvx, upgrades, and which one to pick.
pyproject.toml Explained: Sections and Examples
What pyproject.toml is and what goes in it: build-system, project metadata, dependencies, dependency groups and tool settings, with a tested example.
Python 3.11 End of Life: Dates and How to Upgrade
Python 3.11 reaches end of life in October 2027 and gets security fixes only. What that means, when to move, and what breaks going to 3.12 or later.
Python 3.13 End of Life: Dates and How to Upgrade
Python 3.13 reaches end of life in October 2029 and moved to security fixes only on 1 October 2026. What that means, when to move, and what breaks.
Python 3.13: What’s New and Should You Use It?
What is new in Python 3.13: the new interactive interpreter, experimental free-threaded and JIT builds, 19 removed modules, and whether to use it today.
Python 3.14 vs 3.15: What Changed and Which to Use
Python 3.14 vs 3.15 compared: t-strings, free threading and zstd in 3.14, lazy imports, the faster JIT and UTF-8 default in 3.15, and which version to run.
Python 3.14: What’s New and Should You Upgrade?
What is new in Python 3.14: template strings, deferred annotations, supported free threading, multiple interpreters, zstd and what to check before upgrading.
How to Install Python on Windows (2026)
How to install Python on Windows in 2026: the Python install manager that python.org now recommends, the older installer, winget, uv or WSL, and PATH fixes.
The Python Tooling Stack for 2026: uv, Ruff, mypy, pytest
A default toolchain for a new Python project in 2026: uv, Ruff, mypy and pytest in one pyproject.toml, with every command run and a CI workflow.
src Layout vs Flat Layout for Python Projects
src layout vs flat layout for Python packages: how each behaves, the shadowing problem src avoids, a tested packaging mistake, and how uv init chooses.
tox vs nox: Python Test Automation Compared
tox vs nox compared: TOML or Python configuration, testing across Python versions, environment reuse, packaging behaviour, uv support and which to pick.
uv vs pip: Which Should You Use in 2026?
uv vs pip compared: speed, lockfiles, Python version management and the uv pip interface. When to switch, when to stay on pip, and how to migrate.
What Is Ruff? The Python Linter and Formatter Explained
Ruff is a fast Python linter and formatter written in Rust. What it replaces, how to install and configure it, and the commands you will actually use.
What Is uv? The Python Package Manager Explained
uv is a fast Python package and project manager from Astral. What it does, how to install it, the commands you will use, and how it compares to pip.
asyncio vs threading vs multiprocessing: Which to Use
asyncio, threading or multiprocessing? Match the tool to the job: I/O-bound or CPU-bound work, the GIL, the executors, and what changed in Python 3.14.
Best Python IDE for Data Science in 2026
The best Python IDE for data science in 2026: Positron, VS Code with notebooks, JupyterLab, PyCharm Pro and Spyder compared, with when to pick each.
Best Python IDE for FastAPI Development
The best Python IDE for FastAPI: VS Code or PyCharm Pro, how to debug a route, test with pytest, and set up linting and type checking for Pydantic.
Jupyter vs marimo: Which Python Notebook?
Jupyter or marimo? One keeps notebooks as JSON files, the other as reactive Python scripts. Compared on execution, git, apps, install, and when to pick each.
pyenv vs uv: Managing Python Versions
pyenv or uv for installing and switching Python versions? How each works, the commands, build-from-source versus prebuilt downloads, and which to choose.
Python 3.10 End of Life: What to Do Now
Python 3.10 reached end of life on 1 October 2026, and 3.11 follows in October 2027. What it means, which version to move to, and what breaks on the way.
Docker for Python With uv: A Dockerfile That Caches Well
A practical Dockerfile for Python projects using uv: install from the lockfile, cache dependency layers, build in two stages, and avoid common mistakes.
Gunicorn vs Uvicorn vs Hypercorn: Which Server?
Gunicorn, Uvicorn and Hypercorn compared: what each one does, WSGI versus ASGI, how to combine them in production, and which to pick for your app.
Python 3.12 End of Life: Dates and How to Upgrade
Python 3.12 reaches end of life on 31 October 2028 and gets security fixes only now. What that means, when to move, and what breaks going to 3.13 or 3.14.
Python Dependency Security: Audit, Pin and Verify
How to find vulnerable Python packages and stop surprises: scan with pip-audit, pin with lockfiles, verify with hashes, and automate updates.
Best Awesome Python Lists: Curated GitHub Lists
Awesome lists are curated GitHub collections of tools. These are the Python ones worth bookmarking, from the main list to async, typing and data science.
Celery vs RQ vs Dramatiq: Python Task Queues Compared
Celery, RQ and Dramatiq all run Python code in background workers. Compare brokers, scheduling, retries and setup effort, and pick the right one.
Pillow Security Vulnerabilities: Upgrade to 13.0.0
Pillow 13.0.0 fixes a large batch of security flaws disclosed in October 2026, including code execution bugs. How to check your version and upgrade.
Ruff vs Pylint vs Flake8: Python Linters Compared
Ruff, Pylint and Flake8 all check Python code for bugs and style. Compare speed, rules, plugins and config, and decide which one to use.
uv vs venv vs conda: Python Environments Compared
uv, venv and conda all create isolated Python environments, but they do different jobs. See what each does, the commands, and which to choose.
Python Web Scraping Tools Compared: Which to Use
Beautiful Soup, Scrapy, Playwright and Selenium solve different scraping problems. See what each does, when it fits, and how to pick.
Best Python Practice Sites for Every Level (2026)
Where to practise Python after the tutorials: Exercism, Python Morsels, PyBites, CS50P, Codewars and more, matched to your level
dataclasses vs Pydantic vs attrs: Which to Use
Python’s dataclasses, Pydantic, and attrs all cut class boilerplate, but only some validate data. Here’s which to reach for and why
How to Publish a Python Package to PyPI (2026)
Build your package, test it on TestPyPI, then publish to PyPI with twine, uv, Hatch, or Poetry, plus trusted publishing from GitHub Actions
Porting to Python 3.15: What Breaks and How to Fix It
What actually breaks when you upgrade to Python 3.15: UTF-8 default encoding, removed APIs, sqlite3 and argparse changes, and what’s deprecated for 3.16
Python Type Checkers: mypy vs Pyright vs ty vs Pyrefly
mypy, Pyright, ty, and Pyrefly all check your type hints, but they differ in maturity, speed claims, and editor support — here’s how to choose
Is CPython Moving to Rust? What the Proposal Says
Python’s core team is proposing optional Rust code in CPython 3.16, starting with zlib. What’s proposed, what isn’t decided, and what it means for you
Can You Deploy Python to Cloudflare Workers?
Cloudflare Python Workers reached general availability in September 2026 — FastAPI, Django, and Flask run natively, with real limitations worth knowing first
Can pnpm Manage Python Dependencies?
pnpm added experimental, opt-in Python support in September 2026: PyPI packages, automatic interpreters and managed virtual environments, tested
CrewAI vs AutoGen: Which Multi-Agent Framework
CrewAI structures agents around fixed roles and a process; AutoGen, now archived, centred on open conversation. What replaced it
Gradio vs Streamlit: Which to Use
Gradio vs Streamlit: both turn a Python script into a web app with no frontend code. Gradio suits model demos, Streamlit suits dashboards and tools.
GraphQL vs REST in Python
REST (via Django REST Framework) exposes fixed endpoints; GraphQL (via Strawberry) lets clients query exactly the fields they need — here’s the real trade-off
Haystack vs LangChain: Which for RAG
Haystack is built for production retrieval and search pipelines; LangChain is a broader framework that can also build RAG systems
LangChain vs LlamaIndex: What’s the Difference
LangChain is a general LLM-application framework; LlamaIndex is focused specifically on data ingestion and retrieval — here’s when each one actually fits
Litestar vs FastAPI: What’s the Difference
Litestar ships more batteries-included (DTOs, dependency injection conventions) while FastAPI has the larger ecosystem — here’s the real trade-off
Matplotlib vs Seaborn vs Plotly Compared
Matplotlib is the low-level foundation, Seaborn makes statistical plots simpler on top of it, and Plotly adds interactivity — here’s which to reach for
MLflow vs DVC: What’s the Difference
MLflow tracks experiments and manages the model lifecycle; DVC version-controls data and pipelines like Git for datasets — they solve different problems
NumPy vs Pandas: What’s the Difference
NumPy handles raw numerical arrays; pandas builds labeled, tabular DataFrames on top of it — here’s the real distinction beginners run into
NumPy vs SciPy: What’s the Difference
NumPy provides the array data structure and basic operations; SciPy builds specialized scientific algorithms on top of it — here’s how they actually relate
Scikit-learn (sklearn) vs PyTorch vs TensorFlow
sklearn, PyTorch or TensorFlow? The same task run in all three with real results, GPU and Python-version limits, and a plain guide to which to use.
What Is Alembic? Database Migrations Explained
How Alembic tracks and applies versioned schema changes for SQLAlchemy projects, and why you need it the moment a database schema has to change
What Is Hugging Face?
How the Hugging Face Hub, Transformers library, and Spaces fit together, and why it’s become the default starting point for working with open models in Python
What Is Loguru? Python Logging Explained
Loguru replaces the standard library’s logging setup with sensible defaults, structured output, and rotation built in from the start
What Is MarkItDown? Docs to Markdown Explained
Microsoft’s tool for converting Office documents, PDFs, and other files into clean Markdown — and why that matters for feeding documents to an LLM
What Is the OpenAI Python Library?
The official Python client for the OpenAI API: Responses, Chat Completions, embeddings and streaming, and how it fits with Instructor and Pydantic AI
What Is Pydantic? Data Validation With Python Type Hints
What is Pydantic? A Python library that validates and parses data using type hints. How it works, why FastAPI uses it, and when a dataclass is enough.
What Is Rich? Terminal Formatting Explained
How Rich turns plain terminal output into formatted tables, progress bars, and syntax-highlighted text with just a few lines of Python
What Is Smolagents? Hugging Face’s Agent Library
A minimal, code-first agent library from Hugging Face — how it differs from heavier frameworks like LangChain, and when its simplicity is the point
What Is yt-dlp? Python Library and CLI Guide
yt-dlp is a command-line video and audio downloader you can also import as a Python library. Install it, see working code, and what it needs.
CircuitPython vs MicroPython: What’s the Difference
CircuitPython is Adafruit’s beginner-friendly fork of MicroPython — here’s how the drag-and-drop workflow, hardware support, and performance actually differ
Python Async Generators Explained
How async def combined with yield actually works, when to reach for one over a regular generator or async function, and what’s changing in Python 3.16
Python Free-Threaded Mode (No-GIL) Explained
What free-threaded Python actually is, why it’s opt-in rather than the default, and when disabling the GIL is worth trying
Click vs Typer: Which Python CLI Library
Typer grew out of Click and builds CLIs from type hints with less boilerplate. Here’s when that trade is worth it and when plain Click still wins.
FastAPI vs Starlette: What’s the Difference
FastAPI is built directly on Starlette, so this isn’t really a competition — here’s what FastAPI actually adds on top, and when Starlette alone is enough
Hatch vs uv: Which One for a New Python Project
Hatch and uv both manage Python projects and environments — how they actually differ, and why most people end up using both together
httpx vs requests: Do You Need to Switch
requests is fine for most scripts. httpx earns its place with async and HTTP/2, but its last release was 2024 and httpx2 now continues it
Polars vs Pandas: Should You Switch
Polars is faster and handles bigger-than-memory data better than pandas — here’s what that actually means for a real project, and when pandas still wins
Python Generators Explained
Generators produce values one at a time instead of building a full list in memory — what yield actually does, and when it matters
PyTorch vs TensorFlow: Which to Learn in 2026
PyTorch won research and is closing the gap in production; TensorFlow still has the edge on mobile and legacy deployment — here’s the actual current state
SQLAlchemy vs Django ORM: Which One to Use
Django’s ORM is simpler and tied to Django; SQLAlchemy is more powerful and framework-independent — here’s the real trade-off, not just a feature list
What Is Celery? Python Task Queues Explained
Celery runs slow work outside the request/response cycle — here’s what it actually does, when you need it, and simpler alternatives for smaller projects
What Is Mojo? Chris Lattner’s New AI Language Explained
Mojo combines Python syntax with systems-level performance for GPU/CPU workloads — what it actually is, now that it’s hit 1.0 and gone open source
What Is Ollama? Running LLMs Locally Explained
Ollama runs open-weight LLMs on your own machine with a simple CLI and local API — what it actually does, and why you’d use it over a hosted API
Instructor vs Pydantic AI: What’s the Difference
Instructor and Pydantic AI both promise structured, typed LLM output using Pydantic — here’s what actually separates a narrow tool from a full agent framework
LangChain vs LangGraph: What’s Actually Different
LangGraph is the runtime under LangChain’s agents, built by the same team. What each one does in LangChain 1.x and when you need LangGraph directly
Python AI Agent Frameworks Compared
How LangGraph, CrewAI, AutoGen (now archived) and smolagents differ, and which fits a new multi-agent Python project
Django REST Framework Explained: Building APIs on Django
What Django REST Framework actually adds to Django, a basic serializer/viewset example, and when it’s the right choice for an API
Django REST Framework vs FastAPI: Which for a New API?
How Django REST Framework and FastAPI actually differ for building an API, and which one fits a new project vs an existing Django codebase
Python 3.15’s JIT Compiler: How Much Faster Is It Really?
What actually changed in Python 3.15’s experimental JIT, the real speedup numbers, and whether it’s worth enabling yet
Python 3.15 Explained: 5 Videos Worth Watching
The best YouTube explainers covering Python 3.15’s new features, from a quick overview to hands-on looks at specific changes
Python 3.15: What’s New, Release Date and Features
Python 3.15.0 was released on 9 October 2026. What’s new: lazy imports, a new profiling package, JIT speedups and the other changes worth knowing.
What Is MCP (Model Context Protocol)? A Python Guide
What the Model Context Protocol actually standardizes, how it differs from LangChain or DSPy, and a basic FastMCP server example
Ruff vs Black: Which Python Formatter to Use (and autopep8, yapf)
Ruff vs Black: use Ruff for a new project, stay on Black if it works. Output differences, speed, autopep8 and yapf compared, and a safe way to switch.
Common Python Packages Every Developer Should Know
A short, practical list of Python packages you’ll reach for constantly — what each one does and why it’s the default choice
DSPy Explained: Programming, Not Prompting, Language Models
What DSPy is, how it differs from hand-writing prompts, and a basic example of defining a module and letting DSPy optimize it
FastAPI and HTMX: Interactive UIs Without a JS Framework
How FastAPI and HTMX pair together to build dynamic, interactive web apps using server-rendered HTML instead of a JavaScript frontend framework
Poetry vs uv vs Hatch: Which Python Packaging Tool in 2026
A head-to-head comparison of Poetry, uv, and Hatch — speed, lockfile behavior, and PEP 621 compliance, for picking a new project’s tooling
pytest vs unittest: Choosing a Python Testing Framework
pytest vs unittest: pytest needs less boilerplate and adds fixtures and plugins, while unittest is built in. How they differ and which one to choose.
Python Decorators Explained: What and When to Write One
How Python decorators actually work under the hood, with the built-in decorators you already use and a guide to writing your own
Python Resources for Beginners: Where to Start in 2026
The core set of resources worth starting with when you’re new to Python — courses, books, and tools, without the overwhelming full directory
The Python Standard Library: Built-In Modules Worth Knowing
The standard library modules you’ll actually reach for regularly — no pip install required, already in every Python installation
Python Virtual Environments Explained: venv vs uv vs conda
What a Python virtual environment is, why every project needs one, and how venv, uv and conda create them. Start here, then see the full comparison.
requirements.txt vs pyproject.toml: What’s the Difference
Why Python packaging moved from requirements.txt to pyproject.toml, what each actually does, and whether you still need a requirements.txt file
Streamlit Explained: Turning Python Scripts Into Web Apps
What Streamlit actually does, a basic example, and when to reach for it instead of Flask or FastAPI
What Does Black Do? Python’s Code Formatter Explained
How Black formats Python code, why it’s deliberately unconfigurable, and how it differs from autopep8 and yapf
What Is Uvicorn? The ASGI Server That Runs FastAPI
What is Uvicorn? An ASGI web server for Python that runs FastAPI and Starlette apps. How to install and run it, workers, and a production setup.
The Best Python Books for Beginners in 2026
The best Python books for beginners in 2026: a free start, a paid textbook, a gentler option, and the order to read the next ones.
The Best Python IDEs and Editors in 2026
The best Python IDE or editor in 2026: VS Code for most people, PyCharm for large projects, Positron or Jupyter for data science. How to choose.
Best Python Learning Resources in 2026
The best resources for learning Python in 2026: free courses, books, video, practice sites and one paid option, matched to how you learn.
The Best Python Testing Tools, Compared
pytest, unittest, and the surrounding testing ecosystem — what each tool does and when you actually need it
The Best Python YouTube Channels in 2026
Which Python YouTube channels are actually worth subscribing to, organised by what you’re trying to learn
Django vs FastAPI vs Flask: Choosing a Python Web Framework
A practical comparison of Django, FastAPI, and Flask — what each is actually good at, and how to pick the right one for your project
FastAPI vs Robyn vs Flask: Which Should You Choose?
A practical comparison of FastAPI, Robyn, and Flask — performance, ecosystem maturity, and which one actually fits your project
How to Write Clean Python Code: A Practical Guide
Concrete, non-obvious rules for writing clean, readable Python — naming, structure, and the habits that actually matter
The Most Popular Python Packages in 2026 (and What They Do)
A plain-English breakdown of the Python packages with the highest download counts, and why they’re downloaded so much
Python Async/Await Explained (Without the Jargon)
A plain-English explanation of Python’s async/await, when it actually helps, and the mistakes that make it worse than sync code
The Python Learning Roadmap for 2026
A Python roadmap for beginners to job-ready: five stages from core syntax to professional tooling, with timings and the best resource for each.
Best Python Package Manager 2026: pip, Poetry, uv, Hatch
The best Python package manager for a new project in 2026, and how pip, Poetry, uv, and Hatch actually differ
Python’s resource Module Explained
How to use Python’s built-in resource module to read and limit CPU time, memory, and file descriptors on Unix systems
Python Type Hints: A Practical Guide
How to actually use Python type hints beyond the basics — generics, Optional, Protocol, and when they’re worth the effort
How to Find Trending Python Repos with Good First Issues
A practical method for finding active Python open source projects that are actually welcoming to first-time contributors