Topics / #python-library
Python-library projects on GitHub
Useful Python libraries across networking, tasks, and CLIs.
As of , the most-starred Python-library projects on GitHub are manim (95.2K stars), headroom (75.5K stars) and scikit-learn (67.7K stars). GitHub.Locker tracks 95 Python-library repositories with 1.7M stars combined. The fastest-growing on October 16 was airllm, with +159 stars in a day.
Hot right now
Most stars gained in a day · Oct 16
+159airllm
lyogavin/airllm · ★ 39.1KAn open-source Python library that runs huge LLMs on tiny GPUs: a 70B model fits on a single 4GB card without quantization, distillation or pruning — even the 2.8T-parameter Kimi K3 runs in under 4GB.
headroom
headroomlabs-ai/headroom · ★ 75.5KHeadroom compresses everything an AI agent reads - tool outputs, logs, RAG chunks, files, and conversation history - before it reaches the LLM, cutting tokens while keeping the same answers. It ships as a library, a local proxy, and an MCP server.
+62manim
3b1b/manim · ★ 95.2KManimGL is a Python engine for precise programmatic animations, designed for creating explanatory math videos — the tool built by 3Blue1Brown's author to animate his videos.
+62RAG-Anything
HKUDS/RAG-Anything · ★ 23.6KAn all-in-one multimodal RAG framework built on LightRAG: it ingests real-world documents that mix text, images, tables and equations, then answers queries across all content types through one pipeline instead of separate specialized tools.
The all-time top
95 projects · by stars
- 95.2K
#1 · 3b1b/manimmanim
ManimGL is a Python engine for precise programmatic animations, designed for creating explanatory math videos — the tool built by 3Blue1Brown's author to animate his videos.
- 75.5K
#2 · headroomlabs-ai/headroom
headroom
Headroom compresses everything an AI agent reads - tool outputs, logs, RAG chunks, files, and conversation history - before it reaches the LLM, cutting tokens while keeping the same answers. It ships as a library, a local proxy, and an MCP server.
- 67.7K
#3 · scikit-learn/scikit-learnscikit-learn
scikit-learn is a Python library for machine learning, offering ready-made algorithms for classification, regression, clustering, dimensionality reduction and more, built on top of SciPy.
- 4
rich
57.6KTextualize/rich · PythonRich is a Python library that adds color, styling, and rich formatting to terminal output: tables, progress bars, markdown, syntax-highlighted code, and pretty tracebacks, all out of the box.
- 5

requests
54.5Kpsf/requests · PythonIt is a simple, yet elegant, HTTP library for Python that lets you send HTTP/1.1 requests extremely easily.
- 6

airllm
39.1Klyogavin/airllm · Jupyter NotebookAn open-source Python library that runs huge LLMs on tiny GPUs: a 70B model fits on a single 4GB card without quantization, distillation or pruning — even the 2.8T-parameter Kimi K3 runs in under 4GB.
- 7

pytorch-image-models
37.2Khuggingface/pytorch-image-models · PythonPyTorch Image Models (timm) — the largest collection of PyTorch image encoders and backbones, shipped with pretrained weights plus train, eval, inference and export scripts.
- 8

mihomo
34.9KMetaCubeX/mihomo · PythonIt is a Python library built on Pydantic that models and parses the data returned by the Mihomo API for Honkai: Star Rail, giving you typed, autocomplete-friendly access to a player's parsed character and showcase info.
- 9
numpy
33Knumpy/numpy · PythonNumPy is the fundamental package for scientific computing with Python — the array-and-math foundation that most numerical Python code builds on.
- 10

Scrapegraph-ai
31.8KScrapeGraphAI/Scrapegraph-ai · PythonScrapeGraphAI is a Python web scraping library that uses LLMs and direct graph logic to build scraping pipelines for websites and local documents (XML, HTML, JSON, Markdown). You just say which information you want to extract and it does the rest.
- 11

django-rest-framework
30.2Kencode/django-rest-framework · PythonDjango REST framework is a powerful and flexible toolkit for building Web APIs with Django: you add it to a project and get a full REST API around your data.
- 12
gpt-researcher
30.1Kassafelovic/gpt-researcher · PythonAn open-source autonomous agent that runs deep research on any task across the web and your local documents, producing detailed, factual research reports with citations.
- 13

openai-agents-python
30.1Kopenai/openai-agents-python · PythonIt is the OpenAI Agents SDK: a lightweight yet powerful Python framework for building multi-agent workflows, where an agent is an LLM configured with instructions, tools, guardrails and handoffs.
- 14

pydantic
29.1Kpydantic/pydantic · PythonPydantic is a Python library for data validation: you describe the data you expect with plain Python type hints, and it validates and parses real data against that description.
- 15

celery
29Kcelery/celery · PythonCelery is a distributed task queue for Python: clients put units of work (tasks) on a queue and dedicated worker processes monitor the queue and run them — across threads, machines, even datacenters.
- 16

ItChat
26.5Klittlecodersh/ItChat · PythonItChat is an open-source API for WeChat personal accounts: you drive WeChat from Python, and a bot that handles every message type takes under 30 lines of code.
- 17
shap
25.8Kshap/shap · Jupyter NotebookSHAP is a Python library that explains the output of any machine learning model using Shapley values from game theory — it tells you how much each feature contributed to a given prediction.
- 18

loguru
24.1KDelgan/loguru · PythonLoguru is a Python library that makes logging in Python simple and pleasant — a ready-to-use logger you import and start using immediately, made for people who otherwise default to print() instead.
- 19
pytorch_geometric
24.1Kpyg-team/pytorch_geometric · PythonPyG (PyTorch Geometric) is a Python library built on PyTorch for writing and training Graph Neural Networks (GNNs) on structured data — graphs and other irregular structures — using methods drawn from many published papers.
- 20

RAG-Anything
23.6KHKUDS/RAG-Anything · PythonAn all-in-one multimodal RAG framework built on LightRAG: it ingests real-world documents that mix text, images, tables and equations, then answers queries across all content types through one pipeline instead of separate specialized tools.
- 21
guidance
21.8Kguidance-ai/guidance · Jupyter NotebookGuidance is a Python library — an efficient programming paradigm for steering large language models: you control how output is structured while reducing latency and cost compared with conventional prompting or fine-tuning.
- 22

zipline
20.2Kquantopian/zipline · PythonZipline is a Pythonic algorithmic trading library — an event-driven system for backtesting trading strategies written in Python. It is used in production as the backtesting and live-trading engine behind Quantopian.
- 23
typer
20.1Kfastapi/typer · PythonTyper is a Python library for building command line apps: you write normal Python functions, declare their parameters with standard type hints, and get a polished CLI with automatic help and completions.
- 24

notebooklm-py
19.8Kteng-lin/notebooklm-py · PythonAn unofficial Python API and skill for Google NotebookLM (now rebranded Gemini Notebook): full programmatic access to its features from Python, a CLI, MCP and REST servers, and agents like Claude Code and Codex.
- 25

GHunt
19.7Kmxrch/GHunt · PythonGHunt is an offensive Google framework geared toward OSINT — collecting intelligence around Google — and its authors note that any Google-related use is possible.
- 26
tiktoken
19.5Kopenai/tiktoken · Pythontiktoken is a fast byte pair encoding (BPE) tokenizer built for use with OpenAI's models, converting text into tokens and back again.
- 27

kivy
19Kkivy/kivy · PythonKivy is an open source UI framework written in Python for rapid development of applications with innovative, often multi-touch interfaces. The same codebase runs on Windows, Linux, macOS, Android and iOS.
- 28

plotly.py
18.8Kplotly/plotly.py · PythonAn interactive, open-source graphing library for Python: you describe charts in Python code and get interactive figures rendered in the browser.
- 29

pybind11
18Kpybind/pybind11 · C++pybind11 is a lightweight header-only C++ library that exposes C++ types in Python and vice versa — mainly to create Python bindings for existing C++ code.
- 30
click
17.8Kpallets/click · PythonClick is a Python package for building beautiful command line interfaces in a composable way, with as little code as necessary. Its name stands for 'Command Line Interface Creation Kit'.
- 31

networkx
17.3Knetworkx/networkx · PythonNetworkX is a Python package for creating, manipulating, and studying complex networks — collections of nodes connected by edges — together with algorithms for analyzing them.
- 32

PySnooper
16.6Kcool-RR/PySnooper · PythonPySnooper is a Python debugging tool that traces a function and logs every line it runs, along with local variables, like set -x in Bash. One decorator replaces a pile of hand-written print statements.
- 33

pykan
16.3KKindXiaoming/pykan · Jupyter NotebookA Python implementation of Kolmogorov-Arnold Networks (KANs), a promising alternative to MLPs, released with the papers 'KAN: Kolmogorov-Arnold Networks' and 'KAN 2.0'.
- 34

numpy-ml
16.3Kddbourgin/numpy-ml · PythonA collection of machine learning algorithms — Gaussian mixture models, HMMs, neural networks, tree ensembles, reinforcement learning agents and more — implemented from scratch in pure NumPy.
- 35

discord.py
16.2KRapptz/discord.py · PythonA Python library for talking to the Discord API: you write your bot in Python and discord.py handles the low-level API work for you.
- 36
impacket
16.2Kfortra/impacket · PythonImpacket is a collection of Python classes for working with network protocols, giving low-level programmatic access to packets and, for some protocols like SMB1-3 and MSRPC, full protocol implementations.
- 37

httpx
15.6Kencode/httpx · PythonHTTPX is a fully featured HTTP client library for Python 3, with a broadly requests-compatible API, HTTP/1.1 and HTTP/2 support, and both sync and async interfaces. It also ships with an integrated command-line client.
- 38

memray
15.4Kbloomberg/memray · PythonMemray is a memory profiler for Python. It tracks memory allocations in Python code, native extension modules and the interpreter itself, then builds reports like flame graphs from the captured data.
- 39

scipy
15.1Kscipy/scipy · PythonSciPy (pronounced 'Sigh Pie') is an open-source Python library for mathematics, science, and engineering.
- 40
blind_watermark
14.8Kguofei9987/blind_watermark · PythonThis is a Python library for blind, invisible image watermarking: you embed a hidden watermark into an image and can later extract it without needing the original, un-watermarked image.
- 41

nltk
14.7Knltk/nltk · PythonNLTK is a suite of open source Python modules, bundled data sets, and tutorials supporting research and development in Natural Language Processing.
- 42

ChatterBot
14.5Kgunthercox/ChatterBot · PythonChatterBot is a machine-learning conversational dialog engine for Python: it generates chatbot replies based on collections of known conversations, and can be trained to speak any language.
- 43

prettymaps
14.3Kmarceloprates/prettymaps · Pythonprettymaps is a Python library that draws stylized, artistic maps from OpenStreetMap data, combining osmnx, matplotlib, shapely and vsketch to render streets, buildings, water and other features as a custom-styled figure.
- 44

dgl
14.3Kdmlc/dgl · PythonDGL is an open-source Python package for deep learning on graphs: it makes it easy to build and train graph neural networks on top of deep learning frameworks you may already use.
- 45

wxpy
14.3Kyoufou/wxpy · PythonIt's a Python library for automating a personal WeChat account: a bot API to send and receive messages and manage friends and groups from your own scripts.
- 46
seaborn
14.1Kmwaskom/seaborn · PythonSeaborn is a Python visualization library based on matplotlib that provides a high-level interface for drawing attractive statistical graphics.
- 47

needle
14.1Kcactus-compute/needle · PythonNeedle 2 is an open 45M-parameter model for tool calling, device use and structured extraction that ships as a single 14MB binary and runs a full session in about 28MB of RAM. This repo is its Python package for inference, LoRA fine-tuning and export.
- 48

speedtest-cli
14Ksivel/speedtest-cli · PythonThis is a command-line tool that tests your internet bandwidth using the servers and infrastructure of speedtest.net.
- 49

Pillow
13.9Kpython-pillow/Pillow · PythonPillow is a Python library that adds image processing capabilities to the Python interpreter, giving you extensive file format support and a fast internal image representation to build image tools on top of.
- 50

CustomTkinter
13.6KTomSchimansky/CustomTkinter · PythonCustomTkinter is a Python UI library based on Tkinter. It provides modern, fully customizable widgets so desktop apps get a consistent, up-to-date look across Windows, macOS and Linux.
- 51

git-filter-repo
13.4Knewren/git-filter-repo · Pythongit-filter-repo is a versatile tool for quickly rewriting git repository history — the replacement the git project itself now recommends over git filter-branch.
- 52

pandas_exercises
13.2Kguipsamora/pandas_exercises · Jupyter NotebookA collection of exercises for practicing pandas, the Python data analysis library, organized by topic like filtering, grouping, merging, and visualization.
- 53
pytube
13.2Kpytube/pytube · PythonA lightweight, dependency-free Python library and command-line utility for downloading YouTube videos — made for scripting downloads instead of grabbing them by hand.
- 54

pyautogui
12.7Kasweigart/pyautogui · PythonPyAutoGUI is a cross-platform Python module that lets you programmatically control the mouse and keyboard to automate GUI interactions.
- 55
starlette
12.7KKludex/starlette · PythonStarlette is a lightweight ASGI framework and toolkit for building async web services in Python - small, production-ready, and with few hard dependencies.
- 56

cupy
12.4Kcupy/cupy · PythonCuPy is a NumPy/SciPy-compatible array library for GPU-accelerated computing with Python: you write ordinary Python array code, and it executes on NVIDIA or AMD GPUs.
- 57

schedule
12.3Kdbader/schedule · PythonSchedule is a lightweight Python library for running jobs periodically using a simple, readable syntax, like running a function every 10 seconds or every Monday.
- 58

