๐Ÿ Python Arsenal

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

Web Frameworks

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

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

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

arraysmathscientificcomputing
pip install numpy

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

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

Library for scientific and technical computing. Builds on NumPy.

scientificmathoptimizationstatistics
pip install scipy

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

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

interactivechartsdashboard
pip install plotly

Interactive visualization library for modern web browsers.

interactivewebdashboard
pip install bokeh

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

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

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

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

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

Composable command line interface toolkit. Create beautiful CLIs.

clicommand lineterminal
pip install click

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

clitype hintsfastapi
pip install typer

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

Library for streamlining SSH deployment and system administration.

sshdeploymentautomation
pip install fabric

Pythonic task execution library. Replacement for Make.

tasksautomationmake
pip install invoke

Testing

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

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

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

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

Industrial-strength Natural Language Processing in Python.

nlpnertokenization
pip install spacy

Natural Language Toolkit. Platform for building NLP programs.

nlptextlinguistics
pip install nltk

Image & Media

Python Imaging Library fork. Image processing capabilities.

imageprocessingpil
pip install pillow

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

Distributed task queue. Asynchronous task execution.

queuetasksdistributedasync
pip install celery

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

asyncawaitcoroutines
pip install (built-in)

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