🐍 Python Arsenal

A curated collection of 63+ essential Python libraries trusted by millions of developers.

Web Frameworks

Django

⭐ 75k+

High-level Python web framework that encourages rapid development and clean, pragmatic design.

webframeworkmvcorm
pip install django

FastAPI

⭐ 68k+

Modern, fast web framework for building APIs with Python 3.7+ based on standard Python type hints.

apiasyncfastopenapi
pip install fastapi

Flask

⭐ 65k+

Lightweight WSGI web application framework. Simple and extensible.

webmicrowsgisimple
pip install flask

Starlette

⭐ 9k+

Lightweight ASGI framework for building high-performance async web services.

asyncasgilightweight
pip install starlette

Tornado

⭐ 21k+

Python web framework and asynchronous networking library.

asyncnetworkingwebsocket
pip install tornado

Data Science

NumPy

⭐ 25k+

Fundamental package for scientific computing with Python. Powerful N-dimensional arrays.

arraysmathscientificcomputing
pip install numpy

Pandas

⭐ 41k+

Fast, powerful, flexible data analysis and manipulation library.

dataframeanalysisdatacsv
pip install pandas

Scikit-learn

⭐ 57k+

Machine learning library with simple and efficient tools for predictive data analysis.

mlmachine learningclassificationregression
pip install scikit-learn

TensorFlow

⭐ 180k+

End-to-end open source platform for machine learning by Google.

mldeep learningneural networkgoogle
pip install tensorflow

PyTorch

⭐ 75k+

Open source machine learning framework by Meta. Great for deep learning research.

mldeep learningtensormeta
pip install torch

Keras

⭐ 60k+

Deep learning API written in Python, running on top of TensorFlow.

deep learningneural networkapi
pip install keras

XGBoost

⭐ 25k+

Optimized distributed gradient boosting library. Highly efficient and flexible.

mlboostinggradientclassification
pip install xgboost

LightGBM

⭐ 16k+

Fast, distributed, high performance gradient boosting framework by Microsoft.

mlboostingfastmicrosoft
pip install lightgbm

SciPy

⭐ 12k+

Library for scientific and technical computing. Builds on NumPy.

scientificmathoptimizationstatistics
pip install scipy

Polars

⭐ 25k+

Lightning-fast DataFrame library for Rust and Python. Faster than Pandas.

dataframefastrustanalytics
pip install polars

Visualization

Matplotlib

⭐ 19k+

Comprehensive library for creating static, animated, and interactive visualizations.

plotschartsgraphsvisualization
pip install matplotlib

Seaborn

⭐ 11k+

Statistical data visualization based on Matplotlib. Beautiful default styles.

statisticsplotsbeautiful
pip install seaborn

Plotly

⭐ 15k+

Interactive, open-source graphing library. Create stunning visualizations.

interactivechartsdashboard
pip install plotly

Bokeh

⭐ 18k+

Interactive visualization library for modern web browsers.

interactivewebdashboard
pip install bokeh

Altair

⭐ 8k+

Declarative statistical visualization library based on Vega-Lite.

declarativevegastatistics
pip install altair

HTTP & Scraping

Requests

⭐ 51k+

Elegant and simple HTTP library for Python. HTTP for Humans.

httpapisimplerequests
pip install requests

HTTPX

⭐ 12k+

Fully featured HTTP client with async support. Next generation Requests.

httpasynchttp2
pip install httpx

aiohttp

⭐ 14k+

Asynchronous HTTP client/server framework for asyncio.

asynchttpwebsocket
pip install aiohttp

BeautifulSoup

⭐ —

Library for parsing HTML and XML documents. Great for web scraping.

scrapinghtmlparsingxml
pip install beautifulsoup4

Scrapy

⭐ 50k+

Fast high-level web crawling and scraping framework.

scrapingcrawlingspider
pip install scrapy

Selenium

⭐ 29k+

Browser automation tool. Control web browsers programmatically.

browserautomationtesting
pip install selenium

Playwright

⭐ 10k+

Modern browser automation by Microsoft. Fast and reliable.

browserautomationmicrosofttesting
pip install playwright

Database

SQLAlchemy

⭐ 8k+

The Python SQL toolkit and Object-Relational Mapper.

sqlormdatabasepostgresql
pip install sqlalchemy

Peewee

⭐ 10k+

Simple and small ORM. Easy to learn and intuitive to use.

ormsimplesqlite
pip install peewee

Tortoise ORM

⭐ 4k+

