An opinionated list of Python frameworks, libraries, tools, and resources.
-
- 🌎 pyr**: Zero-config Python project manager. Bootstraps its own runtime, app-convention, and working imports - out the box.
The #10 most-starred repo on GitHub. Put your product in front of Python developers. Become a sponsor.
AI & ML
- AI and Agents
- Deep Learning
- Machine Learning
- Natural Language Processing
- Computer Vision
- Recommender Systems
Web Development
- Web Frameworks
- Web APIs
- Web Servers
- WebSocket
- Template Engines
- Web Asset Management
- Authentication
- Admin Panels
- CMS
- Static Site Generators
HTTP & Scraping
Database & Storage
Data & Science
Developer Tools
- Algorithms and Design Patterns
- Interactive Interpreter
- Code Analysis
- Testing
- Debugging Tools
- Build Tools
- Documentation
DevOps
CLI & GUI
Text & Documents
Media
Python Language
- Implementations
- Built-in Classes Enhancement
- Functional Programming
- Asynchronous Programming
- Date and Time
Python Toolchain
Security
Miscellaneous
AI & ML
Libraries for building AI applications, LLM integrations, and autonomous agents.
- Agent Skills
45⭐3🍴django-ai-plugins) - Django backend agent skills for Django, DRF, Celery, and Django-specific code review.582⭐29🍴sentry-skills) - Python-focused engineering skills for code review, debugging, and backend workflows.4684⭐403🍴trailofbits-skills) - Python-friendly security skills for auditing, testing, and safer backend development.
- Orchestration
57215⭐8624🍴autogen) - A programming framework for building agentic AI applications.1251⭐114🍴bub) - A lightweight, hook-first Python framework for channel-native agents that live alongside people.49264⭐6744🍴crewai) - A framework for orchestrating role-playing autonomous AI agents for collaborative task solving.33828⭐2813🍴dspy) - A framework for programming, not prompting, language models.102422⭐14611🍴hermes-agent) - An adaptive AI agent framework that grows with you.134101⭐22162🍴langchain) - Building applications with LLMs through composability.16475⭐1953🍴pydantic-ai) - A Python agent framework for building generative AI applications with structured schemas.51722⭐9338🍴TradingAgents) - A multi-agents LLM financial trading framework.
- Data Layer
12790⭐1021🍴instructor) - A library for extracting structured data from LLMs, powered by Pydantic.48690⭐7227🍴llama-index) - A data framework for your LLM application.53530⭐6000🍴mem0) - An intelligent memory layer for AI agents enabling personalized interactions.
- Pre-trained Models and Inference
33383⭐6934🍴diffusers) - A library that provides pre-trained diffusion models for generating and editing images, audio, and video.26069⭐5450🍴sglang) - A high-performance serving framework for large language models and multimodal models.159625⭐32935🍴transformers) - A framework that lets you easily use pre-trained transformer models for NLP, vision, and audio tasks.62216⭐5421🍴unsloth) - A library for faster LLM fine-tuning and training with reduced memory usage.77347⭐15828🍴vllm) - A high-throughput and memory-efficient inference and serving engine for LLMs.
Frameworks for Neural Networks and Deep Learning. Also see 27942⭐ 6300🍴 awesome-deep-learning).
35439⭐3530🍴jax) - A library for high-performance numerical computing with automatic differentiation and JIT compilation.64015⭐19746🍴keras) - A high-level deep learning library with support for JAX, TensorFlow, and PyTorch backends.31058⭐3706🍴pytorch-lightning) - Deep learning framework to train, deploy, and ship AI products Lightning fast.99271⭐27526🍴pytorch) - Tensors and Dynamic neural networks in Python with strong GPU acceleration.13123⭐2105🍴stable-baselines3) - PyTorch implementations of Stable Baselines (deep) reinforcement learning algorithms.194780⭐75280🍴tensorflow) - The most popular Deep Learning framework created by Google.
Libraries for Machine Learning. Also see 72259⭐ 15417🍴 awesome-machine-learning).
8898⭐1284🍴catboost) - A fast, scalable, high performance gradient boosting on decision trees library.2227⭐341🍴feature_engine) - sklearn compatible API with the widest toolset for feature engineering and selection.7495⭐2035🍴h2o) - Open Source Fast Scalable Machine Learning Platform.18268⭐3998🍴lightgbm) - A fast, distributed, high performance gradient boosting framework.39012⭐6194🍴mindsdb) - MindsDB is an open source AI layer for existing databases that allows you to effortlessly develop, train and deploy state-of-the-art machine learning models using standard queries.3255⭐1122🍴pgmpy) - A Python library for probabilistic graphical models and Bayesian networks.65873⭐26958🍴scikit-learn) - The most popular Python library for Machine Learning with extensive documentation and community support.43159⭐29155🍴spark.ml) - 🌎 Apache Spark's scalable 🌎 Machine Learning library for distributed computing.565⭐83🍴TabGAN) - Synthetic tabular data generation using GANs, Diffusion Models, and LLMs.28290⭐8864🍴xgboost) - A scalable, portable, and distributed gradient boosting library.
Libraries for working with human languages.
- General
16393⭐4413🍴gensim) - Topic Modeling for Humans.14595⭐3004🍴nltk) - A leading platform for building Python programs to work with human language data.33489⭐4673🍴spacy) - A library for industrial-strength natural language processing in Python and Cython.7779⭐943🍴stanza) - The Stanford NLP Group's official Python library, supporting 60+ languages.
- Chinese
Libraries for Computer Vision.
29323⭐3558🍴easyocr) - Ready-to-use OCR with 40+ languages supported.?⭐?🍴kornia) - Open Source Differentiable Computer Vision Library for PyTorch.5241⭐1006🍴opencv) - Open Source Computer Vision Library.6334⭐752🍴pytesseract) - A wrapper for Google Tesseract OCR.
Libraries for building recommender systems.
14223⭐1220🍴annoy) - Approximate Nearest Neighbors in C++/Python optimized for memory usage.3785⭐627🍴implicit) - A fast Python implementation of collaborative filtering for implicit datasets.6776⭐1052🍴scikit-surprise) - A scikit for building and analyzing recommender systems.
Web Development
Traditional full stack web frameworks. Also see Web APIs.
- Synchronous
8755⭐1496🍴bottle) - A fast and simple micro-framework distributed as a single file with no dependencies.87282⭐33814🍴django) - The most popular web framework in Python.1908⭐287🍴awesome-django)
71424⭐16790🍴flask) - A microframework for Python.12713⭐1577🍴awesome-flask)
4081⭐894🍴pyramid) - A small, fast, down-to-earth, open source Python web framework.570⭐56🍴awesome-pyramid)
6915⭐306🍴fasthtml) - The fastest way to create an HTML app.79⭐8🍴awesome-fasthtml)
2364⭐137🍴masonite) - The modern and developer centric Python web framework.
- Asynchronous
8164⭐535🍴litestar) - Production-ready, capable and extensible ASGI Web framework.2107⭐154🍴microdot) - The impossibly small web framework for Python and MicroPython.28304⭐1708🍴reflex) - A framework for building reactive, full-stack web applications entirely with Python.7207⭐327🍴robyn) - A high-performance async Python web framework with a Rust runtime.12215⭐1157🍴starlette) - A lightweight ASGI framework and toolkit for building high-performance async services.22260⭐5544🍴tornado) - A web framework and asynchronous networking library.
Libraries for building RESTful and GraphQL APIs.
- Django
9017⭐568🍴django-ninja) - Fast, Django REST framework based on type hints and Pydantic.29974⭐7066🍴django-rest-framework) - A powerful and flexible toolkit to build web APIs.492⭐149🍴strawberry-django) - Strawberry GraphQL integration with Django.
- Flask
1127⭐140🍴apiflask) - A lightweight Python web API framework based on Flask and Marshmallow.
- Framework Agnostic
4579⭐783🍴connexion) - A spec-first framework that automatically handles requests based on your OpenAPI specification.9800⭐987🍴falcon) - A high-performance framework for building cloud APIs and web app backends.97404⭐9100🍴fastapi) - A modern, fast, web framework for building APIs with standard Python type hints.18637⭐1588🍴sanic) - A Python 3.6+ web server and web framework that's written to go fast.4648⭐632🍴strawberry) - A GraphQL library that leverages Python type annotations for schema definition.1407⭐164🍴webargs) - A friendly library for parsing HTTP request arguments with built-in support for popular web frameworks.
ASGI and WSGI compatible web servers.
- ASGI
2660⭐287🍴daphne) - An HTTP, HTTP/2 and WebSocket protocol server for ASGI and ASGI-HTTP.5295⭐149🍴granian) - A Rust HTTP server for Python applications built on top of Hyper and Tokio, supporting WSGI/ASGI/RSGI.1553⭐142🍴hypercorn) - An ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.10598⭐933🍴uvicorn) - A lightning-fast ASGI server implementation, using uvloop and httptools.
- WSGI
- RPC
Libraries for working with WebSocket.
2536⭐766🍴autobahn-python) - WebSocket & WAMP for Python on Twisted and 🌎 asyncio.6343⭐821🍴channels) - Developer-friendly asynchrony for Django.5507⭐899🍴flask-socketio) - Socket.IO integration for Flask applications.264⭐18🍴picows) - Fastest WebSocket clients and servers with a frame level interface for the most demanding use-cases.5667⭐590🍴websockets) - A library for building WebSocket servers and clients with a focus on correctness and simplicity.
Libraries and tools for templating and lexing.
11578⭐1728🍴jinja) - A modern and designer friendly templating language.431⭐71🍴mako) - Hyperfast and lightweight templating for the Python platform.
Tools for managing, compressing and minifying website assets.
2871⭐608🍴django-compressor) - Compresses linked and inline JavaScript or CSS into a single cached file.2948⭐886🍴django-storages) - A collection of custom storage back ends for Django.
Libraries for implementing authentication schemes.
- OAuth
5276⭐528🍴authlib) - JavaScript Object Signing and Encryption draft implementation.10324⭐3114🍴django-allauth) - Authentication app for Django that "just works."3319⭐841🍴django-oauth-toolkit) - OAuth 2 goodies for Django.2963⭐505🍴oauthlib) - A generic and thorough implementation of the OAuth request-signing logic.
- JWT
5640⭐752🍴pyjwt) - JSON Web Token implementation in Python.
- Permissions
3899⭐586🍴django-guardian) - Implementation of per object permissions for Django 1.2+1972⭐152🍴django-rules) - A tiny but powerful app providing object-level permissions to Django, without requiring a database.
Libraries for administrative interfaces.
7919⭐867🍴ajenti) - The admin panel your servers deserve.3930⭐655🍴django-grappelli) - A jazzy skin for the Django Admin-Interface.3415⭐343🍴django-unfold) - Elevate your Django admin with a stunning modern interface, powerful features, and seamless user experience.6058⭐1632🍴flask-admin) - Simple and extensible administrative interface framework for Flask.7154⭐1141🍴flower) - Real-time monitor and web admin for Celery.402⭐20🍴func-to-web) - Instantly create web UIs from Python functions using type hints. Zero frontend code required.1795⭐169🍴jet-bridge) - Admin panel framework for any application with nice UI (ex Jet Django).
Content Management Systems.
10641⭐3198🍴django-cms) - The easy-to-use and developer-friendly enterprise CMS powered by Django.2055⭐524🍴indico) - A feature-rich event management system, made @ 🌎 CERN.20295⭐4514🍴wagtail) - A Django content management system.
Static site generator is a software that takes some text + templates as input and produces HTML files on the output.
3934⭐316🍴lektor) - An easy to use static CMS and blog engine.2729⭐466🍴nikola) - A static website and blog generator.13280⭐1835🍴pelican) - Static site generator that supports Markdown and reST syntax.
HTTP & Scraping
Libraries for working with HTTP.
16405⭐2249🍴aiohttp) - Asynchronous HTTP client/server framework for asyncio and Python.2798⭐159🍴furl) - A small Python library that makes parsing and manipulating URLs easy.488⭐22🍴httptap) - Dissects an HTTP request into DNS, TCP, TLS, wait, and transfer phases and renders the timings as a waterfall.15208⭐1116🍴httpx) - A next generation HTTP client for Python.53905⭐9852🍴requests) - HTTP Requests for Humans.4017⭐1318🍴urllib3) - A HTTP library with thread-safe connection pooling, file post support, sanity friendly.
Libraries to automate web scraping and extract web content.
- Frameworks
88703⭐10164🍴browser-use) - Make websites accessible for AI agents with easy browser automation.64290⭐6585🍴crawl4ai) - An open-source, LLM-friendly web crawler that provides lightning-fast, structured data extraction specifically designed for AI agents.4853⭐389🍴mechanicalsoup) - A Python library for automating interaction with websites.61378⭐11479🍴scrapy) - A fast high-level screen scraping and web crawling framework.
- Content Extraction
2355⭐359🍴feedparser) - Universal feed parser.2145⭐292🍴html2text) - Convert HTML to Markdown-formatted text.675⭐89🍴micawber) - A small library for extracting rich content from URLs.3673⭐543🍴sumy) - A module for automatic summarization of text documents and HTML pages.5743⭐358🍴trafilatura) - A tool for gathering text and metadata from the web, with built-in content filtering.
Libraries for sending and parsing email, and mail server management.
3477⭐462🍴modoboa) - A mail hosting and management platform including a modern Web UI.2725⭐267🍴yagmail) - Yet another Gmail/SMTP client.
Database & Storage
Libraries that implement Object-Relational Mapping or data mapping techniques.
- Relational Databases
87282⭐33814🍴django.db.models) - The Django 🌎 ORM.11767⭐1670🍴sqlalchemy) - The Python SQL Toolkit and Object Relational Mapper.3041⭐159🍴awesome-sqlalchemy)
4861⭐299🍴dataset) - Store Python dicts in a database - works with SQLite, MySQL, and PostgreSQL.11960⭐1384🍴peewee) - A small, expressive ORM.?⭐?🍴pony) - ORM that provides a generator-oriented interface to SQL.17841⭐837🍴sqlmodel) - SQLModel is based on Python type annotations, and powered by Pydantic and SQLAlchemy.5551⭐478🍴tortoise-orm) - An easy-to-use asyncio ORM inspired by Django, with relations support.
- NoSQL Databases
2673⭐283🍴beanie) - An asynchronous Python object-document mapper (ODM) for MongoDB.4352⭐1233🍴mongoengine) - A Python Object-Document-Mapper for working with MongoDB.2649⭐428🍴pynamodb) - A Pythonic interface for 🌎 Amazon DynamoDB.
Libraries for connecting and operating databases.
- MySQL -
2566⭐401🍴awesome-mysql)2527⭐445🍴mysqlclient) - MySQL connector with Python 3 support 🌎 mysql-python fork).7832⭐1439🍴pymysql) - A pure Python MySQL driver compatible to mysql-python.
- PostgreSQL -
11844⭐949🍴awesome-postgres)2365⭐239🍴psycopg) - The most popular PostgreSQL adapter for Python.
- SQLite -
393⭐46🍴awesome-sqlite)2037⭐131🍴sqlite-utils) - Python CLI utility and library for manipulating SQLite databases.- 🌎 sqlite3 - (Python standard library) SQLite interface compliant with DB-API 2.0.
- Other Relational Databases
1293⭐229🍴clickhouse-driver) - Python driver with native interface for ClickHouse.413⭐46🍴mssql-python) - Official Microsoft driver for SQL Server and Azure SQL, built on ODBC for high performance and low memory usage.
- NoSQL Databases
1427⭐575🍴cassandra-driver) - The Python Driver for Apache Cassandra.218⭐31🍴django-mongodb-backend) - Official MongoDB database backend for Django.4340⭐1139🍴pymongo) - The official Python client for MongoDB.13520⭐2671🍴redis-py) - The Python client for Redis.
Databases implemented in Python.
27512⭐2204🍴chromadb) - An open-source embedding database for building AI applications with embeddings and semantic search.37569⭐3162🍴duckdb) - An in-process SQL OLAP database management system; optimized for analytics and fast queries, similar to SQLite but for analytical workloads.1071⭐133🍴pickledb) - A simple and lightweight key-value store for Python.7493⭐609🍴tinydb) - A tiny, document-oriented database.753⭐100🍴ZODB) - A native object database for Python. A key-value and object graph database.
Libraries for caching data.
2723⭐192🍴cachetools) - Extensible memoizing collections and decorators.2267⭐237🍴django-cacheops) - A slick ORM cache with automatic granular event-driven invalidation.294⭐49🍴dogpile.cache) - dogpile.cache is a next generation replacement for Beaker made by the same authors.2866⭐162🍴python-diskcache) - SQLite and file backed cache backend with faster lookups than memcached and redis.
Libraries and software for indexing and performing search queries on data.
3769⭐1312🍴django-haystack) - Modular search for Django.4369⭐1204🍴elasticsearch-py) - The official low-level Python client for 🌎 Elasticsearch.698⭐337🍴pysolr) - A lightweight Python wrapper for 🌎 Apache Solr.
Libraries for serializing complex data types.
7229⭐687🍴marshmallow) - A lightweight library for converting complex objects to and from simple Python datatypes.2076⭐243🍴msgpack) - MessagePack serializer implementation for Python.8033⭐303🍴orjson) - Fast, correct JSON library.
Data & Science
Libraries for data analysis.
- General
4105⭐724🍴aws-sdk-pandas) - Pandas on AWS.10970⭐826🍴datasette) - An open source multi-tool for exploring and publishing data.13515⭐1784🍴data-profiling) - Generate detailed data profiling reports for pandas DataFrames.?⭐?🍴desbordante) - An open source data profiler for complex pattern discovery.6509⭐713🍴ibis) - A portable Python dataframe library with a single API for 20+ backends.10381⭐672🍴modin) - A drop-in pandas replacement that scales workflows by changing a single line of code.48539⭐19868🍴pandas) - A library providing high-performance, easy-to-use data structures and data analysis tools.63469⭐1626🍴pathway) - Real-time data processing framework for Python with reactive dataflows.38232⭐2790🍴polars) - A fast DataFrame library implemented in Rust with a Python API.
- Financial Data
18400⭐3069🍴akshare) - A financial data interface library, built for human beings!2024⭐342🍴edgartools) - Library for downloading structured data from SEC EDGAR filings and XBRL financial statements.1352⭐268🍴lumibot) - Algorithmic trading framework for backtesting and live deployment across stocks, options, crypto, futures, and forex.66113⭐6590🍴openbb) - A financial data platform for analysts, quants and AI agents.23093⭐3193🍴yfinance) - Easy Pythonic way to download market and financial data from Yahoo Finance.
Libraries for validating data. Used for forms in many cases.
3274⭐242🍴cerberus) - A lightweight and extensible data validation library.4946⭐613🍴jsonschema) - An implementation of JSON Schema for Python.4310⭐393🍴pandera) - A data validation library for dataframes, with support for pandas, polars, and Spark.27527⭐2553🍴pydantic) - Data validation using Python type hints.1848⭐222🍴voluptuous) - A Python data validation library primarily intended for validating data from untrusted sources.
Libraries for visualizing data. Also see 34932⭐ 4529🍴 awesome-javascript).
- Plotting
10333⭐844🍴altair) - Declarative statistical visualization library for Python.20381⭐4251🍴bokeh) - Interactive Web Plotting for Python.3688⭐480🍴bqplot) - Interactive Plotting Library for the Jupyter Notebook.22724⭐8320🍴matplotlib) - A Python 2D plotting library.18462⭐2800🍴plotly) - Interactive graphing library for Python.4545⭐246🍴plotnine) - A grammar of graphics for Python based on ggplot2.2755⭐418🍴pygal) - A Python SVG Charts Creator.4330⭐1150🍴pyqtgraph) - Interactive and realtime 2D/3D/Image plotting and science/engineering widgets.13817⭐2100🍴seaborn) - Statistical data visualization using Matplotlib.289⭐24🍴ultraplot) - Matplotlib wrapper for publication-ready scientific figures with minimal code. Includes advanced subplot management, panel layouts, and batteries-included geoscience plotting.3567⭐628🍴vispy) - High-performance scientific visualization based on OpenGL.
- Specialized
1598⭐395🍴cartopy) - A cartographic python library with matplotlib support.?⭐?🍴pygraphviz) - Python interface to Graphviz.
- Dashboards and Apps
Libraries for geocoding addresses and working with latitudes and longitudes.
1526⭐302🍴django-countries) - A Django app that provides a country field for models and forms.87282⭐33814🍴geodjango) - A world-class geographic web framework that is part of 🌎 Django.984⭐128🍴geojson) - Python bindings and utilities for GeoJSON.5107⭐1011🍴geopandas) - Python tools for geographic data (GeoSeries/GeoDataFrame) built on pandas.4802⭐664🍴geopy) - Python Geocoding Toolbox.
Libraries for scientific computing. Also see 357⭐ 48🍴 Python-for-Scientists).
- Core
10985⭐1253🍴numba) - Python JIT compiler to LLVM aimed at scientific Python.31864⭐12306🍴numpy) - A fundamental package for scientific computing with Python.14620⭐5698🍴scipy) - A Python-based ecosystem of open-source software for mathematics, science, and engineering.11367⭐3324🍴statsmodels) - Statistical modeling and econometrics in Python.14578⭐5265🍴sympy) - A Python library for symbolic mathematics.
- Biology and Chemistry
4979⭐1884🍴biopython) - Biopython is a set of freely available tools for biological computation.401⭐179🍴cclib) - A library for parsing and interpreting the results of computational chemistry packages.1307⭐470🍴openbabel) - A chemical toolbox designed to speak the many languages of chemical data.3399⭐1005🍴rdkit) - Cheminformatics and Machine Learning Software.
- Physics and Engineering
5125⭐2078🍴astropy) - A community Python library for Astronomy.1295⭐562🍴obspy) - A Python toolbox for seismology.412⭐119🍴pydy) - Short for Python Dynamics, used to assist with workflow in the modeling of dynamic motion.29196⭐7251🍴PythonRobotics) - This is a compilation of various robotics algorithms with visualizations.
- Simulation and Modeling
- Other
2559⭐290🍴colour) - Implementing a comprehensive number of colour theory transformations and algorithms.37856⭐2784🍴manim) - An animation engine for explanatory math videos.16831⭐3502🍴networkx) - A high-productivity software for complex networks.4425⭐612🍴shapely) - Manipulation and analysis of geometric objects in the Cartesian plane.
Libraries for quantum computing.
4932⭐1210🍴Cirq) — A Google-developed framework focused on hardware-aware quantum circuit design for NISQ devices.3162⭐768🍴pennylane) — A hybrid quantum-classical machine learning library with automatic differentiation support.7277⭐2845🍴qiskit) — An IBM-backed quantum SDK for building, simulating, and running circuits on real quantum hardware.1993⭐755🍴qutip) - Quantum Toolbox in Python.
Developer Tools
Python implementation of data structures, algorithms and design patterns. Also see 25022⭐ 2953🍴 awesome-algorithms).
- Algorithms
25423⭐4733🍴algorithms) - Minimal examples of data structures and algorithms.3935⭐228🍴sortedcontainers) - Fast and pure-Python implementation of sorted collections.219875⭐50369🍴thealgorithms) - All Algorithms implemented in Python.
- Design Patterns
42714⭐7035🍴python-patterns) - A collection of design patterns in Python.6487⭐568🍴transitions) - A lightweight, object-oriented finite state machine implementation.
Interactive Python interpreters (REPL).
13095⭐5647🍴jupyter) - A rich toolkit to help you make the most out of using Python interactively.4588⭐454🍴awesome-jupyter)
20495⭐1040🍴marimo) - Transform data and train models, feels like a next-gen notebook, stored as Git-friendly Python.5425⭐291🍴ptpython) - Advanced Python REPL built on top of the10406⭐780🍴python-prompt-toolkit).
Tools of static analysis, linters and code quality checkers. Also see 14502⭐ 1460🍴 awesome-static-analysis).
- Code Analysis
4560⭐327🍴code2flow) - Turn your Python and JavaScript code into DOT flowcharts.2075⭐180🍴prospector) - A tool to analyze Python code.1203⭐177🍴repowise) - Codebase intelligence that indexes repos into dependency graphs, git history, and auto-generated docs with dead code detection.4533⭐184🍴vulture) - A tool for finding and analyzing dead Python code.
- Code Linters
7943⭐750🍴bandit) - A tool designed to find common security issues in Python code.3777⭐343🍴flake8) - A wrapper aroundpycodestyle,pyflakesand McCabe.1274⭐51🍴awesome-flake8-extensions)
5674⭐1240🍴pylint) - A fully customizable source code analyzer.47157⭐2012🍴ruff) - An extremely fast Python linter and code formatter.
- Code Formatters
- Refactoring
2200⭐184🍴rope) - Rope is a python refactoring library.
- Type Checkers -
1952⭐77🍴awesome-python-typing)20382⭐3168🍴mypy) - Check variable types during compile time.7150⭐449🍴pyre-check) - Performant type checking.18369⭐282🍴ty) - An extremely fast Python type checker and language server.5047⭐1996🍴typeshed) - Collection of library stubs for Python, with static types.
- Type Annotations Generators
5001⭐202🍴monkeytype) - A system for Python that generates static type annotations by collecting runtime types.5030⭐290🍴pytype) - Pytype checks and infers types for Python code - without requiring type annotations.
Libraries for testing codebases and generating test data.
- Frameworks
8582⭐641🍴hypothesis) - Hypothesis is an advanced Quickcheck style property based testing library.13783⭐3095🍴pytest) - A mature full-featured Python testing tool.11570⭐2539🍴robotframework) - A generic test automation framework.1484⭐102🍴scanapi) - Automated Testing and Documentation for your REST API.- 🌎 unittest - (Python standard library) Unit testing framework.
- Test Runners
- GUI / Web Testing
27719⭐3202🍴locust) - Scalable user load testing tool written in Python.14534⭐1141🍴playwright-python) - Python version of the Playwright testing and automation library.12437⭐1406🍴pyautogui) - PyAutoGUI is a cross-platform GUI automation Python module for human beings.3227⭐205🍴schemathesis) - A tool for automatic property-based testing of web applications built with Open API / Swagger specifications.34073⭐8673🍴selenium) - Python bindings for 🌎 Selenium 🌎 WebDriver.
- Mock
4501⭐297🍴freezegun) - Travel through time by mocking the datetime module.- 🌎 mock - (Python standard library) A mocking and patching library.
309⭐50🍴mocket) - A socket mock framework with gevent/asyncio/SSL support.4339⭐365🍴responses) - A utility library for mocking out the requests Python library.787⭐54🍴respx) - Mock HTTPX with awesome request patterns and response side effects.2958⭐425🍴vcrpy) - Record and replay HTTP interactions on your tests.
- Object Factories
3787⭐415🍴factory_boy) - A test fixtures replacement for Python.1450⭐113🍴polyfactory) - mock data generation library with support to classes (continuation ofpydantic-factories)
- Code Coverage
3360⭐477🍴coverage) - Code coverage measurement.
- Fake Data
Libraries for debugging code.
- pdb-like Debugger
- Tracing
402⭐25🍴manhole) - Debugging UNIX socket connections and present the stacktraces for all threads and an interactive prompt.865⭐51🍴python-hunter) - A flexible code tracing toolkit.
- Profiler
- Others
8354⭐1082🍴django-debug-toolbar) - Display various debug information for Django.979⭐149🍴flask-debugtoolbar) - A port of the django-debug-toolbar to flask.10041⭐217🍴icecream) - Inspect variables, expressions, and program execution with a single, simple function call.863⭐60🍴memory_graph) - Visualize Python data at runtime to debug references, mutability, and aliasing.
Compile software from source code.
511⭐284🍴bitbake) - A make-like build tool for embedded Linux.4738⭐390🍴invoke) - A tool for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks.9029⭐864🍴platformio) - A console tool to build code with different development platforms.1975⭐273🍴pybuilder) - A continuous build tool written in pure Python.2043⭐187🍴doit) - A task runner and build tool.2368⭐341🍴scons) - A software construction tool.
Libraries for generating project documentation.
?⭐?🍴sphinx) - Python Documentation generator.975⭐74🍴awesome-sphinxdoc)
42198⭐2721🍴diagrams) - Diagram as Code.?⭐?🍴mkdocs) - Markdown friendly documentation generator.2496⭐222🍴pdoc) - Epydoc replacement to auto generate API documentation for Python libraries.
DevOps
Software and libraries for DevOps.
- Cloud Providers
- Configuration Management
68397⭐24143🍴ansible) - A radically simple IT automation platform.3658⭐1056🍴cloudinit) - A multi-distribution package that handles early initialization of a cloud instance.5885⭐1619🍴openstack) - Open source software for building private and public clouds.4957⭐482🍴pyinfra) - A versatile CLI tools and python libraries to automate infrastructure.15340⭐5587🍴saltstack) - Infrastructure automation and management system.
- Deployment
- Monitoring and Processes
11140⭐1477🍴psutil) - A cross-platform process and system utilities module.2169⭐608🍴sentry-python) - Sentry SDK for Python.7233⭐506🍴sh) - A full-fledged subprocess replacement for Python.9032⭐1266🍴supervisor) - Supervisor process control system for UNIX.
- Other
13225⭐842🍴borg) - A deduplicating archiver with compression and encryption.2004⭐201🍴chaostoolkit) - A Chaos Engineering toolkit & Orchestration for Developers.15170⭐954🍴pre-commit) - A framework for managing and maintaining multi-language pre-commit hooks.
Frameworks and libraries for Distributed Computing.
- Batch Processing
13804⭐1866🍴dask) - A flexible parallel computing library for analytic computing.18702⭐2450🍴luigi) - A module that helps you build complex pipelines of batch jobs.907⭐133🍴mpi4py) - Python bindings for MPI.43159⭐29155🍴pyspark) - 🌎 Apache Spark Python API.4339⭐452🍴joblib) - A set of tools to provide lightweight pipelining in Python.?⭐?🍴ray) - A system for parallel and distributed Python that unifies the machine learning ecosystem.
Libraries for working with task queues.
28379⭐5010🍴celery) - An asynchronous task queue/job queue based on distributed message passing.5208⭐359🍴dramatiq) - A fast and reliable background task processing library for Python 3.5925⭐393🍴huey) - Little multi-threaded task queue.10632⭐1466🍴rq) - Simple job queues for Python.
Libraries for scheduling jobs.
45097⭐16886🍴airflow) - Airflow is a platform to programmatically author, schedule and monitor workflows.7438⭐758🍴apscheduler) - A light but powerful in-process task scheduler that lets you schedule functions.15347⭐2099🍴dagster) - An orchestration platform for the development, production, and observation of data assets.22208⭐2273🍴prefect) - A modern workflow orchestration framework that makes it easy to build, schedule and monitor robust data pipelines.12241⭐998🍴schedule) - Python job scheduling for humans.1877⭐337🍴SpiffWorkflow) - A powerful workflow engine implemented in pure Python.
Libraries for generating and working with logs.
105⭐11🍴logfmter) - A standard library compatible logfmt formatter.- 🌎 logging - (Python standard library) Logging facility for Python.
23823⭐787🍴loguru) - Library which aims to bring enjoyable logging in Python.4719⭐276🍴structlog) - Structured logging made easy.
Tools and libraries for Virtual Networking and SDN (Software Defined Networking).
5794⭐1794🍴mininet) - A popular network emulator and API written in Python.2448⭐583🍴napalm) - Cross-vendor API to manipulate network devices.12198⭐2205🍴scapy) - A brilliant packet manipulation library.
CLI & GUI
Libraries for building command-line applications.
- CLI Development
- 🌎 argparse - (Python standard library) Command-line option and argument parsing.
1343⭐118🍴cement) - CLI Application Framework for Python.?⭐?🍴click) - A package for creating beautiful command line interfaces in a composable way.28171⭐1478🍴python-fire) - A library for creating command line interfaces from absolutely any Python object.10406⭐780🍴python-prompt-toolkit) - A library for building powerful interactive command lines.19247⭐881🍴typer) - Modern CLI framework that uses Python type hints. Built on Click and Pydantic.
- Terminal Rendering
6264⭐232🍴alive-progress) - A new kind of Progress Bar, with real-time throughput, eta and very cool animations.4275⭐263🍴asciimatics) - A package to create full-screen text UIs (from interactive forms to ASCII animations).3777⭐271🍴colorama) - Cross-platform colored terminal text.56143⭐2103🍴rich) - Python library for rich text and beautiful formatting in the terminal. Also provides a greatRichHandlerlog handler.35487⭐1177🍴textual) - A framework for building interactive user interfaces that run in the terminal and the browser.31116⭐1445🍴tqdm) - Fast, extensible progress bar for loops and CLI.
Useful CLI-based tools for productivity.
- Productivity Tools
24821⭐2224🍴cookiecutter) - A command-line utility that creates projects from cookiecutters (project templates).3292⭐253🍴copier) - A library and command-line utility for rendering projects templates.3561⭐100🍴doitlive) - A tool for live presentations in the terminal.96606⭐3925🍴thefuck) - Correcting your previous console command.4480⭐238🍴tmuxp) - A44688⭐2584🍴tmux) session manager.?⭐?🍴xonsh) - A Python-powered shell. Full-featured and cross-platform.157710⭐13013🍴yt-dlp) - A command-line program to download videos from YouTube and other video sites, a fork of youtube-dl.
- CLI Enhancements
37955⭐3910🍴httpie) - A command line HTTP client, a user-friendly cURL replacement.2731⭐117🍴iredis) - Redis CLI with autocompletion and syntax highlighting.3228⭐91🍴litecli) - SQLite CLI with autocompletion and syntax highlighting.11905⭐689🍴mycli) - MySQL CLI with autocompletion and syntax highlighting.13112⭐586🍴pgcli) - PostgreSQL CLI with autocompletion and syntax highlighting.
Libraries for working with graphical user interface applications.
- Desktop
13293⭐1162🍴customtkinter) - A modern and customizable python UI-library based on Tkinter.15374⭐783🍴dearpygui) - A Simple GPU accelerated Python GUI framework1575⭐132🍴enaml) - Creating beautiful user-interfaces with Declarative Syntax like QML.18911⭐3148🍴kivy) - A library for creating NUI applications, running on Windows, Linux, Mac OS X, Android and iOS.2189⭐333🍴pyglet) - A cross-platform windowing and multimedia library for Python.156⭐30🍴pygobject) - Python Bindings for GLib/GObject/GIO/GTK+ (GTK+3).- 🌎 PyQt - Python bindings for the 🌎 Qt cross-platform application and UI framework.
116⭐25🍴pyside) - Qt for Python offers the official Python bindings for 🌎 Qt, this is same as PyQt but it's the official binding with different licensing.- 🌎 tkinter - (Python standard library) The standard Python interface to the Tcl/Tk GUI toolkit.
5339⭐798🍴toga) - A Python native, OS native GUI toolkit.2599⭐557🍴wxPython) - A blending of the wxWidgets C++ class library with the Python.
- Web-based
- Terminal
- Wrappers
21934⭐1045🍴gooey) - Turn command line programs into a full GUI application with one line.
Text & Documents
Libraries for parsing and manipulating plain texts.
- General
1439⭐468🍴babel) - An internationalization library for Python.2601⭐297🍴chardet) - Python 2/3 compatible character encoding detector.- 🌎 difflib - (Python standard library) Helpers for computing deltas.
4030⭐125🍴ftfy) - Makes Unicode text less broken and more consistent automagically.274⭐25🍴pangu.py) - Paranoid text spacing.1552⭐151🍴pyfiglet) - An implementation of figlet written in Python.5289⭐630🍴pypinyin) - Convert Chinese hanzi (漢字) to pinyin (拼音).1605⭐118🍴python-slugify) - A Python slugify library that translates unicode to ASCII.3526⭐257🍴textdistance) - Compute distance between sequences with 30+ algorithms.604⭐67🍴unidecode) - ASCII transliterations of Unicode text.
- Unique identifiers
- Parser
2148⭐793🍴pygments) - A generic syntax highlighter.2466⭐310🍴pyparsing) - A general purpose framework for generating parsers.706⭐105🍴python-nameparser) - Parsing human names into their individual components.3729⭐440🍴python-phonenumbers) - Parsing, formatting, storing and validating international phone numbers.1515⭐195🍴python-user-agents) - Browser user agent parser.4003⭐722🍴sqlparse) - A non-validating SQL parser.
Libraries for working with HTML and XML.
- 🌎 beautifulsoup - Providing Pythonic idioms for iterating, searching, and modifying HTML or XML.
?⭐?🍴justhtml) - A pure Python HTML5 parser that just works.3013⭐609🍴lxml) - A very fast, easy-to-use and versatile library for handling HTML and XML.685⭐177🍴markupsafe) - Implements a XML/HTML/XHTML Markup safe string for Python.2381⭐187🍴pyquery) - A jQuery-like library for parsing HTML.186⭐24🍴tinycss2) - A low-level CSS parser and generator written in Python.5733⭐470🍴xmltodict) - Working with XML feel like you are working with JSON.
Libraries for parsing and manipulating specific text formats.
- General
58171⭐3991🍴docling) - Library for converting documents into structured data.7598⭐381🍴kreuzberg) - High-performance document extraction library with a Rust core, supporting 62+ formats including PDF, Office, images with OCR, HTML, email, and archives.2230⭐537🍴pyelftools) - Parsing and analyzing ELF files and DWARF debugging information.4752⭐594🍴tablib) - A module for Tabular Datasets in XLS, CSV, JSON, YAML.
- MS Office
2615⭐432🍴docxtpl) - Editing a docx document by jinja2 template- 🌎 openpyxl - A library for reading and writing Excel 2010 xlsx/xlsm/xltx/xltm files.
1280⭐168🍴pyexcel) - Providing one API for reading, manipulating and writing csv, ods, xls, xlsx and xlsm files.5528⭐1269🍴python-docx) - Reads, queries and modifies Microsoft Word 2007/2008 docx files.3302⭐694🍴python-pptx) - Python library for creating and updating PowerPoint (.pptx) files.3933⭐662🍴xlsxwriter) - A Python module for creating Excel .xlsx files.3333⭐529🍴xlwings) - A BSD-licensed library that makes it easy to call Python from Excel and vice versa.
- PDF
586⭐70🍴pdf_oxide) - A fast PDF library for text extraction, image extraction, and markdown conversion, powered by Rust.6952⭐1023🍴pdfminer.six) - Pdfminer.six is a community maintained fork of the original PDFMiner.2697⭐220🍴pikepdf) - A powerful library for reading and editing PDF files, based on qpdf.9940⭐1560🍴pypdf) - A library capable of splitting, merging, cropping, and transforming PDF pages.- 🌎 reportlab - Allowing Rapid creation of rich PDF documents.
8880⭐802🍴weasyprint) - A visual rendering engine for HTML and CSS that can export to PDF.
- Markdown
1285⭐99🍴markdown-it-py) - Markdown parser with 100% CommonMark support, extensions, and syntax plugins.4192⭐898🍴markdown) - A Python implementation of John Gruber’s Markdown.112686⭐7295🍴markitdown) - Python tool for converting files and office documents to Markdown.3015⭐280🍴mistune) - Fastest and full featured pure Python parsers of Markdown.
- Data Formats
Libraries for file manipulation.
- 🌎 mimetypes - (Python standard library) Map filenames to MIME types.
- 🌎 pathlib - (Python standard library) A cross-platform, object-oriented path library.
2905⭐304🍴python-magic) - A Python interface to the libmagic file type identification library.7319⭐747🍴watchdog) - API and shell utilities to monitor file system events.2462⭐133🍴watchfiles) - Simple, modern and fast file watching and code reload in python.
Media
Libraries for manipulating images.
13526⭐2424🍴pillow) - Pillow is the friendly 🌎 PIL fork.1897⭐226🍴pymatting) - A library for alpha matting.653⭐134🍴python-barcode) - Create barcodes in Python with no extra dependencies.4886⭐726🍴python-qrcode) - A pure Python QR Code generator.796⭐56🍴pyvips) - A fast image processing library with low memory needs.6495⭐2370🍴scikit-image) - A Python library for (scientific) image processing.10474⭐864🍴thumbor) - A smart imaging service. It enables on-demand crop, re-sizing and flipping of images.1483⭐200🍴wand) - Python bindings for 🌎 MagickWand, C API for ImageMagick.
Libraries for manipulating audio, video, and their metadata.
- Audio
2605⭐384🍴gtts) - Python library and CLI tool for converting text to speech using Google Translate TTS.8341⭐1045🍴librosa) - Python library for audio and music analysis.2489⭐265🍴matchering) - A library for automated reference audio mastering.9758⭐1127🍴pydub) - Manipulate audio with a simple and easy high level interface.
- Video
- Metadata
15001⭐2005🍴beets) - A music library manager and 🌎 MusicBrainz tagger.1886⭐188🍴mutagen) - A Python module to handle audio metadata.810⭐104🍴tinytag) - A library for reading music meta data of MP3, OGG, FLAC and Wave files.
Awesome game development libraries.
2013⭐366🍴arcade) - Arcade is a modern Python framework for crafting games with compelling graphics and sound.5100⭐868🍴panda3d) - 3D game engine developed by Disney.339⭐52🍴py-sdl2) - A ctypes based wrapper for the SDL2 library.8730⭐4088🍴pygame) - Pygame is a set of Python modules designed for writing games.402⭐126🍴pyopengl) - Python ctypes bindings for OpenGL and it's related APIs.6411⭐872🍴renpy) - A Visual Novel engine.
Python Language
Implementations of Python.
72388⭐34453🍴cpython) - Default, most widely used implementation of the Python programming language written in C.10697⭐1612🍴cython) - Optimizing Static Compiler for Python.2738⭐311🍴ironpython) - Implementation of the Python programming language written in C#.21640⭐8799🍴micropython) - A lean and efficient Python programming language implementation.14535⭐1009🍴pyodide) - Python distribution for the browser and Node.js based on WebAssembly.1711⭐111🍴pypy) - A very fast and compliant implementation of the Python language.
Libraries for enhancing Python built-in classes.
5772⭐428🍴attrs) - Replacement for__init__,__eq__,__repr__, etc. boilerplate in class definitions.1577⭐65🍴bidict) - Efficient, Pythonic bidirectional map data structures and related functionality.2821⭐121🍴box) - Python dictionaries with advanced dot notation access.
Functional Programming with Python.
4325⭐141🍴coconut) - A variant of Python built for simple, elegant, Pythonic functional programming.- 🌎 functools - (Python standard library) Higher-order functions and operations on callable objects.
3500⭐151🍴funcy) - A fancy and practical functional tools.4056⭐316🍴more-itertools) - More routines for operating on iterables, beyonditertools.4265⭐147🍴returns) - A set of type-safe monads, transformers, and composition utilities.5138⭐270🍴toolz) - A collection of functional utilities for iterators, functions, and dictionaries. Also available as?⭐?🍴cytoolz) for Cython-accelerated performance.
Libraries for asynchronous, concurrent and parallel execution. Also see 5042⭐ 348🍴 awesome-asyncio).
2439⭐197🍴anyio) - A high-level async concurrency and networking framework that works on top of asyncio or trio.- 🌎 asyncio - (Python standard library) Asynchronous I/O, event loop, coroutines and tasks.
5042⭐348🍴awesome-asyncio)
- 🌎 concurrent.futures - (Python standard library) A high-level interface for asynchronously executing callables.
6439⭐964🍴gevent) - A coroutine-based Python networking library that uses1821⭐265🍴greenlet).- 🌎 multiprocessing - (Python standard library) Process-based parallelism.
7242⭐393🍴trio) - A friendly library for async concurrency and I/O.5961⭐1208🍴twisted) - An event-driven networking engine.11758⭐604🍴uvloop) - Ultra fast asyncio event loop.
Libraries for working with dates and times.
2804⭐494🍴dateparser) - A Python parser for human-readable dates in dozens of languages.2611⭐541🍴dateutil) - Extensions to the standard Python 🌎 datetime module.6658⭐426🍴pendulum) - Python datetimes made easy.- 🌎 zoneinfo - (Python standard library) IANA time zone support. Brings the 🌎 tz database into Python.
Python Toolchain
Libraries for Python version and virtual environment management.
44630⭐3241🍴pyenv) - Simple Python version management.7178⭐578🍴pyenv-win) - Pyenv for Windows.83549⭐2961🍴uv) - An extremely fast Python version, package and project manager, written in Rust.5033⭐1090🍴virtualenv) - A tool to create isolated Python environments.
Libraries for package and dependency management.
?⭐?🍴conda) - Cross-platform, Python-agnostic binary package manager.10170⭐3261🍴pip) - The package installer for Python.12724⭐554🍴pipx) - Install and Run Python Applications in Isolated Environments. Likenpxin Node.js.34267⭐2429🍴poetry) - Python dependency management and packaging made easy.83549⭐2961🍴uv) - An extremely fast Python version, package and project manager, written in Rust.
Local PyPI repository server and proxies.
?⭐?🍴bandersnatch) - PyPI mirroring tool provided by Python Packaging Authority (PyPA).1163⭐145🍴devpi) - PyPI server and packaging/testing/release tool.4008⭐1149🍴warehouse) - Next generation Python Package Repository (PyPI).
Libraries to create packaged executables for release distribution.
1539⭐238🍴cx-Freeze) - It is a Python tool that converts Python scripts into standalone executables and installers for Windows, macOS, and Linux.14746⭐771🍴Nuitka) - Compiles Python programs into high-performance standalone executables (cross-platform, supports all Python versions).5038⭐354🍴pyarmor) - A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.12961⭐2017🍴pyinstaller) - Converts Python programs into stand-alone executables (cross-platform).1927⭐110🍴shiv) - A command line utility for building fully self-contained zipapps (PEP 441), but with all their dependencies included.
Libraries for storing and parsing configuration options.
- 🌎 configparser - (Python standard library) INI file parser.
4285⭐319🍴dynaconf) - Dynaconf is a configuration manager with plugins for Django, Flask and FastAPI.10323⭐826🍴hydra) - Hydra is a framework for elegantly configuring complex applications.3029⭐216🍴python-decouple) - Strict separation of settings from code.8731⭐519🍴python-dotenv) - Reads key-value pairs from a.envfile and sets them as environment variables.
Security
7558⭐1736🍴cryptography) - A package designed to expose cryptographic primitives and recipes to Python developers.9729⭐2046🍴paramiko) - The leading native Python SSHv2 protocol library.1191⭐255🍴pynacl) - Python binding to the Networking and Cryptography (NaCl) library.
Frameworks and tools for penetration testing.
43176⭐4519🍴mitmproxy) - An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.14793⭐3340🍴setoolkit) - A toolkit for social engineering.81432⭐9467🍴sherlock) - Hunt down social media accounts by username across social networks.37099⭐6234🍴sqlmap) - Automatic SQL injection and database takeover tool.
Miscellaneous
Libraries for programming with hardware.
2382⭐349🍴bleak) - A cross platform Bluetooth Low Energy Client for Python using asyncio.2135⭐285🍴pynput) - A library to control and monitor input devices.
Python programming on Microsoft Windows.
5445⭐773🍴pythonnet) - Python Integration with the .NET Common Language Runtime (CLR).5549⭐850🍴pywin32) - Python Extensions for Windows.2251⭐350🍴winpython) - Portable development environment for Windows 10/11.
Useful libraries or tools that don't fit in the categories above.
2046⭐192🍴blinker) - A fast Python in-process signal/event dispatching system.6877⭐392🍴boltons) - A set of pure-Python utilities.3110⭐235🍴itsdangerous) - Various helpers to pass trusted data to untrusted environments.176⭐66🍴tryton) - A general-purpose business framework.
Where to discover learning resources or new Python libraries.
- 🌎 Python Developer Tooling Handbook - Comprehensive guide to modern Python developer tools covering package management, linting, type checking, testing, and more.
Your contributions are always welcome! Please take a look at the contribution guidelines first.
If you have any question about this opinionated list, do not hesitate to contact 🌎 @vinta on X (Twitter).
293277⭐ 27725🍴 vinta/awesome-python)