Packages
pook intercepts and mocks HTTP traffic for testing, supporting popular Python HTTP clients with a fluent API, regex matching, JSON/XML support, and pluggable mock engines.
Install it if you need to mock HTTP traffic in tests and want flexibility in matching and response definition.
port-for finds and remembers unused TCP localhost ports, useful for persistent port allocation across service restarts and multi-component software stacks.
Port Ocean is a CLI framework and runtime for building integrations that connect third-party systems to Port's developer portal, handling real-time data synchronization and lifecycle management.
Install it if you need to build or run integrations with Port's developer portal.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Portend monitors TCP ports to check whether they are bound (occupied) or free, and can find available local ports for binding.
Install it if you need to wait for ports or discover available ones in Python or shell scripts.
Provides Python bindings for Kubernetes port-forwarding, allowing you to forward local ports to pods or services in a cluster using your kubeconfig file.
portion provides data structures and operations for working with intervals—including unions, intersections, complements, and containment tests—with automatic simplification and support for any comparable objects.
Install it if you need interval arithmetic or range operations.
Portkey is a Python SDK that wraps OpenAI-compatible APIs to add monitoring, failover, load balancing, caching, and observability without rewriting existing code.
Finds and returns an unused network port on the local host, available as a Python function or command-line tool for use in test automation and shell scripts.
However, the repository is archived and unmaintained—if you encounter a bug or need a feature, you will need to fork or find an alternative.
Poseidon hash implementation in Python with a C-based Hades permutation, configured for Starknet parameters.
posix_ipc provides Python bindings to POSIX inter-process communication primitives—semaphores, shared memory, and message queues—for synchronization and data exchange between processes on Unix-like systems and Windows with Cygwin.
Python bindings to libpostal, a C library for parsing and normalizing street addresses worldwide, supporting address expansion and component extraction.
Provides a lightweight abstraction layer over psycopg2 for PostgreSQL database access, simplifying common query patterns and connection management.
No, not for new projects.
A Model Context Protocol server that connects AI agents to PostgreSQL databases for analysis, tuning, and safe query execution with health checks and index optimization.
However, verify current maintenance status before relying on it in production—the package is aging with no recent commit history visible, and support clarity is needed.
An async Python client library that provides an ORM-like interface to PostgREST APIs, enabling CRUD operations and stored procedure calls against PostgreSQL databases exposed via PostgREST.
Provides a typed Python client for the PostGrid REST API, supporting both synchronous and asynchronous access to print mail, address verification, and bulk verification services.
Install it if you need to integrate PostGrid's print mail or address verification APIs into a Python application; skip it if you don't use PostGrid or prefer direct…
PostHog Python SDK integrates product analytics and feature flagging into Python applications, sending events and tracking user behavior to a PostHog instance.
Install it if you need to send analytics or feature flag data from a Python application to PostHog; the minimal dependency footprint and current Python version…
Sends event data and user properties to PostHog for product analytics, via HTTP requests backed by retry logic.
Postmarker is a Python client library for the Postmark email API, enabling you to send single and batch emails, manage templates, handle bounces, and integrate webhooks.
However, be aware that maintenance is infrequent—the last release was January 2022—so if Postmark has added new API features since then, this library may not expose…
POT provides solvers for optimal transport problems, including Wasserstein distances, Gromov-Wasserstein distances, and related algorithms for signal processing, image processing, and machine learning applications.
Converts bitmap images to vector graphics by tracing outlines, implemented in pure Python as a port of Peter Selinger's Potrace algorithm.
Pottery provides Python dict, set, list, deque, queue, and counter interfaces backed by Redis, letting you use familiar Python collection syntax to read and write data persisted in Redis.
Power Grid Model is a Python/C++ library for steady-state distribution power system analysis, supporting power flow, state estimation, and short circuit calculations.
PowerBot client library for synchronous operations with Python 3.9+, providing HTTP-based communication through standard web request dependencies.
However, clarify the license status and confirm that synchronous I/O meets your performance needs before committing to production use.
Provides a Python bridge to invoke C# Power Fx expressions through pythonnet and cffi, enabling Power Fx formula evaluation from Python code.
However, it is in early release (0.0.34), aging (235 days since last update), and lacks visible repository metadata, making its maintenance status unclear.
Fits heavy-tailed distributions like power laws to data and compares them against alternative distributions such as lognormals using statistical methods from Clauset et al. 2007.
Install it if you need to test whether data actually follows a power law rather than relying on visual inspection or naive fitting.
A Python client library for Microsoft Dataverse that provides CRUD operations, SQL queries, table metadata management, and file uploads through the Dataverse Web API.
However, verify the actual license before use in proprietary contexts (license treatment is unclear), and be aware that it is in preview—expect possible breaking…
Powershap performs feature selection by testing whether each feature's Shapley values are statistically significantly larger than a random feature's, using hypothesis testing and automatic power calculations to determine the required iterations.
However, verify that its power-calculation defaults and statistical assumptions fit your problem domain before relying on it for critical feature selection decisions.
A CI build system for testing Simulink/TargetLink model configurations with signal consistency checks, code generation, and ASIL variable handling for embedded automotive systems.
Pox provides utilities for filesystem exploration, environment variable manipulation, and automated discovery of installed tools and packages—useful for both local and remote system interaction.
Install it if you need programmatic filesystem exploration, environment variable handling, or automated discovery of system tools—particularly valuable in build…
Parses a restricted subset of YAML into Python dicts, lists, and basic types without deserializing arbitrary objects.
However, it is abandoned—last updated 2019-07-26—so do not install it for general YAML parsing or if you need ongoing maintenance.
ppdeep computes fuzzy hashes (CTPH/ssdeep) to measure similarity between inputs rather than testing for exact equality, useful in digital forensics and malware detection.
Install it if you need fuzzy hashing; skip it if you only need exact-match hashing or cryptographic digests.
Generates datamatrix codes (2D barcodes) in SVG format from Python, with built-in IPython display support for interactive notebooks.
ppft executes Python functions in parallel across multiple processors or networked computers, bypassing the GIL by using separate processes and inter-process communication.
Provides a Python API to automate power consumption measurement and data logging with Nordic Semiconductor's Power Profiler Kit II (PPK 2) over a serial connection.
pprintpp is a drop-in replacement for Python's standard pprint module that formats data structures with improved readability and PEP8 compliance, supporting collections, numpy arrays, and better unicode handling.
pproxy is an asynchronous proxy server that tunnels TCP and UDP traffic across HTTP, SOCKS, Shadowsocks, SSH, and other protocols, with support for load balancing and regex-based routing rules.
Converts PowerPoint .pptx files to markdown, preserving titles, lists, text formatting, images, tables, and hyperlinks, with support for multiple output formats including TiddlyWiki, Madoko, and Quarto.
Install it if you need to programmatically or batch-convert PowerPoint files to markdown or alternative markup; skip it if you only occasionally convert presentations…
Provides Python bindings to post-quantum cryptographic algorithms (key encapsulation and digital signatures) that resist attacks from both classical and quantum computers.
pqdm wraps tqdm and concurrent.futures to parallelize iteration over iterables with a live progress bar, supporting both process and thread-based parallelism.
However, if you require active maintenance, ongoing feature development, or support for Python versions beyond 3.9, consider whether a more actively maintained…