Packages
Parses and splits PEM files (Base64-encoded DER keys and certificates) without interpreting the certificate data itself, handling various certificate deployment scenarios.
PemJa enables Python code to call Java methods and classes, and Java code to invoke Python functions, using FFI-based cross-language interoperability.
However, the 413-day release gap suggests limited ongoing support; evaluate whether the project's maturity and your platform requirements align before committing to a…
Pendulum provides an enhanced datetime API for Python that handles timezones, DST transitions, and date arithmetic with intuitive methods, while remaining compatible with the standard library's datetime class.
Install it if you work regularly with timezones, DST transitions, or need more readable date arithmetic than the standard library offers.
Penman is a Python library for reading, writing, and manipulating graphs encoded in PENMAN notation, commonly used for Abstract Meaning Representation (AMR) and other semantic graph formats.
PennyLane is a quantum computing framework that lets you build, simulate, and optimize quantum circuits and algorithms using Python, with support for quantum machine learning, quantum chemistry, and integration with multiple quantum hardware backends.
PennyLane-Lightning provides high-performance quantum state-vector and tensor-network simulators as a plugin for PennyLane, with backends optimized for CPUs, GPUs (NVIDIA and AMD), and distributed computing via MPI.
Install it if you use PennyLane and need faster simulation than the default backend, especially for GPU-accelerated or distributed workloads.
Provides subprocess-isolated wrappers around PEP 517 and PEP 660 build hooks, letting you call Python package build backends without checking which hooks are implemented.
Checks Python code against PEP 8 style conventions and reports violations with line numbers and error codes.
A flake8 plugin that checks Python code for compliance with PEP 8 naming conventions, detecting violations like improper class names, function names, variable names, and import aliases.
Install it if you use flake8 and want to enforce naming conventions.
PEPHubClient provides a Python API and command-line interface to upload and download bioinformatics project metadata to and from PEPhub, with support for authentication and private projects.
Peppercorn converts token streams into nested data structures (sequences, mappings, scalars), primarily for parsing HTTP form post data into richer formats.
peppy reads and manages Portable Encapsulated Projects (PEPs)—a metadata format for organizing bioinformatics workflows and sequencing projects—providing Python access to project configuration and sample metadata.
Percentify provides one-call exploratory statistics and data-quality diagnostics for pandas and Polars DataFrames, ranking issues worst-first with suggested fixes.
Perceptron is a Python SDK for building physical AI applications with multimodal perception tasks—detection, localization, OCR, and visual Q&A—routing requests to specialized models with structured outputs ready for robotics and edge deployment.
However, verify the license terms before production use—the metadata does not specify whether it is open-source, proprietary, or commercial.
Integrates Percy visual testing into Python Appium tests, capturing and comparing mobile app screenshots against baselines to detect visual regressions.
However, the Pre-Alpha status means the API and features may change; start with a non-critical test suite and verify compatibility with your Appium and urllib3…
Integrates Percy visual testing into Python Selenium tests, capturing and comparing screenshots against baseline images to detect visual regressions.
Perf Analyzer is a CLI tool that measures and optimizes inference performance on Triton Inference Server by testing different optimization strategies under controlled load conditions.
However, verify the unclear license terms first, and note that it requires an external Triton server to be useful—it is not a standalone profiler.
Perfetto is a Python binding for Perfetto's trace processor, allowing programmatic access to system and application traces via SQL queries and trace analysis APIs.
Provides a periodic table of the elements with computed properties for mass, density, X-ray scattering, and neutron scattering calculations.
Install it if you work with crystallography, neutron science, or X-ray analysis and need element properties in code.
Perky parses a minimal, human-friendly text file format for configuration and data, returning dicts, lists, and strings with optional provenance tracking via the big library.
Provides a Permutation class for representing and manipulating permutations of positive integers, supporting operations like composition, cycle decomposition, inverses, order, parity, and Lehmer codes.
Install it if you need to work with permutations; skip it if your use case doesn't involve permutation algebra.
Provides a Python client library for the Perplexity REST API, offering synchronous and asynchronous access to web search and chat completion endpoints with full type support.
Install it if you need to call Perplexity's search or chat endpoints from Python; skip it only if you prefer to manage HTTP requests directly or do not have a…
Provides thread-safe, disk-based queue implementations using file storage or SQLite that persist across process restarts and support multiple serialization formats.
However, the aging maintenance status (293 days since last release) and lack of recent activity suggest evaluating whether active maintenance matters for your use case.
Provides a persistent base class built on ExtensionClass for object serialization and storage in Zope-based applications.
Provides transparent persistence for Python objects, allowing them to be automatically saved to and loaded from a database like ZODB without explicit serialization code.
Not recommended as a standalone persistence solution outside the ZODB ecosystem.
Persisting-theory provides a registry system for automatically discovering and accessing registered data across pluggable application components, similar to Django's autodiscovery pattern.
Petastorm enables direct training of deep learning models from Apache Parquet datasets using TensorFlow, PyTorch, PySpark, or pure Python, with support for selective column access, shuffling, filtering, and distributed parallelism.
However, note the aging maintenance status (224 days since last release)—verify compatibility with your specific framework versions before committing to production use.
petl extracts, transforms, and loads tables of data using a declarative, composable API that works with multiple data sources and formats.
Install it if you need composable, readable data transformations without framework overhead.
Generates random, pronounceable names by combining adverbs, adjectives, and animal names following RFC1178, useful for hostnames, container names, and other identifiers.
Install it if you need pronounceable identifiers for infrastructure, testing, or naming tasks.
PettingZoo provides multi-agent reinforcement learning environments with a Gymnasium-like API, supporting both sequential (AEC) and parallel action modes across Atari, classic games, and custom environments.
Install it if you need a multi-agent environment interface; use base install for API exploration and add extras only for specific environment families.
Pex generates standalone, executable Python environments (.pex files) that bundle dependencies into portable binaries for deployment without virtualenv setup.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Extends pexpect to work with serial ports by wrapping pyserial connections, allowing you to send commands and match responses over serial communication.
However, verify compatibility with your current pexpect and pyserial versions, and be prepared to fork or patch if issues arise.
Provides fuzzy string matching with match indices using the fzy algorithm, including async matching and substring scoring.
However, the package is abandoned and has not been updated since January 2022, so consider it only for stable, self-contained use cases where you won't need ongoing…
Embeds a PostgreSQL database directly in Python with zero configuration, no Docker required, and built-in pgvector support for vector operations.
pg8000 is a pure-Python PostgreSQL driver that implements the DB-API 2.0 standard, allowing you to connect to and query PostgreSQL databases from Python code.
pgcli is a command-line interface for PostgreSQL that provides auto-completion for SQL keywords, table and column names, and syntax highlighting as you type.
Install it if you regularly work with PostgreSQL from the command line and value auto-completion and syntax highlighting.
pgcopy wraps PostgreSQL's binary COPY protocol to load data into tables much faster than row-by-row inserts, using psycopg2 as the connection layer.
Wraps PostgreSQL connections to return query results as dictionaries keyed by column name instead of tuples, and provides simplified methods for common database operations.
pgeocode queries postal codes to retrieve GPS coordinates, place names, and administrative regions from a GeoNames database covering 83 countries, and calculates distances between postal codes.
However, verify that GeoNames data is current for your use case and be prepared to fork or patch if bugs arise, since the maintainer is not actively releasing updates.