Packages
Provides a pure-Python LRU (least recently used) cache with constant-time lookup, insert, and delete operations, plus wrapper classes for caching access to dict-like objects and functions.
Install it if you need a simple, pure-Python caching layer with constant-time operations and optional write-through or write-back semantics for dict-like backends.
Integrates mypy static type checking into the Python LSP Server, displaying type errors and inferred types directly in your IDE as you edit.
Install it if you use python-lsp-server and want inline type checking; the only gotcha is the Python 3.10+ requirement and the need to install it in the same…
Parses the output of the lspci command to extract and structure PCI device information from the pciutils package.
pylsqpack provides Python Decoder and Encoder objects for reading and writing HTTP/3 headers compressed with QPACK, wrapping the ls-qpack C library.
Implements the LTI 1.3 Advantage specification for Python web applications, providing OIDC login and message launch handling with built-in adapters for Django and Flask.
However, verify compatibility with your target LMS versions and be prepared to fork or patch if critical issues arise post-2022, since the original maintainer is not…
Converts between Hebrew and Gregorian calendar dates, calculates date differences and offsets, identifies holidays and weekly Torah portions, and generates Hebrew calendars in text and HTML formats.
Install it if your application needs to work with Hebrew dates, holidays, or Torah portions; skip it if you only need Gregorian calendar operations.
A Python API for controlling Lutron Caséta smart home devices via their bridge, supporting async communication with TLS authentication and device state management.
pylxd provides a Python interface to the LXD REST API, enabling programmatic control of LXD containers and virtual machines.
Install it if you need to automate LXD operations from Python; skip it if you only use LXD from the command line or don't manage LXD systems.
pylzss decodes and encodes data compressed with the LZSS algorithm, a lossless compression method commonly used in legacy data formats and embedded systems.
However, this is a narrow-use library; install only if you are working with LZSS-compressed data or legacy formats that require it.
PyMacaroons implements macaroons—bearer credentials with embedded authorization caveats that can be created, serialized, and cryptographically verified.
However, if you require active development, recent Python version support beyond 3.9, or performance-critical use, consider whether libmacaroons bindings or an…
PyMammotion provides a Python API to control and monitor Mammotion robotic mowers (Luba, Yuka, Spino) via MQTT, cloud, and Bluetooth connections.
Implements a suite of Mann-Kendall trend tests and Sen's slope estimators for analyzing monotonic trends in time series data, including variants for seasonal, regional, and autocorrelated data.
However, note that the last release was in January 2023; verify that it supports your target Python version and that no critical bugs have emerged in your use case…
Pymantic parses and queries RDF and semantic web data formats (Turtle, N-Triples, N3) and provides a Python API to work with RDF graphs and SPARQL endpoints.
However, maintenance is aging (316 days since last release), so evaluate whether the project's pace suits your stability requirements.
Converts between geographic and 3-D coordinate systems (geodetic, ECEF, ENU, NED, AER, ECI) with pure Python and optional NumPy acceleration, following Matlab Mapping Toolbox conventions.
pymarc reads, writes, and modifies MARC21 bibliographic records, the standard format used by libraries to encode catalog metadata.
Install it if you work with library data, need to migrate MARC records, or integrate with library systems.
PyMarkdown is a GitHub Flavored Markdown linter that analyzes document structure using a spec-compliant parser to enforce consistent Markdown style rules across files.
Install it if you want automated Markdown quality checks in your project or CI pipeline.
An asyncio-based Python client for controlling Arduino boards via the Firmata protocol, supporting digital/analog I/O, sensors, and motors through callback-driven or polled event handling.
PyMatching is a fast Python/C++ library for decoding quantum error correcting codes using the Minimum Weight Perfect Matching (MWPM) decoder, designed to find the most probable set of errors from syndrome measurements.
Pymatgen provides Python classes and analysis tools for materials science workflows, including structure representation, file I/O for computational chemistry formats (VASP, ABINIT, Gaussian, CIF), phase diagrams, electronic structure analysis, and integration with the Materials Project REST API.
Install it if you work with crystal structures, computational chemistry outputs, or materials databases; skip it if your work does not involve materials analysis.
pymatgen-core provides core data structures and I/O for materials science, including Element, Site, Molecule, and Structure classes with support for VASP, ABINIT, CIF, Gaussian, and other computational chemistry formats.
Validates VASP electronic structure calculation inputs and outputs against Materials Project standards, checking for parameter compliance, known bugs, and calculation discrepancies.
Reads MATLAB .mat files in both legacy and HDF5-based formats (>= 7.3) and returns their contents as Python dictionaries.
PyMatting solves the alpha matting problem—extracting foreground objects from images given a hand-drawn trimap—using multiple algorithmic approaches and provides foreground estimation with optional GPU acceleration.
Install it if you need to solve alpha matting problems or extract foreground objects from images with trimap guidance.
Pymaven-patch provides Python access to Maven repositories and POM files, enabling programmatic interaction with Maven build system artifacts and project metadata.
Pymavlink is a Python implementation of the MAVLink protocol for communicating with unmanned aerial vehicles and other robotic systems, plus tools for analyzing flight logs.
pymbar implements the multistate Bennett acceptance ratio (MBAR) method to estimate free energy differences and expectation values from equilibrium samples across multiple thermodynamic states.
PyMC is a Python package for Bayesian statistical modeling and probabilistic programming, providing advanced MCMC and variational inference algorithms for parameter estimation and posterior inference.
Install it if you need to fit Bayesian models with flexible inference algorithms; avoid it only if you require Python versions below 3.12 or have no need for…
Extends PyMC with specialized distributions, alternative inference methods, and statespace models that are too specialized for the core library but useful enough to avoid reimplementing.
Install it if you need specialized distributions, alternative inference methods, or statespace models beyond what PyMC core offers.
PyMC-Marketing provides Bayesian statistical models for marketing analytics, including Marketing Mix Modeling (MMM), Customer Lifetime Value (CLV), Customer Choice, Bass Diffusion, and Predicted Incrementality by Experimentation (PIE).
PyMC3 is a Python package for Bayesian statistical modeling and probabilistic machine learning, implementing advanced Markov chain Monte Carlo (MCMC) and variational inference algorithms for complex probabilistic models.
However, it is now legacy—the PyMC project has been renamed and moved to newer backends.
Pymdown Extensions provides a collection of additional extensions for Python Markdown that add syntax support for advanced formatting, including tabbed content, superfences with syntax highlighting, emoji, and other markup enhancements.
Install it if you need markdown features beyond the standard library.
pymediainfo extracts detailed metadata from multimedia files by wrapping the MediaInfo library, parsing video, audio, and image properties into structured Python objects.
However, maintenance is dormant and the external MediaInfo dependency adds installation complexity; verify that your deployment environment can satisfy this…
PyMeeus implements astronomical algorithms from Jean Meeus's classical reference, providing Python classes for computing celestial positions, lunar phases, planetary phenomena, and time conversions with minimal dependencies.
However, verify Python version compatibility first and consider whether other libraries better suit production-grade use cases.
Pymem provides direct read and write access to Windows process memory, allowing you to inspect and modify running processes at the byte level from Python.
A pure-Python memcached client implementing the complete text protocol with support for TCP (IPv4/IPv6) and UNIX sockets, configurable timeouts, and optional noreply mode for faster writes.
PyMeshFix repairs triangular meshes by removing defects like self-intersections, degenerate elements, and singularities, producing watertight output meshes from digitized 3D models.
PyMeshLab provides Python bindings to MeshLab, enabling programmatic loading, processing, and saving of 3D triangle meshes with access to MeshLab's filtering and manipulation operations.
PyMeta3 compiles pattern-matching grammars based on Parsing Expression Grammars (PEGs) into Python classes, enabling compact syntax for lexing, parsing, and tree transformation.
pymetastore is a Python client for the Hive Metastore that provides a Thrift-based interface to query and manage metadata about databases, tables, and partitions in a Hive metastore service.
pymgclient is a Python adapter for Memgraph graph database, implementing the DB-API 2.0 specification to enable query execution and result fetching through a standard cursor interface.