The best Python libraries

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rich

    Rich is a Python library for rich text and beautiful formatting in the terminal.

  • rich For rich text printing. It may not seem like much, but it can make a TON of difference when debugging or reading stdout logs.

  • DearPyGui

    Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • python-soundfile

    SoundFile is an audio library based on libsndfile, CFFI, and NumPy

  • soundlife for reading, manipulating and writing audio files.

  • python-sfml

    Official binding of SFML for Python

  • pySFML for game dev.

  • scanf

    A small scanf implementation for python (by joshburnett)

  • Regular expressions or something like shlex or scanf?

  • trio

    Trio – a friendly Python library for async concurrency and I/O

  • trio for any async stuff. It feels really nice to use, and I have yet to find difficulties with it.

  • uvicorn

    An ASGI web server, for Python. 🦄

  • Hypercorn and Uvicorn. Uvicorn has really nice debugging capabilities, but Hypercorn has solid http/3 support. Recently, however, I have been using Hypercorn as it supports trio out of the box. (Uvicorn does not :( )

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • pydantic

    Data validation using Python type hints

  • Pydantic is great for data validation and dataclasses in general. I really like using it, but that may be because I also use FastAPI :)

  • fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

  • FastAPI for web servers. Everything with this just feels right. On top of that, it is pretty dang fast. The auto documentation is a life saver. With FastAPI I also like to use:

  • requests-html

    Pythonic HTML Parsing for Humans™

  • I'm not sure what is left to do, it is essentially a lightweight wrapper that consolidates a bunch of other libraries (like parse, requests, chromium, etc). The whole package is basically one file requests_html.py.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts