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.

95Projects
1.7MStars in total
+799Stars in a day

Hot right now

Most stars gained in a day · Oct 16

The all-time top

95 projects · by stars

  1. #1 · 3b1b/manim

    manim

    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.

    95.2K
  2. #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.

    75.5K
  3. #3 · scikit-learn/scikit-learn

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

    67.7K
  1. 4

    rich

    57.6KTextualize/rich · Python

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

  2. 5

    requests

    54.5Kpsf/requests · Python

    It is a simple, yet elegant, HTTP library for Python that lets you send HTTP/1.1 requests extremely easily.

  3. 6

    airllm

    39.1Klyogavin/airllm · Jupyter Notebook

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

  4. 7

    pytorch-image-models

    37.2Khuggingface/pytorch-image-models · Python

    PyTorch Image Models (timm) — the largest collection of PyTorch image encoders and backbones, shipped with pretrained weights plus train, eval, inference and export scripts.

  5. 8

    mihomo

    34.9KMetaCubeX/mihomo · Python

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

  6. 9

    numpy

    33Knumpy/numpy · Python

    NumPy is the fundamental package for scientific computing with Python — the array-and-math foundation that most numerical Python code builds on.

  7. 10

    Scrapegraph-ai

    31.8KScrapeGraphAI/Scrapegraph-ai · Python

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

  8. 11

    django-rest-framework

    30.2Kencode/django-rest-framework · Python

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

  9. 12

    gpt-researcher

    30.1Kassafelovic/gpt-researcher · Python

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

  10. 13

    openai-agents-python

    30.1Kopenai/openai-agents-python · Python

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

  11. 14

    pydantic

    29.1Kpydantic/pydantic · Python

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

  12. 15

    celery

    29Kcelery/celery · Python

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

  13. 16

    ItChat

    26.5Klittlecodersh/ItChat · Python

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

  14. 17

    shap

    25.8Kshap/shap · Jupyter Notebook

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

  15. 18

    loguru

    24.1KDelgan/loguru · Python

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

  16. 19

    pytorch_geometric

    24.1Kpyg-team/pytorch_geometric · Python

    PyG (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.

  17. 20

    RAG-Anything

    23.6KHKUDS/RAG-Anything · Python

    An 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. 21

    guidance

    21.8Kguidance-ai/guidance · Jupyter Notebook

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

  19. 22

    zipline

    20.2Kquantopian/zipline · Python

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

  20. 23

    typer

    20.1Kfastapi/typer · Python

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

  21. 24

    notebooklm-py

    19.8Kteng-lin/notebooklm-py · Python

    An 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. 25

    GHunt

    19.7Kmxrch/GHunt · Python

    GHunt is an offensive Google framework geared toward OSINT — collecting intelligence around Google — and its authors note that any Google-related use is possible.

  23. 26

    tiktoken

    19.5Kopenai/tiktoken · Python

    tiktoken is a fast byte pair encoding (BPE) tokenizer built for use with OpenAI's models, converting text into tokens and back again.

  24. 27

    kivy

    19Kkivy/kivy · Python

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

  25. 28

    plotly.py

    18.8Kplotly/plotly.py · Python

    An interactive, open-source graphing library for Python: you describe charts in Python code and get interactive figures rendered in the browser.

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

  27. 30

    click

    17.8Kpallets/click · Python

    Click 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'.

  28. 31

    networkx

    17.3Knetworkx/networkx · Python

    NetworkX is a Python package for creating, manipulating, and studying complex networks — collections of nodes connected by edges — together with algorithms for analyzing them.

  29. 32

    PySnooper

    16.6Kcool-RR/PySnooper · Python

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

  30. 33

    pykan

    16.3KKindXiaoming/pykan · Jupyter Notebook

    A Python implementation of Kolmogorov-Arnold Networks (KANs), a promising alternative to MLPs, released with the papers 'KAN: Kolmogorov-Arnold Networks' and 'KAN 2.0'.

  31. 34

    numpy-ml

    16.3Kddbourgin/numpy-ml · Python

    A collection of machine learning algorithms — Gaussian mixture models, HMMs, neural networks, tree ensembles, reinforcement learning agents and more — implemented from scratch in pure NumPy.

  32. 35

    discord.py

    16.2KRapptz/discord.py · Python

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

  33. 36

    impacket

    16.2Kfortra/impacket · Python

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

  34. 37

    httpx

    15.6Kencode/httpx · Python

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

  35. 38

    memray

    15.4Kbloomberg/memray · Python

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

  36. 39

    scipy

    15.1Kscipy/scipy · Python

    SciPy (pronounced 'Sigh Pie') is an open-source Python library for mathematics, science, and engineering.

  37. 40

    blind_watermark

    14.8Kguofei9987/blind_watermark · Python

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

  38. 41

    nltk

    14.7Knltk/nltk · Python

    NLTK is a suite of open source Python modules, bundled data sets, and tutorials supporting research and development in Natural Language Processing.

  39. 42

    ChatterBot

    14.5Kgunthercox/ChatterBot · Python

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

  40. 43

    prettymaps

    14.3Kmarceloprates/prettymaps · Python

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

  41. 44

    dgl

    14.3Kdmlc/dgl · Python

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

  42. 45

    wxpy

    14.3Kyoufou/wxpy · Python

    It'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.

  43. 46

    seaborn

    14.1Kmwaskom/seaborn · Python

    Seaborn is a Python visualization library based on matplotlib that provides a high-level interface for drawing attractive statistical graphics.

  44. 47

    needle

    14.1Kcactus-compute/needle · Python

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

  45. 48

    speedtest-cli

    14Ksivel/speedtest-cli · Python

    This is a command-line tool that tests your internet bandwidth using the servers and infrastructure of speedtest.net.

  46. 49

    Pillow

    13.9Kpython-pillow/Pillow · Python

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

  47. 50

    CustomTkinter

    13.6KTomSchimansky/CustomTkinter · Python

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

  48. 51

    git-filter-repo

    13.4Knewren/git-filter-repo · Python

    git-filter-repo is a versatile tool for quickly rewriting git repository history — the replacement the git project itself now recommends over git filter-branch.

  49. 52

    pandas_exercises

    13.2Kguipsamora/pandas_exercises · Jupyter Notebook

    A collection of exercises for practicing pandas, the Python data analysis library, organized by topic like filtering, grouping, merging, and visualization.

  50. 53

    pytube

    13.2Kpytube/pytube · Python

    A lightweight, dependency-free Python library and command-line utility for downloading YouTube videos — made for scripting downloads instead of grabbing them by hand.

  51. 54

    pyautogui

    12.7Kasweigart/pyautogui · Python

    PyAutoGUI is a cross-platform Python module that lets you programmatically control the mouse and keyboard to automate GUI interactions.

  52. 55

    starlette

    12.7KKludex/starlette · Python

    Starlette is a lightweight ASGI framework and toolkit for building async web services in Python - small, production-ready, and with few hard dependencies.

  53. 56

    cupy

    12.4Kcupy/cupy · Python

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

  54. 57

    schedule

    12.3Kdbader/schedule · Python

    Schedule is a lightweight Python library for running jobs periodically using a simple, readable syntax, like running a function every 10 seconds or every Monday.

  55. 58

    sqlalchemy

    12.2Ksqlalchemy/sqlalchemy · Python

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

  56. 59

    lime

    12.2Kmarcotcr/lime · JavaScript

    LIME (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.

  57. 60

    Telethon

    12.1KLonamiWebs/Telethon · Python

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

  58. 61

    fastapi_mcp

    12Ktadata-org/fastapi_mcp · Python

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

  59. 62

    uvloop

    11.9KMagicStack/uvloop · Cython

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

  60. 63

    allennlp

    11.9Kallenai/allennlp · Python

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

  61. 64

    jinja

    11.8Kpallets/jinja · Python

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

  62. 65

    cleanlab

    11.7Kcleanlab/cleanlab · Python

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

  63. 66

    presidio

    11.4Kdata-privacy-stack/presidio · Python

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

  64. 67

    tweepy

    11.2Ktweepy/tweepy · Python

    Tweepy is a Python library for accessing the Twitter (X) API, letting you post tweets, read timelines, and interact with Twitter data programmatically.

  65. 68

    numba

    11.2Knumba/numba · Python

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

  66. 69

    ffmpeg-python

    11Kkkroening/ffmpeg-python · Python

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

  67. 70

    autogluon

    10.8Kautogluon/autogluon · Python

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

  68. 71

    bbot

    10.7Kblacklanternsecurity/bbot · Python

    BBOT is a recursive internet scanner for hackers — it automates recon, bug bounty work and attack surface management (ASM), inspired by Spiderfoot.

  69. 72

    denoising-diffusion-pytorch

    10.7Klucidrains/denoising-diffusion-pytorch · Python

    A PyTorch implementation of the Denoising Diffusion Probabilistic Model (DDPM), a generative modeling approach the author positions as a possible rival to GANs.

  70. 73

    rq

    10.7Krq/rq · Python

    RQ (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.

  71. 74

    petals

    10.6Kbigscience-workshop/petals · Python

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

  72. 75

    python-prompt-toolkit

    10.6Kprompt-toolkit/python-prompt-toolkit · Python

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

  73. 76

    django-allauth

    10.4Kpennersr/django-allauth · Python

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

  74. 77

    pypdf

    10.3Kpy-pdf/pypdf · Python

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

  75. 78

    easytrader

    10.2Kshidenggui/easytrader · Python

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

  76. 79

    icecream

    10.1Kgruns/icecream · Python

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

  77. 80

    tpot

    10.1KEpistasisLab/tpot · Jupyter Notebook

    TPOT, 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.

  78. 81

    PySyft

    10KOpenMined/PySyft · Python

    PySyft (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.

  79. 82

    monty

    8.7Kpydantic/monty · Rust

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

  80. 83

    SimpleMem

    3.8Kaiming-lab/SimpleMem · Python

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

  81. 84

    invisible_selenium

    3.1Kfeder-cr/invisible_selenium · Python

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

  82. 85

    tau

    3Khuggingface/tau · Python

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

  83. 86

    apsw

    946rogerbinns/apsw · C

    APSW (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.

  84. 87

    task-state-guard

    895MaxHu-xuan/task-state-guard · Python

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

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

  86. 89

    cadence

    449muellerberndt/cadence · Python

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

  87. 90

    cloudflare-turnstile-solver

    346biusberline/cloudflare-turnstile-solver · Python

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

  88. 91

    vegaml

    249NandhaKishorM/vegaml · Python

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

  89. 92

    quicksand

    218microsoft/quicksand · Python

    Quicksand is an async Python API for launching, controlling, and snapshotting QEMU virtual machines, built specifically for sandboxing AI agents.

  90. 93

    SystemOneHarness

    194HarnessRouter/SystemOneHarness · Python

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

  91. 94

    paper-docx

    122paper-instruments/paper-docx · Python

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

  92. 95

    Proteus

    108proteus-evolve/Proteus · Python

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

Often tagged together