SyncAI.news, a Varaisys broadcasting
12 Python Libraries You Need to Try by Year End
SO

Shittu Olumide

· 2 min read

EngineeringKDnuggets

12 Python Libraries You Need to Try by Year End

Python libraries move fast, and the last three months were busy. DuckDB 2.0 shipped on October 21, FastMCP 4 went stable on the new Model Context Protocol (MCP), and Meta's Pyrefly reached 1.0 while Astral's ty keeps closing in on it. If you want the new Python libraries worth your time before 2026 ends, this list covers 12 of them across data, AI agents, and developer tooling. Each entry has a link, a current metric, and a short example you can run today.

How These 12 Were Picked

I used three filters: popularity (GitHub stars), real usage (PyPI downloads and survey data), and usefulness (does it solve a job you have this week). Every number is dated, because stars and downloads change quickly. Four of the picks, Polars, FastMCP, Pydantic AI and Pyrefly, also appeared in KDnuggets' February list, so those entries focus on what changed since then.

All code was run on Python 3.12 with Polars 2.1.0, DuckDB 2.0.0, Narwhals 2.28.0, marimo 0.25.2, Pydantic AI 2.68.0, OpenAI Agents SDK 0.24.0, Google Agent Development Kit (ADK) 2.14.0, FastMCP 4.1.8, uv 0.13.7, Ruff 0.17.4, ty 0.0.101 and Pyrefly 1.4.1. The two examples that call a hosted model need an API key, so for those I tested the agent and tool definitions only.

Part 1: Data Libraries

The biggest release of the quarter landed here, so we start with data.

1. Polars

Polars is a DataFrame library written in Rust. Its main idea is lazy execution: you describe the whole query, and Polars optimizes the plan before it reads anything, so it only loads the rows and columns it needs.

The numbers show it is still the challenger. In the last month, pandas had 546.9 million PyPI downloads and Polars 49.9 million (pypistats, October 7, 2026), which puts Polars at roughly a tenth of pandas' volume. pandas is not standing still either, since pandas 3.0 was released on January 21. Try Polars if your data fits in memory and your group-bys feel slow.

Original source

This story was published by KDnuggets and written by Shittu Olumide. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on kdnuggets.com

Similar News