Easy-to-use asyncio ORM inspired by Django.

ormasyncdjango-style
pip install tortoise-orm

Redis-py

⭐ 12k+

Python interface to Redis key-value store.

rediscachekey-value
pip install redis

PyMongo

⭐ 4k+

Python driver for MongoDB.

mongodbnosqldocument
pip install pymongo

Prisma Client Python

⭐ 1.5k+

Auto-generated, type-safe Python client for Prisma.

ormprismatype-safe
pip install prisma

CLI & Automation

Click

⭐ 15k+

Composable command line interface toolkit. Create beautiful CLIs.

clicommand lineterminal
pip install click

Typer

⭐ 13k+

Build CLI applications with Python type hints. By FastAPI creator.

clitype hintsfastapi
pip install typer

Rich

⭐ 46k+

Library for rich text and beautiful formatting in the terminal.

terminalformattingcolorsprogress
pip install rich

Textual

⭐ 23k+

TUI (Text User Interface) framework for Python. Build terminal apps.

tuiterminalui
pip install textual

Fabric

⭐ 14k+

Library for streamlining SSH deployment and system administration.

sshdeploymentautomation
pip install fabric

Invoke

⭐ 4k+

Pythonic task execution library. Replacement for Make.

tasksautomationmake
pip install invoke

Testing

Pytest

⭐ 11k+

Full-featured Python testing framework. Simple and scalable.

testingunit testfixtures
pip install pytest

Hypothesis

⭐ 7k+

Property-based testing library. Finds edge cases automatically.

testingproperty-basedfuzzing
pip install hypothesis

Faker

⭐ 17k+

Generate fake data for testing. Names, addresses, texts, and more.

fake datamocktesting
pip install faker

Factory Boy

⭐ 3k+

Fixtures replacement for testing. Create test objects easily.

fixturestestingobjects
pip install factory-boy

Coverage

⭐ 2.5k+

Code coverage measurement for Python.

coveragetestingmetrics
pip install coverage

Validation

Pydantic

⭐ 18k+

Data validation using Python type annotations. Fast and extensible.

validationtypesdataschema
pip install pydantic

Mypy

⭐ 17k+

Optional static type checker for Python.

typesstaticchecker
pip install mypy

Marshmallow

⭐ 6.5k+

Object serialization and deserialization library.

serializationvalidationschema
pip install marshmallow

Cerberus

⭐ 3k+

Lightweight and extensible data validation library.

validationschemalightweight
pip install cerberus

AI & NLP

OpenAI

⭐ 18k+

Official Python library for OpenAI API. GPT, DALL-E, and more.

aigptchatgptopenai
pip install openai

LangChain

⭐ 75k+

Building applications with LLMs through composability.

llmaichainsagents
pip install langchain

Transformers

⭐ 120k+

State-of-the-art Machine Learning for PyTorch, TensorFlow, JAX.

nlpbertgpthuggingface
pip install transformers

spaCy

⭐ 28k+

Industrial-strength Natural Language Processing in Python.

nlpnertokenization
pip install spacy

NLTK

⭐ 13k+

Natural Language Toolkit. Platform for building NLP programs.

nlptextlinguistics
pip install nltk

Image & Media

Pillow

⭐ 11k+

Python Imaging Library fork. Image processing capabilities.

imageprocessingpil
pip install pillow

OpenCV

⭐ 74k+

Computer vision and machine learning library.

cvimagevideovision
pip install opencv-python

MoviePy

⭐ 11k+

Video editing with Python. Cut, concatenate, add effects.

videoeditingffmpeg
pip install moviepy

Async

Celery

⭐ 23k+

Distributed task queue. Asynchronous task execution.

queuetasksdistributedasync
pip install celery

asyncio

Built-in async I/O framework. Foundation for async Python.

asyncawaitcoroutines
pip install (built-in)

Trio

⭐ 5.5k+

Friendly Python library for async concurrency and I/O.

asyncconcurrencyfriendly
pip install trio

DevOps

python-dotenv

⭐ 7k+

Read key-value pairs from .env file and set as environment variables.

envconfigenvironment
pip install python-dotenv

Dynaconf

⭐ 3k+

Configuration management for Python. 12-factor app ready.

configsettings12-factor
pip install dynaconf

Loguru

⭐ 18k+

Python logging made simple. Enjoyable logging.

loggingdebugsimple
pip install loguru

Structlog

⭐ 3k+

Structured logging for Python.

loggingstructuredjson
pip install structlog