Python Language

Libraries close to the language itself: Python implementations, better built-in classes, functional programming, async and concurrency, and dates and times.

Listed by section, in editorial order. Click a column header to re-sort the whole list.

Press / to search. Tags open their category. Click a row for details.

Search and filter

Results

Row number Tags

Implementations 5 projects

CPython is the default Python implementation. Switch to PyPy for long-running pure-Python code, MicroPython for microcontrollers, or Pyodide for the browser.

Default, most widely used implementation of the Python programming language written in C.
python/github.com/python/cpython /78,053 stars /
A lean and efficient Python implementation for microcontrollers and constrained systems.
A very fast and compliant implementation of the Python language.
pypy/github.com/pypy/pypy /1,837 stars /
Optimizing static compiler for Python.
cython/github.com/cython/cython /10,909 stars /
Python distribution for the browser and Node.js based on WebAssembly.
pyodide/github.com/pyodide/pyodide /14,968 stars /

Built-in Classes Enhancement 5 projects

Python's built-in dataclasses write a class's boilerplate methods for you. When fields need validators or converters, attrs is the dataclass alternative to use.

(Python standard library) Adds generated special methods such as __init__() and __repr__() to your classes.
Writes __init__, __eq__, __repr__, and other boilerplate methods for your classes.
python-attrs/github.com/python-attrs/attrs /5,890 stars /
Python dictionaries with advanced dot-notation access.
cdgriffith/github.com/cdgriffith/Box /2,841 stars /
Efficient, Pythonic bidirectional map data structures.
jab/github.com/jab/bidict /1,590 stars /
A fast, Rust-backed drop-in replacement for Python's built-in uuid module.

Functional Programming 5 projects

Past the built-in functools, pick more-itertools for iterator tools, toolz for curried pipelines, funcy for decorators like retry, and returns for typed errors.

(Python standard library) Higher-order functions and operations on callable objects.
More routines for operating on iterables, beyond itertools.
A collection of functional utilities for iterators, functions, and dictionaries. Also available as cytoolz for Cython-accelerated performance.
pytoolz/github.com/pytoolz/toolz /5,162 stars /
Fancy and practical functional tools.
Suor/github.com/Suor/funcy /3,508 stars /
A set of type-safe monads, transformers, and composition utilities.
dry-python/github.com/dry-python/returns /4,391 stars /

Asynchronous Programming 8 projects

Use asyncio for I/O-bound work. concurrent.futures runs CPU-bound work in processes, and libraries with no async support in threads.

(Python standard library) Asynchronous I/O, event loop, coroutines and tasks.
Also see: awesome-asyncio
A high-level async concurrency and networking framework that works on top of asyncio or trio.
agronholm/github.com/agronholm/anyio /2,580 stars /
Ultra-fast asyncio event loop.
MagicStack/github.com/MagicStack/uvloop /11,958 stars /
A friendly library for async concurrency and I/O.
python-trio/github.com/python-trio/trio /7,368 stars /
A coroutine-based Python networking library that uses greenlet.
gevent/github.com/gevent/gevent /6,448 stars /
An event-driven networking engine.
twisted/github.com/twisted/twisted /6,014 stars /
(Python standard library) High-level asynchronous execution of callables.
(Python standard library) Process-based parallelism.

Date and Time 5 projects

Keep Python's datetime, and add zoneinfo for time zones and dateutil to parse date strings. For DST-safe types that replace datetime, use whenever.

(Python standard library) IANA time zone support. Brings the tz database into Python.
Extensions to the standard Python datetime module.
dateutil/github.com/dateutil/dateutil /2,650 stars /
A Python parser for human-readable dates in over 200 language locales.
Python datetimes made easy.
A modern datetime library, type-safe and DST-safe, in Rust or pure Python.

Know a project that belongs here?

Tell us what it does and why it stands out.