sqlalchemy
12.2Ksqlalchemy/sqlalchemy · PythonSQLAlchemy is the Python SQL toolkit and Object Relational Mapper (ORM) that gives application developers the full power and flexibility of SQL while also allowing object-oriented domain models to be mapped transparently to relational tables.
- 59

lime
12.2Kmarcotcr/lime · JavaScriptLIME (Local Interpretable Model-agnostic Explanations) is a Python package that explains individual predictions of any machine learning classifier, whether it works on text, tabular data, or images.
- 60

Telethon
12.1KLonamiWebs/Telethon · PythonTelethon is an asyncio Python 3 MTProto library for talking directly to Telegram's API, letting you act as a full user account or as a bot.
- 61
fastapi_mcp
12Ktadata-org/fastapi_mcp · PythonFastAPI-MCP turns your existing FastAPI endpoints into Model Context Protocol (MCP) tools, so AI agents like Claude or Cursor can call your API directly, with authentication built in.
- 62

uvloop
11.9KMagicStack/uvloop · Cythonuvloop is a fast, drop-in replacement for Python's built-in asyncio event loop, built on top of the libuv library.
- 63

allennlp
11.9Kallenai/allennlp · PythonAllenNLP is an open-source NLP research library built on PyTorch for developing state-of-the-art deep learning models across a wide range of linguistic tasks.
- 64
jinja
11.8Kpallets/jinja · PythonJinja is a fast, expressive, extensible template engine for Python: you write placeholders in a template using Python-like syntax, then pass it data to render a final document such as HTML.
- 65

cleanlab
11.7Kcleanlab/cleanlab · PythonCleanlab is an open-source Python library that automatically finds issues in ML datasets — label errors, outliers, duplicates — using your existing models, so that fixing the data trains better models.
- 66

presidio
11.4Kdata-privacy-stack/presidio · PythonAn open-source framework (SDK) that detects, redacts, masks and anonymizes sensitive data (PII) — names, credit card numbers, SSNs, phone numbers — in text, images and structured data.
- 67

tweepy
11.2Ktweepy/tweepy · PythonTweepy is a Python library for accessing the Twitter (X) API, letting you post tweets, read timelines, and interact with Twitter data programmatically.
- 68

numba
11.2Knumba/numba · PythonNumba is a Just-In-Time compiler that translates a subset of Python and NumPy code into fast machine code using LLVM, letting numerical functions run near C/Fortran speed without leaving Python.
- 69

ffmpeg-python
11Kkkroening/ffmpeg-python · Pythonffmpeg-python is a pure-Python wrapper around the FFmpeg command-line tool that lets you build FFmpeg pipelines, including complex filter graphs, using readable Python code instead of raw shell arguments.
- 70

autogluon
10.8Kautogluon/autogluon · PythonAutoGluon is an open-source Python library that automates machine learning: feed it your data and it delivers strong predictive performance in about three lines of code.
- 71
bbot
10.7Kblacklanternsecurity/bbot · PythonBBOT is a recursive internet scanner for hackers — it automates recon, bug bounty work and attack surface management (ASM), inspired by Spiderfoot.
- 72

denoising-diffusion-pytorch
10.7Klucidrains/denoising-diffusion-pytorch · PythonA PyTorch implementation of the Denoising Diffusion Probabilistic Model (DDPM), a generative modeling approach the author positions as a possible rival to GANs.
- 73

rq
10.7Krq/rq · PythonRQ (Redis Queue) is a simple Python library for putting jobs on a queue and processing them in the background with worker processes, backed by Redis or Valkey.
- 74

petals
10.6Kbigscience-workshop/petals · PythonPetals lets you run big open LLMs at home, BitTorrent-style: you join a public swarm that serves models like Llama 3.1 (405B), Mixtral (8x22B), Falcon (40B+) and BLOOM (176B) for inference and fine-tuning right from your desktop or Google Colab, up to 10x faster than offloading.
- 75

python-prompt-toolkit
10.6Kprompt-toolkit/python-prompt-toolkit · Pythonprompt_toolkit is a Python library for building powerful interactive command line applications — you use it to write your own terminal apps, not run it directly.
- 76

django-allauth
10.4Kpennersr/django-allauth · PythonAn integrated set of Django applications covering authentication, registration, account management, and third-party (social) account login — local and social sign-in flows in one package.
- 77

