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 (96.7K stars), headroom (81.2K stars) and scikit-learn (68.4K stars). GitHub.Locker tracks 90 Python-library repositories with 1.5M stars combined. The fastest-growing on November 30 was RAG-Anything, with +204 stars in a day.
Hot right now
Most stars gained in a day · Nov 30
+204RAG-Anything
HKUDS/RAG-Anything · ★ 24.9KAn 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.
+74earshot
Leonxlnx/earshot · ★ 6KEarshot gives AI coding agents the ability to hear and reason about sound: it can describe what a file sounds like, judge how well audio matches a description, find the best moments in a recording, tell real recordings from code-synthesized ones, and critique a video's sound design against professional launch films.
bbot
blacklanternsecurity/bbot · ★ 11.3KBBOT is a recursive internet scanner for hackers — it automates recon, bug bounty work and attack surface management (ASM), inspired by Spiderfoot.
+56airllm
lyogavin/airllm · ★ 43.7KAn 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.
The all-time top
90 projects · by stars
- 96.7K
#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.
- 81.2K
#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.
- 68.4K
#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.9KTextualize/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.7Kpsf/requests · PythonIt is a simple, yet elegant, HTTP library for Python that lets you send HTTP/1.1 requests extremely easily.
- 6

airllm
43.7Klyogavin/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.3Khuggingface/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
35.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
33.6Knumpy/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
33KScrapeGraphAI/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

gpt-researcher
31Kassafelovic/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.
- 12

openai-agents-python
30.9Kopenai/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.
- 13

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.
- 14

pydantic
29.7Kpydantic/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
29.2Kcelery/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
shap
25.9Kshap/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.
- 17

RAG-Anything
24.9KHKUDS/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.
- 18

loguru
24.2KDelgan/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
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.
- 21

notebooklm-py
20.4Kteng-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.
- 22
typer
20.4Kfastapi/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.
- 23

GHunt
19.9Kmxrch/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.
- 24
tiktoken
19.7Kopenai/tiktoken · Pythontiktoken is a fast byte pair encoding (BPE) tokenizer built for use with OpenAI's models, converting text into tokens and back again.
- 25

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.
- 26

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

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.
- 28
click
17.9Kpallets/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'.
- 29

networkx
17.4Knetworkx/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.
- 30
impacket
16.3Kfortra/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.
- 31

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.
- 32

httpx
15.8Kencode/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.
- 33

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.
- 34

scipy
15.2Kscipy/scipy · PythonSciPy (pronounced 'Sigh Pie') is an open-source Python library for mathematics, science, and engineering.
- 35
cactus
15Kcactus-compute/cactus · 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.
- 36
blind_watermark
14.9Kguofei9987/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.
- 37

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

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.
- 39

prettymaps
14.4Kmarceloprates/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.
- 40
seaborn
14.1Kmwaskom/seaborn · PythonSeaborn is a Python visualization library based on matplotlib that provides a high-level interface for drawing attractive statistical graphics.
- 41

Pillow
14Kpython-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.
- 42

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.
- 43

git-filter-repo
13.5Knewren/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.
- 44

pandas_exercises
13.4Kguipsamora/pandas_exercises · Jupyter NotebookA collection of exercises for practicing pandas, the Python data analysis library, organized by topic like filtering, grouping, merging, and visualization.
- 45
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.
- 46

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.
- 47

sqlalchemy
12.3Ksqlalchemy/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.
- 48

presidio
12.1Kdata-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.
- 49

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.
- 50

cleanlab
11.8Kcleanlab/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.
- 51
bbot
11.3Kblacklanternsecurity/bbot · PythonBBOT is a recursive internet scanner for hackers — it automates recon, bug bounty work and attack surface management (ASM), inspired by Spiderfoot.
- 52

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.
- 53

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.
- 54

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.
- 55

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.
- 56

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.
- 57

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.
- 58

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.
- 59

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.
- 60

easytrader
10.3Kshidenggui/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.
- 61
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.
- 62
PySyft
10.1KOpenMined/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.
- 63

monty
9Kpydantic/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.
- 64

earshot
6KLeonxlnx/earshot · PythonEarshot gives AI coding agents the ability to hear and reason about sound: it can describe what a file sounds like, judge how well audio matches a description, find the best moments in a recording, tell real recordings from code-synthesized ones, and critique a video's sound design against professional launch films.
- 65

ShopifyAutoAuth
4.7KAhmadHassan-BTed/ShopifyAutoAuth · PythonShopifyAutoAuth is a Python library that handles Shopify Admin API OAuth 2.0 Client Credentials Grant authentication, automatically fetching, caching, and refreshing access tokens so you never touch a raw token.
- 66
SimpleMem
3.9Kaiming-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.
- 67

cefpython
3.2Kcztomczak/cefpython · CythonPython bindings for the Chromium Embedded Framework (CEF), so Python programs can embed a Chromium browser engine in desktop applications.
- 68
tau
3.1Khuggingface/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.
- 69
uniface
2.3Kyakhyo/uniface · PythonUniFace is a unified Python library that bundles fifteen face-analysis tasks (detection, recognition, landmarks, parsing, gaze, attributes, anti-spoofing, and more) behind one API, so you don't need a separate package for each task.
- 70

MicroManipulatorStepper
2.3K0x23/MicroManipulatorStepper · C++It is an open source, low-cost, build-it-yourself motorized XYZ micro-manipulator motion control platform that achieves sub-micrometer precision, intended for optical alignment, probing electronic components, and microscopy.
- 71
sand3d
2.2KSandflow-ai/sand3d · HTMLsand3d is a Python library for writing 3D objects as short programs. A model writes the program in a few hundred tokens, and a person can read it.
- 72

open-pdf-studio
1.4KOpenAEC-Foundation/open-pdf-studio · JavaScriptA free, open-source PDF viewer and editor for people who work with drawings. It does markup, measuring to scale, revision comparison and CAD import, and runs on Windows, macOS, Linux, Android and in the browser.
- 73

threepp
1.2Kmarkaren/threepp · C++threepp is a cross-platform C++20 3D library with Python bindings that mirrors the high-level API of three.js. It is meant for building 3D scenes and simulations in code.
- 74

timestral
1.2Kmistralai/timestral · PythonTimestral is a family of time-series foundation models by Mistral AI for multivariate probabilistic forecasting, supporting past-only and known-future covariates. This repository provides standalone inference code for running the models.
- 75

python-certifi
1Kcertifi/python-certifi · PythonCertifi is a Python package that ships Mozilla's curated collection of Root CA certificates, used to validate the trustworthiness of SSL certificates and verify the identity of TLS hosts.
- 76

task-state-guard
984MaxHu-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.
- 77

apsw
957rogerbinns/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.
- 78
project_superdex
846facebookresearch/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.
- 79

SwarmLab
691joeaelkhoury/SwarmLab · PythonSwarm Lab is an AI coding assistant and teams of coding agents built into VS Code, with visible steps, reviewable diffs, and approval prompts before edits or commands run.
- 80

cadence
637muellerberndt/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.
- 81

detectorscope
492google-deepmind/detectorscope · PythonDetectorScope turns a black-box AI text detector into one whose every prediction is a sum of named, validated features, so you can see exactly which properties of a text and where in it made the detector say 'AI'.
- 82

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

geometry-script
390carson-katri/geometry-script · PythonGeometry Script is a Python scripting API that lets you build Blender's Geometry Nodes, shader nodes, and compositor node trees with code instead of the node editor.
- 84

kauldron
361google-research/kauldron · PythonKauldron is a Python library from Google Research for training machine learning models, built for research speed and modularity. It provides the glue code that lets you combine any dataset, model, and optimizer into a training pipeline.
- 85
terrio
324opengeos/terrio · Rustterrio is a pure-Rust library (with a CLI, Python and JavaScript/WASM bindings) for reading, writing, converting and reprojecting geospatial raster, vector and point cloud data, with no C dependencies so it compiles anywhere Rust does, including WebAssembly.
- 86
vegaml
311NandhaKishorM/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.
- 87

selenium
271oss-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.
- 88

SystemOneHarness
209HarnessRouter/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.
- 89

Gaussian_Clef_RAG
169myneace/Gaussian_Clef_RAG · PythonGaussian-Clef RAG is a retrieval-augmented generation library that represents every knowledge chunk as a Gaussian distribution on a statistical manifold instead of a flat vector, using information geometry for retrieval instead of plain cosine similarity.
- 90
paper-docx
138paper-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.
Related topics
Often tagged together