Utilities & Language Tools
General purpose utility libraries, functional programming helpers, collections, decorators, caching, retries and Python language extensions.
General purpose utility libraries, functional programming helpers, collections, decorators, caching, retries and Python language extensions.
858 packages
A fast and thorough lazy object proxy.
Compress tool outputs, logs, JSON and chat history before each LLM call. Fewer input tokens, same answers; in-process, no API key. Library, proxy and MCP server.
Mock data generation factories
A task runner that works well with poetry and uv.
Calculate prices for calling LLM inference APIs.
Make your functions return something meaningful, typed, and safe!
Time expression parser
A chess library with move generation and validation, Polyglot opening book probing, PGN reading and writing, Gaviota tablebase probing, Syzygy tablebase probing, and XBoard/UCI engine communication.
Utils for streaming large files (S3, HDFS, GCS, SFTP, Azure Blob Storage, gzip, bz2, zst...)
A simple immutable dictionary
Nearest Neighbor Descent
execnet: rapid multi-Python deployment
Production-grade retries made easy.
Fix common misspellings in text files
Pre-compiled tree-sitter grammars for 371 programming languages
DataHub ingestion framework and CLI — connect, extract, and push metadata from 50+ data sources into your DataHub catalog
RestrictedPython is a defined subset of the Python language which allows to provide a program input into a trusted environment.
An Enum that inherits from str.
Mimesis: Fake Data Generator.
Python rate limiter with pluggable algorithms and backends
jq is a lightweight and flexible JSON processor.
The set of adapter protocols and base functionality that supports integration with dbt-core
Simple construction, analysis and modification of binary data: bit arrays, bitfields and unaligned binary formats.
Fast Base64 encoding/decoding
HogQL parser for internal PostHog use
Multi-Objective Optimization in Python
Python wrapper for the arXiv API
Python module to handle standardized numbers and codes
Python promises.
Manage calls to calloc/free through Cython