pypdf
10.3Kpy-pdf/pypdf · PythonA free and open-source pure-python PDF library: it splits, merges, crops and transforms the pages of PDF files, and can add custom data, viewing options and passwords to them.
- 78
easytrader
10.2Kshidenggui/easytrader · Pythoneasytrader is a Python library for automating Chinese stock quant trading - it can drive the 同花顺 (THS) desktop client, use the official miniqmt quant API, rebalance or track 雪球 (Xueqiu) portfolios, and mirror joinquant/ricequant paper trading.
- 79
icecream
10.1Kgruns/icecream · PythonIceCream is a Python library for friendlier print debugging: instead of print() you call ic(), which prints each expression together with its value, pretty-printed and syntax highlighted.
- 80

tpot
10.1KEpistasisLab/tpot · Jupyter NotebookTPOT, the Tree-based Pipeline Optimization Tool, is a Python AutoML library that uses genetic programming to automatically optimize machine learning pipelines for your data; the README calls it your Data Science Assistant.
- 81
PySyft
10KOpenMined/PySyft · PythonPySyft (the 'syft' package) lets you perform data science on data that stays on someone else's server, so researchers can get answers from data without needing a copy or direct access to it.
- 82

monty
8.7Kpydantic/monty · RustMonty is a minimal, secure Python interpreter written in Rust, built so AI models can run generated Python code without the latency and overhead of a container sandbox.
- 83
SimpleMem
3.8Kaiming-lab/SimpleMem · PythonSimpleMem is a lifelong memory stack for LLM agents that stores, compresses, and retrieves long-term memories across text, image, audio, and video, so agents keep context without reprocessing redundant history.
- 84

invisible_selenium
3.1Kfeder-cr/invisible_selenium · PythonA drop-in replacement for Selenium that runs on a C++-patched, anti-detect Firefox with an undetectable browser fingerprint and humanized mouse/input actions, so anti-bot systems and captchas (reCAPTCHA, hCaptcha, Cloudflare Turnstile) don't flag it as automation.
- 85
tau
3Khuggingface/tau · PythonTau is Hugging Face's Python port of Pi's minimalist coding agent — a terminal app you ask to explain a repo, add tests or fix a stack trace, and it reads files, edits code, runs commands and streams what it is doing.
- 86

apsw
946rogerbinns/apsw · CAPSW (Another Python SQLite Wrapper) is a Python extension that wraps SQLite, aiming to let you get the most out of SQLite directly from Python 3.10 and later.
- 87

task-state-guard
895MaxHu-xuan/task-state-guard · PythonTaskStateGuard is an embedded SQLite reconciliation guardrail that fixes stuck task and delivery states after an AI agent, worker, or local workflow restarts, so you never have to guess whether work actually succeeded or was delivered.
- 88
project_superdex
738facebookresearch/project_superdex · C++Project SuperDex is a unified simulation platform for dexterous manipulation research from Meta, combining a contact-first physics engine, robotics authoring tools, and a reinforcement learning interface, with VR-based teleoperation planned for Q4 2026.
- 89

cadence
449muellerberndt/cadence · PythonCadence is an open research library toward general intelligence: a NumPy collection of 'brains' that compute by settling into an equilibrium and learn by detuning it, aiming to acquire skills from live experience the way animals and humans do.
- 90

cloudflare-turnstile-solver
346biusberline/cloudflare-turnstile-solver · PythonA small Python library and CLI for Cloudflare Turnstile on your own pages: it reads the sitekey from a page, gets a valid token via the Peak API, and hands you a cf-turnstile-response to inject into a form or request.
- 91
vegaml
249NandhaKishorM/vegaml · Pythonvegaml wraps a frozen language model and a small calibration engine so that a state plus a fixed-type question (choice, score, or boolean) returns a value your code can use directly, with a calibrated probability, a conformal answer set, and an explicit abstain flag. No text is ever generated in the path.
- 92

quicksand
218microsoft/quicksand · PythonQuicksand is an async Python API for launching, controlling, and snapshotting QEMU virtual machines, built specifically for sandboxing AI agents.
- 93

SystemOneHarness
194HarnessRouter/SystemOneHarness · PythonAn open-source Python harness that turns a System One decision model into an agent loop: it observes an environment, compiles a finite action space into typed questions, gates each decision by confidence, executes the action and records a complete trace.
- 94
paper-docx
122paper-instruments/paper-docx · Pythonpaper-docx is an agent-safe fork of python-docx for creating and editing Microsoft Word (.docx) documents, built to refuse unsupported operations instead of silently corrupting files.
- 95

Proteus
108proteus-evolve/Proteus · PythonProteus lets you plug any agent harness into any model, have it rewrite its own harness (prompts, memory, skills, tools, control loop) across many context-fresh episodes, and measures how that harness actually changes over time.
Related topics
Often tagged together