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.

90Projects
1.5MStars in total
+936Stars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

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

    96.7K
  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.

    81.2K
  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.

    68.4K
  1. 4

    rich

    57.9KTextualize/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.7Kpsf/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

    43.7Klyogavin/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.3Khuggingface/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

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

    33.6Knumpy/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

    33KScrapeGraphAI/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

    gpt-researcher

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

  9. 12

    openai-agents-python

    30.9Kopenai/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.

  10. 13

    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.

  11. 14

    pydantic

    29.7Kpydantic/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

    29.2Kcelery/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

    shap

    25.9Kshap/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.

  14. 17

    RAG-Anything

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

  15. 18

    loguru

    24.2KDelgan/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

    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.

  18. 21

    notebooklm-py

    20.4Kteng-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.

  19. 22

    typer

    20.4Kfastapi/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.

  20. 23

    GHunt

    19.9Kmxrch/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.

  21. 24

    tiktoken

    19.7Kopenai/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.

  22. 25

    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.

  23. 26

    plotly.py

    18.9Kplotly/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.

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

  25. 28

    click

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

  26. 29

    networkx

    17.4Knetworkx/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.

  27. 30

    impacket

    16.3Kfortra/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.

  28. 31

    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.

  29. 32

    httpx

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

  30. 33

    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.

  31. 34

    scipy

    15.2Kscipy/scipy · Python

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

  32. 35

    cactus

    15Kcactus-compute/cactus · 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.

  33. 36

    blind_watermark

    14.9Kguofei9987/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.

  34. 37

    nltk

    14.8Knltk/nltk · Python

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

  35. 38

    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.

  36. 39

    prettymaps

    14.4Kmarceloprates/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.

  37. 40

    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.

  38. 41

    Pillow

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

  39. 42

    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.

  40. 43

    git-filter-repo

    13.5Knewren/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.

  41. 44

    pandas_exercises

    13.4Kguipsamora/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.

  42. 45

    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.

  43. 46

    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.

  44. 47

    sqlalchemy

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

  45. 48

    presidio

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

  46. 49

    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.

  47. 50

    cleanlab

    11.8Kcleanlab/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.

  48. 51

    bbot

    11.3Kblacklanternsecurity/bbot · Python

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

  49. 52

    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.

  50. 53

    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.

  51. 54

    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.

  52. 55

    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.

  53. 56

    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.

  54. 57

    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.

  55. 58

    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.

  56. 59

    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.

  57. 60

    easytrader

    10.3Kshidenggui/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.

  58. 61

    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.

  59. 62

    PySyft

    10.1KOpenMined/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.

  60. 63

    monty

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

  61. 64

    earshot

    6KLeonxlnx/earshot · Python

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

  62. 65

    ShopifyAutoAuth

    4.7KAhmadHassan-BTed/ShopifyAutoAuth · Python

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

  63. 66

    SimpleMem

    3.9Kaiming-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.

  64. 67

    cefpython

    3.2Kcztomczak/cefpython · Cython

    Python bindings for the Chromium Embedded Framework (CEF), so Python programs can embed a Chromium browser engine in desktop applications.

  65. 68

    tau

    3.1Khuggingface/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.

  66. 69

    uniface

    2.3Kyakhyo/uniface · Python

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

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

  68. 71

    sand3d

    2.2KSandflow-ai/sand3d · HTML

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

  69. 72

    open-pdf-studio

    1.4KOpenAEC-Foundation/open-pdf-studio · JavaScript

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

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

  71. 74

    timestral

    1.2Kmistralai/timestral · Python

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

  72. 75

    python-certifi

    1Kcertifi/python-certifi · Python

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

  73. 76

    task-state-guard

    984MaxHu-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.

  74. 77

    apsw

    957rogerbinns/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.

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

  76. 79

    SwarmLab

    691joeaelkhoury/SwarmLab · Python

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

  77. 80

    cadence

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

  78. 81

    detectorscope

    492google-deepmind/detectorscope · Python

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

  79. 82

    quicksand

    425microsoft/quicksand · Python

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

  80. 83

    geometry-script

    390carson-katri/geometry-script · Python

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

  81. 84

    kauldron

    361google-research/kauldron · Python

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

  82. 85

    terrio

    324opengeos/terrio · Rust

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

  83. 86

    vegaml

    311NandhaKishorM/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.

  84. 87

    selenium

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

  85. 88

    SystemOneHarness

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

  86. 89

    Gaussian_Clef_RAG

    169myneace/Gaussian_Clef_RAG · Python

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

  87. 90

    paper-docx

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

Often tagged together