Awesome Python

A curated list of awesome Python frameworks, libraries, tools, and resources for building production-grade systems.
π Web Frameworks
- Django β high-level web framework that encourages rapid development and clean, pragmatic design.
- Falcon β minimalist WSGI/ASGI library for building high-performance APIs.
- FastAPI β modern, fast web framework for building APIs with Python type hints.
- Flask β lightweight WSGI micro web framework.
- Litestar β performant, flexible ASGI framework with first-class OpenAPI support.
- Starlette β lightweight ASGI framework/toolkit used as the foundation for FastAPI.
- Tornado β web framework and asynchronous networking library.
π REST & GraphQL APIs
- Ariadne β schema-first GraphQL Python library.
- Django REST Framework β powerful and flexible toolkit for building Web APIs on top of Django.
- djangorestframework-simplejwt β JWT authentication plugin for Django REST Framework.
- FastAPI β automatic OpenAPI/JSON Schema generation with dependency injection.
- graphene β GraphQL framework for Python.
- Strawberry β code-first GraphQL library using type annotations.
β‘ Async & Concurrency
- aiofiles β async file support for asyncio.
- aiohttp β async HTTP client/server framework.
- anyio β asynchronous networking and concurrency library working on top of asyncio or trio.
- asyncio β standard library asynchronous I/O framework.
- asyncpg β high-performance async PostgreSQL client library.
- trio β friendly Python library for async concurrency and I/O.
- uvloop β ultra fast asyncio event loop built on libuv.
π Data Science & Analytics
- Arrow β cross-language development platform for in-memory data.
- Dask β parallel computing library that scales pandas, NumPy, and scikit-learn.
- DuckDB β in-process analytical database with Python API.
- NumPy β fundamental package for scientific computing.
- pandas β powerful data structures for data analysis and manipulation.
- Polars β lightning-fast DataFrame library written in Rust.
- SciPy β fundamental algorithms for scientific computing.
- Vaex β out-of-core DataFrames for big data.
π€ Machine Learning & AI
- CatBoost β fast, scalable gradient boosting with native categorical features support.
- Keras β high-level neural networks API.
- LightGBM β fast, distributed, high-performance gradient boosting framework.
- ONNX Runtime β cross-platform ML model inferencing accelerator.
- PyTorch β open source machine learning framework.
- scikit-learn β simple and efficient tools for predictive data analysis.
- TensorFlow β end-to-end open source ML platform.
- Transformers β state-of-the-art ML for PyTorch, TensorFlow, and JAX.
- XGBoost β scalable and flexible gradient boosting.
π§ LLM & GenAI Integration
- anthropic β official Python SDK for the Anthropic API.
- Haystack β end-to-end NLP framework for building production-ready AI pipelines.
- Instructor β structured outputs from LLMs using Pydantic.
- LangChain β framework for developing applications powered by language models.
- LlamaIndex β data framework for LLM-based applications.
- Mirascope β library for building LLM-powered applications.
- openai β official Python SDK for the OpenAI API.
- Outlines β guided text generation with LLMs.
ποΈ Databases & ORMs
- Alembic β database migration tool for SQLAlchemy.
- asyncpg β high-performance async PostgreSQL client.
- Beanie β async Python ODM for MongoDB.
- motor β async Python driver for MongoDB.
- Peewee β small, expressive ORM.
- psycopg β PostgreSQL adapter for Python.
- redis-py β Python client for Redis.
- SQLAlchemy β Python SQL toolkit and ORM.
- SQLModel β library for interacting with SQL databases using Python objects and Pydantic.
- Tortoise ORM β easy-to-use asyncio ORM for Python.
π Caching
- aiocache β caching library with multiple backends for asyncio.
- cachetools β extensible memoizing collections and decorators.
- diskcache β disk and file-backed cache library.
- dogpile.cache β caching front-end with dogpile locking.
- redis-py β Python client for Redis with full-featured caching support.
π¨ Message Queues & Streaming
- aio-pika β async AMQP framework built on top of aiormq.
- aiormq β pure Python asyncio AMQP client library.
- Celery β distributed task queue.
- confluent-kafka β Confluentβs Apache Kafka client for Python.
- dramatiq β fast and reliable background task processing library.
- kafka-python β Python client for Apache Kafka.
- RQ β simple job queues for Python.
- Click β composable command line interface toolkit.
- docopt β Pythonic command-line interface description language.
- prompt_toolkit β library for building powerful interactive command lines.
- Questionary β Python library for beautiful interactive prompts.
- Rich β library for rich text and beautiful formatting in the terminal.
- Textual β TUI (Text User Interface) framework.
- tqdm β fast, extensible progress bar.
- Typer β build great CLIs based on Python type hints.
π§ͺ Testing
- Factory Boy β test fixtures replacement.
- Faker β generate fake data for testing.
- freezegun β mock datetime for testing.
- Hypothesis β property-based testing.
- httpx β HTTP client with async support, used for API testing.
- Locust β load testing framework.
- pytest β full-featured testing framework.
- pytest-asyncio β async test support for pytest.
- pytest-cov β coverage reporting for pytest.
- responses β mock library for the
requests library.
- time-machine β travel through time in your tests.
β
Code Quality & Type Checking
- bandit β security linter for Python code.
- Black β uncompromising Python code formatter.
- flake8 β linting tool wrapping pycodestyle, pyflakes, and mccabe.
- isort β sort Python imports.
- mypy β static type checker for Python.
- pre-commit β framework for managing git pre-commit hooks.
- pylint β source code analyzer.
- pyright β fast type checker from Microsoft.
- Ruff β extremely fast Python linter and code formatter.
- vulture β find dead Python code.
π Security
- bandit β finds common security issues in Python code.
- certifi β Mozillaβs CA bundle for SSL certificate verification.
- cryptography β package for cryptographic recipes and primitives.
- passlib β comprehensive password hashing library.
- pip-audit β audit Python packages for known vulnerabilities.
- PyJWT β JSON Web Token implementation.
- pyOpenSSL β Python wrapper around OpenSSL.
- safety β checks dependencies for known security vulnerabilities.
π¦ Serialization & Validation
- attrs β Python classes without boilerplate.
- cattrs β complex custom class converters for attrs.
- marshmallow β ORM/ODM/framework-agnostic library for object serialization.
- msgspec β fast serialization and validation library.
- orjson β fast, correct Python JSON library.
- protobuf β Protocol Buffers serialization.
- Pydantic β data validation using Python type annotations.
- ujson β ultra fast JSON encoder and decoder.
π HTTP Clients
- aiohttp β async HTTP client/server framework.
- grpcio β gRPC for Python.
- httpx β fully featured HTTP client with both sync and async APIs.
- requests β simple, elegant HTTP library.
- urllib3 β powerful HTTP client with thread safety.
π Authentication & Authorization
- authlib β library for building OAuth and OpenID Connect servers.
- casbin β authorization library supporting ACL, RBAC, ABAC.
- fastapi-users β user management for FastAPI.
- python-jose β JOSE (JWT, JWS, JWE, JWK) implementation.
- python-keycloak β Python package for Keycloak.
π‘ Observability
π Documentation
- griffe β signatures and sources collector for Python.
- MkDocs β static site generator for project documentation.
- MkDocs Material β Material Design theme for MkDocs.
- pdoc β auto-generate API documentation from Python docstrings.
- pydoc-markdown β generate Markdown from Python docstrings.
- Sphinx β documentation generator.
π οΈ Package & Dependency Management
- Hatch β modern, extensible Python project management.
- pip β standard Python package installer.
- pip-tools β pin your dependencies for reproducible builds.
- pipenv β Python virtualenv management tool.
- Poetry β dependency management and packaging tool.
- pyenv β manage multiple Python versions.
- uv β extremely fast Python package and project manager.
ποΈ DevOps & Infrastructure
βοΈ Configuration Management
- configparser β standard library INI configuration file parser.
- dynaconf β configuration management with environment-based layered settings.
- Hydra β framework for elegantly configuring complex applications.
- omegaconf β YAML-based hierarchical configuration system.
- pydantic-settings β settings management using Pydantic.
- python-dotenv β read key-value pairs from
.env files.
β° Scheduling & Task Queues
- Airflow β platform to programmatically author, schedule, and monitor workflows.
- APScheduler β advanced Python Scheduler.
- Celery β distributed task queue with scheduling support.
- Prefect β modern workflow orchestration.
- Rocketry β modern scheduling framework.
- schedule β Python job scheduling for humans.
- lxml β powerful XML and HTML processing.
- openpyxl β read/write Excel 2010 xlsx/xlsm/xltx/xltm files.
- Pillow β Python Imaging Library fork.
- pypdf β PDF library for reading, writing and splitting PDF files.
- python-docx β create and update Microsoft Word files.
- python-pptx β create and update PowerPoint files.
- PyYAML β YAML parser and emitter.
- toml β standard library TOML parser (Python 3.11+).
π Networking
- dnspython β DNS toolkit.
- paramiko β SSHv2 protocol library.
- pyserial β Python serial port access library.
- pyzmq β Python bindings for ZeroMQ.
- Scapy β packet manipulation library.
- websockets β WebSockets client and server.
π Resources
Official
Learning
Community
Style Guides
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT Β© Think Cube