A curated list of awesome Python frameworks, libraries, software and resources.
Inspired by awesome-php.
- Awesome Python
- Admin Panels
- Algorithms and Design Patterns
- ASGI Servers
- Asynchronous Programming
- Audio
- Authentication
- Build Tools
- Built-in Classes Enhancement
- Caching
- ChatOps Tools
- CMS
- Code Analysis
- Command-line Interface Development
- Command-line Tools
- Compatibility
- Computer Vision
- Concurrency and Parallelism
- Configuration
- Cryptography
- Data Analysis
- Data Validation
- Data Visualization
- Database Drivers
- Database
- Date and Time
- Debugging Tools
- Deep Learning
- DevOps Tools
- Distributed Computing
- Distribution
- Documentation
- Downloader
- E-commerce
- Editor Plugins and IDEs
- Environment Management
- Files
- Foreign Function Interface
- Forms
- Functional Programming
- Game Development
- Geolocation
- GUI Development
- Hardware
- HTML Manipulation
- HTTP Clients
- Image Processing
- Implementations
- Interactive Interpreter
- Internationalization
- Job Scheduler
- Logging
- Machine Learning
- Miscellaneous
- Natural Language Processing
- Network Virtualization
- News Feed
- ORM
- Package Management
- Package Repositories
- Penetration testing
- Permissions
- Processes
- Recommender Systems
- Refactoring
- RESTful API
- Robotics
- RPC Servers
- Science
- Search
- Serialization
- Serverless Frameworks
- Specific Formats Processing
- Static Site Generator
- Tagging
- Task Queues
- Template Engine
- Testing
- Text Processing
- Third-party APIs
- URL Manipulation
- Video
- Web Asset Management
- Web Content Extracting
- Web Crawling
- Web Frameworks
- WebSocket
- WSGI Servers
- Resources
- Contributing
Libraries for administrative interfaces.
6123ajenti - The admin panel your servers deserve.4459django-xadmin - Drop-in replacement of Django admin comes with lots of goodies.4435flower - Real-time monitor and web admin for Celery.4412flask-admin - Simple and extensible administrative interface framework for Flask.2863django-jet - Modern responsive template for the Django admin interface with improved functionality.2015django-suit - Alternative Django Admin-Interface (free only for Non-commercial use).1473wooey - A Django app which creates automatic web UIs for Python scripts.799django-grappelli - A jazzy skin for the Django Admin-Interface.784jet-bridge - Admin panel framework for any application with nice UI (ex Jet Django)
Python implementation of data structures, algorithms and design patterns. Also see awesome-algorithms.
- Algorithms
86100TheAlgorithms - All Algorithms implemented in Python.17903algorithms - Minimal examples of data structures and algorithms.1860sortedcontainers - Fast and pure-Python implementation of sorted collections.1101python-ds - A collection of data structure and algorithms for coding interviews.
- Design Patterns
25922python-patterns - A collection of design patterns in Python.3169transitions - A lightweight, object-oriented finite state machine implementation.1054PyPattyrn - A simple yet effective library for implementing common design patterns.
ASGI-compatible web servers.
3079uvicorn - A lightning-fast ASGI server implementation, using uvloop and httptools.1348daphne - A HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP.
33691asyncio - (Python standard library) Asynchronous I/O, event loop, coroutines and tasks.7164uvloop - Ultra fast asyncio event loop.4023Twisted - An event-driven networking engine.3423trio - A friendly library for async concurrency and I/O.2535awesome-asyncio
Libraries for manipulating audio and its metadata.
- Audio
5138dejavu - Audio fingerprinting and recognition.4769pydub - Manipulate audio with a simple and easy high level interface.3903librosa - Python library for audio and music analysis3417pyAudioAnalysis - Audio feature extraction, classification, segmentation and applications.652kapre - Keras Audio Preprocessors345audioread - Cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding.291TimeSide - Open web audio processing framework.255matchering - A library for automated reference audio mastering.0mingus - An advanced music theory and notation package with MIDI file and playback support.
- Metadata
9608beets - A music library manager and MusicBrainz tagger.665mutagen - A Python module to handle audio metadata.406tinytag - A library for reading music meta data of MP3, OGG, FLAC and Wave files.250eyeD3 - A tool for working with audio files, specifically MP3 files containing ID3 metadata.
Libraries for implementing authentications schemes.
- OAuth
5838django-allauth - Authentication app for Django that "just works."2926python-oauth2 - A fully tested, abstract interface to creating OAuth clients and servers.2789python-social-auth - An easy-to-setup social authentication mechanism.2094oauthlib - A generic and thorough implementation of the OAuth request-signing logic.2039authlib - JavaScript Object Signing and Encryption draft implementation.2030django-oauth-toolkit - OAuth 2 goodies for Django.
- JWT
3447pyjwt - JSON Web Token implementation in Python.708python-jose - A JOSE implementation in Python.176python-jwt - A module for generating and verifying JSON Web Tokens.
Compile software from source code.
4380PlatformIO - A console tool to build code with different development platforms.1243pybuilder - A continuous build tool written in pure Python.944SCons - A software construction tool.492buildout - A build system for creating, assembling and deploying applications from multiple parts.0BitBake - A make-like build tool for embedded Linux.
Libraries for enhancing Python built-in classes.
33691dataclasses - (Python standard library) Data classes.3228attrs - Replacement for__init__,__eq__,__repr__, etc. boilerplate in class definitions.1534Box - Python dictionaries with advanced dot notation access.637bidict - Efficient, Pythonic bidirectional map data structures and related functionality..102DottedDict - A library that provides a method of accessing lists and dicts with a dotted path notation.
Content Management Systems.
9236wagtail - A Django content management system.4128mezzanine - A powerful, consistent, and flexible content management platform.2195quokka - Flexible, extensible, small CMS powered by Flask and MongoDB.1090indico - A feature-rich event management system, made @ CERN.779feincms - One of the most advanced Content Management Systems built on Django.352Kotti - A high-level, Pythonic web application framework built on Pyramid.137django-cms - An Open source enterprise CMS based on the Django.0plone - A CMS built on top of the open source application server Zope.
Libraries for caching data.
2489HermesCache - Python caching library with tag-based invalidation and dogpile effect prevention.1304django-cacheops - A slick ORM cache with automatic granular event-driven invalidation.795django-cache-machine - Automatic caching and invalidation for Django models.560python-diskcache - SQLite and file backed cache backend with faster lookups than memcached and redis.459beaker - A WSGI middleware for sessions and caching.436pylibmc - A Python wrapper around the libmemcached interface.0dogpile.cache - dogpile.cache is next generation replacement for Beaker made by same authors.
Libraries for chatbot development.
2330errbot - The easiest and most popular chatbot to implement ChatOps.
Tools of static analysis, linters and code quality checkers. Also see awesome-static-analysis.
- Code Analysis
3043coala - Language independent and easily extendable code analysis application.1467pycallgraph - A library that visualises the flow (call graph) of your Python application.1300prospector - A tool to analyse Python code.1034vulture - A tool for finding and analysing dead Python code.771code2flow - Turn your Python and JavaScript code into DOT flowcharts.
- Code Linters
3011pylint - A fully customizable source code analyzer.2489flake8 - A wrapper aroundpycodestyle,pyflakesand McCabe.1154wemake-python-styleguide - The strictest and most opinionated python linter ever.726pylama - A code audit tool for Python and JavaScript.
- Code Formatters
- Static Type Checkers, also see awesome-python-typing
9144mypy - Check variable types during compile time.4864pyre-check - Performant type checking.1820typeshed - Collection of library stubs for Python, with static types.
- Static Type Annotations Generators
3098MonkeyType - A system for Python that generates static type annotations by collecting runtime types.2914pytype - Pytype checks and infers types for Python code - without requiring type annotations.1131pyannotate - Auto-generate PEP-484 annotations.
Libraries for building command-line applications.
- Command-line Application Development
17734python-fire - A library for creating command line interfaces from absolutely any Python object.9797click - A package for creating beautiful command line interfaces in a composable way.6520python-prompt-toolkit - A library for building powerful interactive command lines.953cement - CLI Application Framework for Python.0cliff - A framework for creating command-line programs with multi-level commands.0docopt - Pythonic command line arguments parser.
- Terminal Rendering
15906tqdm - Fast, extensible progress bar for loops and CLI.12595rich - Python library for rich text and beautiful formatting in the terminal. Also provides a greatRichHandlerlog handler.2398asciimatics - A package to create full-screen text UIs (from interactive forms to ASCII animations).2209colorama - Cross-platform colored terminal text.1463bashplotlib - Making basic plots in the terminal.790alive-progress - A new kind of Progress Bar, with real-time throughput, eta and very cool animations.
Useful CLI-based tools for productivity.
- Productivity Tools
55652thefuck - Correcting your previous console command.12892cookiecutter - A command-line utility that creates projects from cookiecutters (project templates).8461howdoi - Instant coding answers via the command line.4458PathPicker - Select files out of bash output.2985Invoke - A tool for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks.2949percol - Adds flavor of interactive selection to the traditional pipe concept on UNIX.2873tmuxp - A tmux session manager.2843doitlive - A tool for live presentations in the terminal.564try - A dead simple CLI to try out python packages - it's never been easier.110copier - A library and command-line utility for rendering projects templates.
- CLI Enhancements
48178httpie - A command line HTTP client, a user-friendly cURL replacement.9056mycli - MySQL CLI with autocompletion and syntax highlighting.8956pgcli - PostgreSQL CLI with autocompletion and syntax highlighting.4589saws - A Supercharged aws-cli.1709kube-shell - An integrated shell for working with the Kubernetes CLI.1215iredis - Redis CLI with autocompletion and syntax highlighting.1199litecli - SQLite CLI with autocompletion and syntax highlighting.
Libraries for migrating from Python 2 to 3.
1093python-future - The missing compatibility layer between Python 2 and Python 3.700six - Python 2 and 3 compatibility utilities.542python-modernize - Modernizes Python code for eventual Python 3 migration.
Libraries for Computer Vision.
48546OpenCV - Open Source Computer Vision Library.36407Face Recognition - Simple facial recognition library.8313EasyOCR - Ready-to-use OCR with 40+ languages supported.3158pytesseract - A wrapper for Google Tesseract OCR.2905Kornia - Open Source Differentiable Computer Vision Library for PyTorch.2430SimpleCV - An open source framework for building computer vision applications.1309tesserocr - Another simple, Pillow-friendly, wrapper around thetesseract-ocrAPI for OCR.
Libraries for concurrent and parallel execution. Also see awesome-asyncio.
33691concurrent.futures - (Python standard library) A high-level interface for asynchronously executing callables.33691multiprocessing - (Python standard library) Process-based parallelism.7164uvloop - Ultra fast implementation ofasyncioevent loop on top oflibuv.5292gevent - A coroutine-based Python networking library that uses greenlet.957eventlet - Asynchronous framework with WSGI support.471scoop - Scalable Concurrent Operations in Python.
Libraries for storing and parsing configuration options.
33691configparser - (Python standard library) INI file parser.2867hydra - Hydra is a framework for elegantly configuring complex applications.1489python-decouple - Strict separation of settings from code.231configobj - INI file parser with validation.19profig - Config from multiple formats with value conversion.
6509paramiko - The leading native Python SSHv2 protocol library.3543cryptography - A package designed to expose cryptographic primitives and recipes to Python developers.719pynacl - Python binding to the Networking and Cryptography (NaCl) library.0passlib - Secure password storage/hashing library, very high level.
Libraries for data analyzing.
26666Pandas - A library providing high-performance, easy-to-use data structures and data analysis tools.2896Blaze - NumPy and Pandas interface to Big Data.2406Orange - Data mining, data visualization, analysis and machine learning through visual programming or scripts.1099Open Mining - Business Intelligence (BI) in Pandas interface.1057AWS Data Wrangler - Pandas on AWS.934Optimus - Agile Data Science Workflows made easy with PySpark.
Libraries for validating data. Used for forms in many cases.
2923jsonschema - An implementation of JSON Schema for Python.2373Schematics - Data Structure Validation.2189Cerberus - A lightweight and extensible data validation library.2174schema - A library for validating Python data structures.1634voluptuous - A Python data validation library.393colander - Validating and deserializing data obtained via XML, JSON, an HTML form post.237valideer - Lightweight extensible data validation and adaptation library.
Libraries for visualizing data. Also see awesome-javascript.
14010Bokeh - Interactive Web Plotting for Python.12225Matplotlib - A Python 2D plotting library.8413diagrams - Diagram as Code.7677Seaborn - Statistical data visualization using Matplotlib.5971Altair - Declarative statistical visualization library for Python.2908bqplot - Interactive Plotting Library for the Jupyter Notebook2489PyGraphviz - Python interface to Graphviz.2444VisPy - High-performance scientific visualization based on OpenGL.2366plotnine - A grammar of graphics for Python based on ggplot2.2255Pygal - A Python SVG Charts Creator.2147PyQtGraph - Interactive and realtime 2D/3D/Image plotting and science/engineering widgets.891awesome-dash
789Cartopy - A cartographic python library with matplotlib support150Dash - Built on top of Flask, React and Plotly aimed at analytical web applications.
Databases implemented in Python.
3712tinydb - A tiny, document-oriented database.494pickleDB - A simple and lightweight key-value store for Python.422ZODB - A native object database for Python. A key-value and object graph database.
Libraries for connecting and operating databases.
- MySQL - awesome-mysql
6142PyMySQL - A pure Python MySQL driver compatible to mysql-python.1802mysqlclient - MySQL connector with Python 3 support (mysql-python fork).
- PostgreSQL - awesome-postgres
- Other Relational Databases
647SuperSQLite - A supercharged SQLite library built on top of apsw.529pymssql - A simple database interface to Microsoft SQL Server.
- NoSQL Databases
8829redis-py - The Python client for Redis.4022kafka-python - The Python client for Apache Kafka.3113pymongo - The official Python client for MongoDB.1179cassandra-driver - The Python Driver for Apache Cassandra.557py2neo - A client library and toolkit for working with Neo4j.546happybase - A developer-friendly library for Apache HBase.
- Asynchronous Clients
1537motor - The async Python driver for MongoDB.
Libraries for working with dates and times.
6281Arrow - A Python library that offers a sensible and human-friendly approach to creating, manipulating, formatting and converting dates, times and timestamps.4103Pendulum - Python datetimes made easy.3184maya - Datetimes for Humans.1679delorean - A library for clearing up the inconvenient truths that arise dealing with datetimes.1397dateutil - Extensions to the standard Python datetime module.831pytz - World timezone definitions, modern and historical. Brings the tz database into Python.651moment - A Python library for dealing with dates/times. Inspired by Moment.js.309Chronyk - A Python 3 library for parsing human-written times and dates.184when.py - Providing user-friendly functions to help perform common date and time actions.137PyTime - An easy-to-use Python module which aims to operate date/time/datetime by string.
Libraries for debugging code.
- pdb-like Debugger
- Tracing
1580pyringe - Debugger capable of attaching to and injecting code into Python processes.664lptrace - strace for Python programs.559python-hunter - A flexible code tracing toolkit.293manhole - Debugging UNIX socket connections and present the stacktraces for all threads and an interactive prompt.
- Profiler
5961py-spy - A sampling profiler for Python programs. Written in Rust.3672vprof - Visual Python profiler.3486line_profiler - Line-by-line profiling.3004profiling - An interactive Python profiler.2836pyflame - A ptracing profiler For Python.57memory_profiler - Monitor Memory usage of Python code.
- Others
6120django-debug-toolbar - Display various debug information for Django.1551icecream - Inspect variables, expressions, and program execution with a single, simple function call.1254django-devserver - A drop-in replacement for Django's runserver.1069pyelftools - Parsing and analyzing ELF files and DWARF debugging information.763flask-debugtoolbar - A port of the django-debug-toolbar to flask.
Frameworks for Neural Networks and Deep Learning. Also see awesome-deep-learning.
148764tensorflow - The most popular Deep Learning framework created by Google.49839keras - A high-level neural networks library and capable of running on top of either TensorFlow or Theano.42667pytorch - Tensors and Dynamic neural networks in Python with strong GPU acceleration.30884caffe - A fast open framework for deep learning..19002mxnet - A deep learning framework designed for both efficiency and flexibility.9225Theano - A library for fast numerical computation.5696SerpentAI - Game agent framework. Use any video game as a deep learning sandbox.
Software and libraries for DevOps.
- Configuration Management
44877ansible - A radically simple IT automation platform.11252saltstack - Infrastructure automation and management system.965pyinfra - A versatile CLI tools and python libraries to automate infrastructure.698cloudinit - A multi-distribution package that handles early initialization of a cloud instance.0OpenStack - Open source software for building private and public clouds.
- SSH-style Deployment
- Process Management
6376supervisor - Supervisor process control system for UNIX.1371honcho - A Python clone of Foreman, for managing Procfile-based applications.
- Monitoring
6620psutil - A cross-platform process and system utilities module.
- Backup
51BorgBackup - A deduplicating archiver with compression and encryption.
- Others
20752docker-compose - Fast, isolated development environments using Docker.
Frameworks and libraries for Distributed Computing.
- Batch Processing
27567PySpark - Apache Spark Python API.13756luigi - A module that helps you build complex pipelines of batch jobs.13259Ray - A system for parallel and distributed Python that unifies the machine learning ecosystem.7254dask - A flexible parallel computing library for analytic computing.2509mrjob - Run MapReduce jobs on Hadoop or Amazon Web Services.
- Stream Processing
4906faust - A stream processing library, porting the ideas from Kafka Streams to Python.1416streamparse - Run Python code against real-time streams of data via Apache Storm.
Libraries to create packaged executables for release distribution.
7199PyInstaller - Converts Python programs into stand-alone executables (cross-platform).3352Nuitka - Compile scripts, modules, packages to an executable or extension module.1389dh-virtualenv - Build and distribute a virtualenv as a Debian package.1051shiv - A command line utility for building fully self-contained zipapps (PEP 441), but with all their dependencies included.676pyarmor - A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.618pynsist - A tool to build Windows installers, installers bundle Python itself.0py2app - Freezes Python scripts (Mac OS X).0py2exe - Freezes Python scripts (Windows).
Libraries for generating project documentation.
3514sphinx - Python Documentation generator.721pycco - The literate-programming-style documentation generator.672pdoc - Epydoc replacement to auto generate API documentation for Python libraries.
Libraries for downloading.
35092you-get - A YouTube/Youku/Niconico video downloader written in Python 3.3432s3cmd - A command line tool for managing Amazon S3 and CloudFront.2256akshare - A financial data interface library, built for human beings!1027s4cmd - Super S3 command line tool, good for higher performance.0youtube-dl - A small command-line program to download videos from YouTube.
Frameworks and libraries for e-commerce and payments.
9124saleor - An e-commerce storefront for Django.4569django-oscar - An open-source e-commerce framework for Django.2308django-shop - A Django based shop system.1381shoop - An open source E-Commerce platform based on Django.954merchant - A Django app to accept payments from various payment processors.618Cartridge - A shopping cart app built using the Mezzanine.335forex-python - Foreign exchange rates, Bitcoin price index and currency conversion.316alipay - Unofficial Alipay API for Python.187money -Moneyclass with optional CLDR-backed locale-aware formatting and an extensible currency exchange.44python-currencies - Display money format and its filthy currencies.
- Emacs
1628elpy - Emacs Python Development Environment.
- Sublime Text
2088anaconda - Anaconda turns your Sublime Text 3 in a full featured Python development IDE.898SublimeJEDI - A Sublime Text plugin to the awesome auto-complete library Jedi.
- Vim
21872YouCompleteMe - Includes Jedi-based completion engine for Python.5100python-mode - An all in one plugin for turning Vim into a Python IDE.4547jedi-vim - Vim bindings for the Jedi auto-completion library for Python.
- Visual Studio
2292PTVS - Python Tools for Visual Studio.
- Visual Studio Code
2715Python - The official VSCode extension with rich support for Python.
- IDE
Libraries for sending and parsing email.
- Mail Servers
- Clients
- Others
Libraries for Python version and virtual environment management.
20811pyenv - Simple Python version management.3685virtualenv - A tool to create isolated Python environments.
Libraries for file manipulation and MIME type detection.
33691mimetypes - (Python standard library) Map filenames to MIME types.33691pathlib - (Python standard library) An cross-platform, object-oriented path library.4306watchdog - API and shell utilities to monitor file system events.1666python-magic - A Python interface to the libmagic file type identification library.1135PyFilesystem2 - Python's filesystem abstraction layer.918path.py - A module wrapper for os.path.492Unipath - An object-oriented approach to file/directory operations.
Libraries for providing foreign function interface.
33691ctypes - (Python standard library) Foreign Function Interface for Python calling C code.2489cffi - Foreign Function Interface for Python calling C code.0PyCUDA - A Python wrapper for Nvidia's CUDA API.0SWIG - Simplified Wrapper and Interface Generator.
Libraries for working with forms.
3983django-crispy-forms - A Django app which lets you create beautiful forms in a very elegant and DRY way.2199django-bootstrap3 - Bootstrap 3 integration with Django.1154WTForms - A flexible forms validation and rendering library.801django-bootstrap4 - Bootstrap 4 integration with Django.338Deform - Python HTML form generation library influenced by the formish form generation library.199django-remote-forms - A platform independent Django form serializer.
Functional Programming with Python.
3035fn.py - Functional programming in Python: implementation of missing features to enjoy FP.3016Coconut - A variant of Python built for simple, elegant, Pythonic functional programming.2917Toolz - A collection of functional utilities for iterators, functions, and dictionaries.2363funcy - A fancy and practical functional tools.1549more-itertools - More routines for operating on iterables, beyonditertools.1350returns - A set of type-safe monads, tranformers, and composition utilities.733CyToolz - Cython implementation ofToolz: High performance functional utilities.
Libraries for working with graphical user interface applications.
33691curses - Built-in wrapper for ncurses used to create terminal GUI applications.10384Gooey - Turn command line programs into a full GUI application with one line.4502PySimpleGUI - Wrapper for tkinter, Qt, WxPython and Remi.3843Eel - A library for making simple Electron-like offline HTML/JS GUI apps.2457Toga - A Python native, OS native GUI toolkit.2410Flexx - Flexx is a pure Python toolkit for creating GUI's, that uses web technology for its rendering.2118DearPyGui - A Simple GPU accelerated Python GUI framework2008urwid - A library for creating terminal GUI applications with strong support for widgets, events, rich colors, etc.1993pywebview - A lightweight cross-platform native wrapper around a webview component.1417wxPython - A blending of the wxWidgets C++ class library with the Python.956enaml - Creating beautiful user-interfaces with Declarative Syntax like QML.562pyglet - A cross-platform windowing and multimedia library for Python.0kivy - A library for creating NUI applications, running on Windows, Linux, Mac OS X, Android and iOS.0Tkinter - Tkinter is Python's de-facto standard GUI package.0PyGObject - Python Bindings for GLib/GObject/GIO/GTK+ (GTK+3).0PyQt - Python bindings for the Qt cross-platform application and UI framework.
Libraries for working with GraphQL.
6040graphene - GraphQL framework for Python.652tartiflette - SDL-first GraphQL engine implementation for Python 3.6+ and asyncio.68tartiflette-asgi - ASGI support for the Tartiflette GraphQL engine.48tartiflette-aiohttp - Anaiohttp-based wrapper for Tartiflette to expose GraphQL APIs over HTTP.
Awesome game development libraries.
14678Cocos2d - cocos2d is a framework for building 2D games, demos, and other graphical/interactive applications.2409Panda3D - 3D game engine developed by Disney.822Arcade - Arcade is a modern Python framework for crafting games with compelling graphics and sound.138PySDL2 - A ctypes based wrapper for the SDL2 library.0Harfang3D - Python framework for 3D, VR and game development.0PyOgre - Python bindings for the Ogre 3D render engine, can be used for games, simulations, anything 3D.0PyOpenGL - Python ctypes bindings for OpenGL and it's related APIs.0RenPy - A Visual Novel engine.0Pygame - Pygame is a set of Python modules designed for writing games.
Libraries for geocoding addresses and working with latitudes and longitudes.
52247GeoDjango - A world-class geographic web framework.3009geopy - Python Geocoding Toolbox.880django-countries - A Django app that provides a country field for models and forms.566geojson - Python bindings and utilities for GeoJSON.481pygeoip - Pure Python GeoIP API.210GeoIP - Python API for MaxMind GeoIP Legacy Database.
Libraries for working with HTML and XML.
4112xmltodict - Working with XML feel like you are working with JSON.3827WeasyPrint - A visual rendering engine for HTML and CSS that can export to PDF.2489cssutils - A CSS library for Python.1981bleach - A whitelist-based HTML sanitization and text linkification library.1892pyquery - A jQuery-like library for parsing HTML.856html5lib - A standards-compliant library for parsing and serializing HTML documents and fragments.474untangle - Converts XML documents to Python objects for easy access.340MarkupSafe - Implements a XML/HTML/XHTML Markup safe string for Python.0BeautifulSoup - Providing Pythonic idioms for iterating, searching, and modifying HTML or XML.0xmldataset - Simple XML Parsing.0lxml - A very fast, easy-to-use and versatile library for handling HTML and XML.
Libraries for working with HTTP.
43557requests - HTTP Requests for Humans.5665httpx - A next generation HTTP client for Python.3532grequests - requests + gevent for asynchronous HTTP requests.2433urllib3 - A HTTP library with thread-safe connection pooling, file post support, sanity friendly.505treq - Python requests like API built on top of Twisted's HTTP client.378httplib2 - Comprehensive HTTP client library.
Libraries for programming with hardware.
5619scapy - A brilliant packet manipulation library.2073keyboard - Hook and simulate global keyboard events on Windows and Linux.1082ino - Command line toolkit for working with Arduino.932PyUserInput - A module for cross-platform control of the mouse and keyboard.355mouse - Hook and simulate global mouse events on Windows and Linux.270wifi - A Python library and command line tool for working with WiFi on Linux.0Pingo - Pingo provides a uniform API to program devices like the Raspberry Pi, pcDuino, Intel Galileo, etc.
Libraries for manipulating images.
7959thumbor - A smart imaging service. It enables on-demand crop, re-sizing and flipping of images.7748pillow - Pillow is the friendly PIL fork.4499pywal - A tool that generates color schemes from images.3962scikit-image - A Python library for (scientific) image processing.2229python-qrcode - A pure Python QR Code generator.1016wand - Python bindings for MagickWand, C API for ImageMagick.948Quads - Computer art based on quadtrees.756nude.py - Nudity detection.648PyMatting - A library for alpha matting.260pyvips - A fast image processing library with low memory needs.203python-barcode - Create barcodes in Python with no extra dependencies.197pagan - Retro identicon (Avatar) generation based on input string and hash.179hmap - Image histogram remapping.94pygram - Instagram-like image filters.0imgSeek - A project for searching a collection of images using visual similarity.
Implementations of Python.
33691CPython - Default, most widely used implementation of the Python programming language written in C.11174MicroPython - A lean and efficient Python programming language implementation.10160Grumpy - More compiler than interpreter as more powerful CPython2.7 replacement (alpha).5653Numba - Python JIT compiler to LLVM aimed at scientific Python.4543Pyston - A Python implementation using JIT techniques.1443PeachPy - x86-64 assembler embedded in Python.1352Pyjion - A JIT for Python based upon CoreCLR.1202IronPython - Implementation of the Python programming language written in C#.641Stackless Python - An enhanced version of the Python programming language.302CLPython - Implementation of the Python programming language written in Common Lisp.0Jython - Implementation of Python programming language written in Java for the JVM.0PyPy - A very fast and compliant implementation of the Python language.0Cython - Optimizing Static Compiler for Python.
Interactive Python interpreters (REPL).
5841Jupyter Notebook (IPython) - A rich toolkit to help you make the most out of using Python interactively.3765ptpython - Advanced Python REPL built on top of the python-prompt-toolkit.1854awesome-jupyter
1572bpython - A fancy interface to the Python interpreter.
Libraries for working with i18n.
919Babel - An internationalization library for Python.118PyICU - A wrapper of International Components for Unicode C++ library (ICU).
Libraries for scheduling jobs.
7740schedule - Python job scheduling for humans.5046Prefect - A modern workflow orchestration framework that makes it easy to build, schedule and monitor robust data pipelines.2921APScheduler - A light but powerful in-process task scheduler that lets you schedule functions.2173Joblib - A set of tools to provide lightweight pipelining in Python.1115Plan - Writing crontab file in Python like a charm.907Spiff - A powerful workflow engine implemented in pure Python.896doit - A task runner and build tool.781django-schedule - A calendaring app for Django.719gunnery - Multipurpose task execution tool for distributed systems with web-based interface.23Airflow - Airflow is a platform to programmatically author, schedule and monitor workflows.0TaskFlow - A Python library that helps to make task execution easy, consistent and reliable.
Libraries for generating and working with logs.
33691logging - (Python standard library) Logging facility for Python.6998loguru - Library which aims to bring enjoyable logging in Python.1386logbook - Logging replacement for Python.1340structlog - Structured logging made easy.747sentry-python - Sentry SDK for Python.
Libraries for Machine Learning. Also see awesome-machine-learning.
19844xgboost - A scalable, portable, and distributed gradient boosting library.6127NuPIC - Numenta Platform for Intelligent Computing.4993H2O - Open Source Fast Scalable Machine Learning Platform.2853MindsDB - 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.1362Metrics - Machine learning evaluation metrics.634Spark ML - Apache Spark's scalable Machine Learning library.157vowpal_porpoise - A lightweight Python wrapper for Vowpal Wabbit.0scikit-learn - The most popular Python library for Machine Learning.
Python programming on Microsoft Windows.
2544PyWin32 - Python Extensions for Windows.2275PythonNet - Python Integration with the .NET Common Language Runtime (CLR).53pythonlibs - Unofficial Windows binaries for Python extension packages.0Python(x,y) - Scientific-applications-oriented Python Distribution based on Qt and Spyder.0WinPython - Portable development environment for Windows 7/8.
Useful libraries or tools that don't fit in the categories above.
15671magenta - A tool to generate music and art using artificial intelligence.5245boltons - A set of pure-Python utilities.2056itsdangerous - Various helpers to pass trusted data to untrusted environments.1115blinker - A fast Python in-process signal/event dispatching system.906pluginbase - A simple but flexible plugin system for Python.0tryton - A general purpose business framework.
Libraries for working with human languages.
- General
17262spacy - A library for industrial-strength natural language processing in Python and Cython.11197gensim - Topic Modeling for Humans.9263nltk - A leading platform for building Python programs to work with human language data.7604pattern - A web mining module.5996pytext - A natural language modeling framework based on PyTorch.4688Stanza - The Stanford NLP Group's official Python library, supporting 60+ languages.1791PyTorch-NLP - A toolkit enabling rapid deep learning NLP prototyping for research.1676polyglot - Natural language pipeline supporting hundreds of languages.1652langid.py - Stand-alone language identification system.
- Chinese
24758funNLP - A collection of tools and datasets for Chinese NLP.24203jieba - The most popular Chinese text segmentation library.5056pkuseg-python - A toolkit for Chinese word segmentation in various domains.4956snownlp - A library for processing Chinese text.
Tools and libraries for Virtual Networking and SDN (Software Defined Networking).
3554mininet - A popular network emulator and API written in Python.1546napalm - Cross-vendor API to manipulate network devices.503pox - A Python-based SDN control applications, such as OpenFlow SDN controllers.
Libraries for building user's activities.
4382Stream Framework - Building news feed and notification systems using Cassandra and Redis.1804django-activity-stream - Generating generic activity streams from the actions on your site.
Libraries that implement Object-Relational Mapping or data mapping techniques.
- Relational Databases
52247Django Models - The Django ORM.7825peewee - A small, expressive ORM.3893dataset - Store Python dicts in a database - works with SQLite, MySQL, and PostgreSQL.2772SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper.2309pony - ORM that provides a generator-oriented interface to SQL.2129awesome-sqlalchemy
1125orator - The Orator ORM provides a simple yet beautiful ActiveRecord implementation.1058orm - An async ORM.327pydal - A pure Python Database Abstraction Layer.
- NoSQL Databases
3265mongoengine - A Python Object-Document-Mapper for working with MongoDB.1341PynamoDB - A Pythonic interface for Amazon DynamoDB.433redisco - A Python Library for Simple Models and Containers Persisted in Redis.266hot-redis - Rich Python data types for Redis.
Libraries for package and dependency management.
12293poetry - Python dependency management and packaging made easy.6556pip - The package installer for Python.4501pip-tools - A set of tools to keep your pinned Python dependencies fresh.
3818conda - Cross-platform, Python-agnostic binary package manager.2489PyPI
Local PyPI repository server and proxies.
2489warehouse - Next generation Python Package Repository (PyPI).412devpi - PyPI server and packaging/testing/release tool.370localshop - Local PyPI server (custom packages and auto-mirroring of pypi).195bandersnatch - PyPI mirroring tool provided by Python Packaging Authority (PyPA).
Frameworks and tools for penetration testing.
18235sqlmap - Automatic SQL injection and database takeover tool.6038fsociety - A Penetration testing framework.5742setoolkit - A toolkit for social engineering.
Libraries that allow or deny users access to data or functionality.
2750django-guardian - Implementation of per object permissions for Django 1.2+1138django-rules - A tiny but powerful app providing object-level permissions to Django, without requiring a database.
Libraries for starting and communicating with OS processes.
5437sh - A full-fledged subprocess replacement for Python.3467sarge - Yet another wrapper for subprocess.1510delegator.py - Subprocesses for Humans 2.0.
Libraries for building recommender systems.
7595annoy - Approximate Nearest Neighbors in C++/Python optimized for memory usage.4375Surprise - A scikit for building and analyzing recommender systems.3302lightfm - A Python implementation of a number of popular recommendation algorithms.2281spotlight - Deep recommender models using PyTorch.2083implicit - A fast Python implementation of collaborative filtering for implicit datasets.1450libffm - A library for Field-aware Factorization Machine (FFM).1088tensorrec - A Recommendation Engine Framework in TensorFlow.869fastFM - A library for Factorization Machines.
Refactoring tools and libraries for Python
1193Bowler - Safe code refactoring for modern Python.988Rope - Rope is a python refactoring library.0Bicycle Repair Man - Bicycle Repair Man, a refactoring tool for Python.
Libraries for building RESTful APIs.
- Django
18855django-rest-framework - A powerful and flexible toolkit to build web APIs.3682django-tastypie - Creating delicious APIs for Django apps.
- Flask
6190eve - REST API framework powered by Flask, MongoDB and good intentions.5740flask-restful - Quickly building REST APIs for Flask.1183flask-api - Browsable Web APIs for Flask.
- Pyramid
359cornice - A RESTful framework for Pyramid.
- Framework agnostic
21334fastapi - A modern, fast, web framework for building APIs with Python 3.6+ based on standard Python type hints.14127sanic - A Python 3.6+ web server and web framework that's written to go fast.8004falcon - A high-performance framework for building cloud APIs and web app backends.6321hug - A Python 3 framework for cleanly exposing APIs.5619vibora - Fast, efficient and asynchronous Web framework inspired by Flask.5485apistar - A smart Web API framework, designed for Python 3.1574sandman2 - Automated REST APIs for existing database-driven systems.
Libraries for robotics.
10210PythonRobotics - This is a compilation of various robotics algorithms with visualizations.486rospy - This is a library for ROS (Robot Operating System).
RPC-compatible servers.
2682zeroRPC - zerorpc is a flexible RPC implementation based on ZeroMQ and MessagePack.922RPyC (Remote Python Call) - A transparent and symmetric RPC library for Python
Libraries for scientific computing. Also see Python-for-Scientists.
14976NumPy - A fundamental package for scientific computing with Python.11981Zipline - A Pythonic algorithmic trading library.7936NetworkX - A high-productivity software for complex networks.7377SymPy - A Python library for symbolic mathematics.5556statsmodels - Statistical modeling and econometrics in Python.5282PyMC - Markov Chain Monte Carlo sampling toolkit.2516astropy - A community Python library for Astronomy.999Colour - Implementing a comprehensive number of colour theory transformations and algorithms.965Karate Club - Unsupervised machine learning toolbox for graph structured data.772bcbio-nextgen - Providing best-practice pipelines for fully automated high throughput sequencing analysis.693ObsPy - A Python toolbox for seismology.473bccb - Collection of useful code related to biological analysis.215PyDy - Short for Python Dynamics, used to assist with workflow in the modeling of dynamic motion.168cclib - A library for parsing and interpreting the results of computational chemistry packages.1SciPy - A Python-based ecosystem of open-source software for mathematics, science, and engineering.0Open Babel - A chemical toolbox designed to speak the many languages of chemical data.0Biopython - Biopython is a set of freely available tools for biological computation.0RDKit - Cheminformatics and Machine Learning Software.0SimPy - A process-based discrete-event simulation framework.0NIPY - A collection of neuroimaging toolkits.0QuTiP - Quantum Toolbox in Python.
Libraries and software for indexing and performing search queries on data.
3467whoosh - A fast, pure Python search engine library.3039django-haystack - Modular search for Django.3015elasticsearch-dsl-py - The official high-level Python client for Elasticsearch.2945elasticsearch-py - The official low-level Python client for Elasticsearch.566pysolr - A lightweight Python wrapper for Apache Solr.
Libraries for serializing complex data types
5003marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.2967ultrajson - A fast JSON decoder and encoder written in C with Python bindings.397python-rapidjson - A Python wrapper around RapidJSON.374pysimdjson - A Python bindings for simdjson.
Frameworks for developing serverless Python code.
11065Zappa - A tool for deploying WSGI applications on AWS Lambda and API Gateway.1175python-lambda - A toolkit for developing and deploying Python code in AWS Lambda.
Libraries for parsing and manipulating specific text formats.
- General
3770tablib - A module for Tabular Datasets in XLS, CSV, JSON, YAML.
- Office
3467openpyxl - A library for reading and writing Excel 2010 xlsx/xlsm/xltx/xltm files.2351XlsxWriter - A Python module for creating Excel .xlsx files.2342python-docx - Reads, queries and modifies Microsoft Word 2007/2008 docx files.1960unoconv - Convert between any document format supported by LibreOffice/OpenOffice.1795xlwings - A BSD-licensed library that makes it easy to call Python from Excel and vice versa.1139python-pptx - Python library for creating and updating PowerPoint (.pptx) files.960xlwt / xlrd - Writing and reading data and formatting information from Excel files.840pyexcel - Providing one API for reading, manipulating and writing csv, ods, xls, xlsx and xlsm files.827docxtpl - Editing a docx document by jinja2 template
- Markdown
2275Python-Markdown - A Python implementation of John Gruber’s Markdown.1842Mistune - Fastest and full featured pure Python parsers of Markdown.
- YAML
1213PyYAML - YAML implementations for Python.
- CSV
4358csvkit - Utilities for converting to and working with CSV.
- Archive
365unp - A command line tool that can unpack archives easily.
Static site generator is a software that takes some text + templates as input and produces HTML files on the output.
10792mkdocs - Markdown friendly documentation generator.9897pelican - Static site generator that supports Markdown and reST syntax.3335lektor - An easy to use static CMS and blog engine.1958nikola - A static website and blog generator.1442makesite - Simple, lightweight, and magic-free static site/blog generator (< 130 lines).
Libraries for tagging items.
2458django-taggit - Simple tagging for Django.
Libraries for working with task queues.
7277rq - Simple job queues for Python.3173huey - Little multi-threaded task queue.2204daramatiq - A fast and reliable background task processing library for Python 3.819mrq - A distributed worker task queue in Python using Redis & gevent.0celery - An asynchronous task queue/job queue based on distributed message passing.
Libraries and tools for templating and lexing.
7275Jinja2 - A modern and designer friendly templating language.90Mako - Hyperfast and lightweight templating for the Python platform.0Genshi - Python templating toolkit for generation of web-aware output.
Libraries for testing codebases and generating test data.
- Testing Frameworks
33691unittest - (Python standard library) Unit testing framework.6529pytest - A mature full-featured Python testing tool.5053Robot Framework - A generic test automation framework.4648hypothesis - Hypothesis is an advanced Quickcheck style property based testing library.654nose2 - The successor tonose, based on `unittest2.
- Test Runners
- GUI / Web Testing
18711Selenium - Python bindings for Selenium WebDriver.13864locust - Scalable user load testing tool written in Python.4295PyAutoGUI - PyAutoGUI is a cross-platform GUI automation Python module for human beings.2290splinter - Open source tool for testing web applications.1649sixpack - A language-agnostic A/B Testing framework.582Schemathesis - A tool for automatic property-based testing of web applications built with Open API / Swagger specifications.
- Mock
33691mock - (Python standard library) A mocking and patching library.2932responses - A utility library for mocking out the requests Python library.2559freezegun - Travel through time by mocking the datetime module.1810httpretty - HTTP request mock tool for Python.1774VCR.py - Record and replay HTTP interactions on your tests.410httmock - A mocking library for requests for Python 2.6+ and 3.2+.197mocket - A socket mock framework with gevent/asyncio/SSL support.3doublex - Powerful test doubles framework for Python.
- Object Factories
2278factory_boy - A test fixtures replacement for Python.937model_mommy - Creating random fixtures for testing in Django.705mixer - Another fixtures replacement. Supported Django, Flask, SQLAlchemy, Peewee and etc.
- Code Coverage
1312coverage - Code coverage measurement.
- Fake Data
Libraries for parsing and manipulating plain texts.
- General
33691difflib - (Python standard library) Helpers for computing deltas.7327fuzzywuzzy - Fuzzy String Matching.2859pypinyin - Convert Chinese hanzi (漢字) to pinyin (拼音).2763ftfy - Makes Unicode text less broken and more consistent automagically.1782textdistance - Compute distance between sequences with 30+ algorithms.1364chardet - Python 2/3 compatible character encoding detector.865Levenshtein - Fast computation of Levenshtein distance and string similarity.698pyfiglet - An implementation of figlet written in Python.149pangu.py - Paranoid text spacing.51unidecode - ASCII transliterations of Unicode text.
- Slugify
911python-slugify - A Python slugify library that translates unicode to ASCII.450awesome-slugify - A Python slugify library that can preserve unicode.293unicode-slugify - A slugifier that generates unicode slugs with Django as a dependency.
- Unique identifiers
- Parser
2538python-phonenumbers - Parsing, formatting, storing and validating international phone numbers.2167sqlparse - A non-validating SQL parser.1749ply - Implementation of lex and yacc parsing tools for Python.1058python-user-agents - Browser user agent parser.871pyparsing - A general purpose framework for generating parsers.428python-nameparser - Parsing human names into their individual components.389pygments - A generic syntax highlighter.
Libraries for accessing third party services APIs. Also see List of Python API Wrappers and Libraries.
5782boto3 - Python interface to Amazon Web Services.4949gspread - Google Spreadsheets Python API.4082google-api-python-client - Google APIs Client Library for Python.2546facebook-sdk - Facebook Platform Python SDK.1744twython - A Python wrapper for the Twitter API.1688apache-libcloud - One Python library for all clouds.312django-wordpress - WordPress models and views for Django.
Libraries for parsing URLs.
1869furl - A small Python library that makes parsing and manipulating URLs easy.1064webargs - A friendly library for parsing HTTP request arguments with built-in support for popular web frameworks.267pyshorteners - A pure Python URL shortening lib.246purl - A simple, immutable URL class with a clean API for interrogation and manipulation.
Libraries for manipulating video and GIFs.
1386vidgear - Most Powerful multi-threaded Video Processing framework.102scikit-video - Video processing routines for SciPy.0moviepy - A module for script-based movie editing with many formats, including animated GIFs.
Tools for managing, compressing and minifying website assets.
3467fanstatic - Packages, optimizes, and serves static file dependencies as Python packages.2364django-compressor - Compresses linked and inline JavaScript or CSS into a single cached file.1688django-storages - A collection of custom storage back ends for Django.1372django-pipeline - An asset packaging library for Django.885webassets - Bundles, optimizes, and manages unique cache-busting URLs for static resources.401flask-assets - Helps you integrate webassets into your Flask app.330fileconveyor - A daemon to detect and sync files to CDNs, S3 and FTP.
Libraries for extracting web contents.
11187requests-html - Pythonic HTML Parsing for Humans.10193newspaper - News extraction, article extraction and content curation in Python.3050toapi - Every web site provides APIs.2873textract - Extract text from any document, Word, PowerPoint, PDFs, etc.2370sumy - A module for automatic summarization of text documents and HTML pages.1873python-readability - Fast Python port of arc90's readability tool.994html2text - Convert HTML to Markdown-formatted text.506lassie - Web Content Retrieval for Humans.500micawber - A small library for extracting rich content from URLs.
Libraries to automate web scraping.
38352scrapy - A fast high-level screen scraping and web crawling framework.14593pyspider - A powerful spider system.7905portia - Visual scraping for Scrapy.3569MechanicalSoup - A Python library for automating interaction with websites.3483robobrowser - A simple, Pythonic library for browsing the web without a standalone web browser.1972grab - Site scraping framework.1375cola - A distributed crawling framework.0feedparser - Universal feed parser.
Traditional full stack web frameworks. Also see RESTful API.
- Synchronous
52247Django - The most popular web framework in Python.52150Flask - A microframework for Python.9202awesome-flask2929awesome-django
1443Masonite - The modern and developer centric Python web framework.489awesome-pyramid454awesome-django
35Pyramid - A small, fast, down-to-earth, open source Python web framework.
- Asynchronous
19439Tornado - A web framework and asynchronous networking library.
Libraries for working with WebSocket.
4562channels - Developer-friendly asynchrony for Django.2946websockets - A library for building WebSocket servers and clients with a focus on correctness and simplicity.2212autobahn-python - WebSocket & WAMP for Python on Twisted and asyncio.
WSGI-compatible web servers.
7166gunicorn - Pre-forked, partly written in C.5448werkzeug - A WSGI utility library for Python that powers Flask and can easily be embedded into your own projects.2420bjoern - Asynchronous, very fast and written in C.833waitress - Multi-threaded, powers Pyramid.604uWSGI - A project aims at developing a full stack for building hosting services, written in C.
Where to discover learning resources or new Python libraries.
- Tutorials
21643The Hitchhiker’s Guide to Python2549Full Stack Python2126Ultimate Python study guide1105Python Cheatsheet0Real Python
- Libraries
- Others
557Pythonic News417Python ZEEF
21Running in Production0Django Chat0Podcast.__init__0Python Bytes0Talk Python To Me0Test and Code0The Real Python Podcast
Your contributions are always welcome! Please take a look at the contribution guidelines first.
I will keep some pull requests open if I'm not sure whether those libraries are awesome, you could vote for them by adding 👍 to them. Pull requests will be merged when their votes reach 20.
If you have any question about this opinionated list, do not hesitate to contact me @VintaChen on Twitter or open an issue on GitHub.