Packages
Replaces detected PII text entities with anonymized values using configurable operators like redaction, masking, hashing, encryption, or custom functions.
Detects and redacts personally identifiable information (PII) text in images and DICOM medical files using OCR and named-entity recognition.
The main gotcha is the Tesseract OCR system dependency—plan for that installation before deploying.
Provides a Python DBAPI-compatible client to query Presto, a distributed SQL engine, executing SQL and retrieving results.
However, note the release gap since 2023-09-07—verify compatibility with your Presto version before adopting in new projects.
Parses Presto SQL type annotations from rows returned by the Presto REST API into Python objects.
Pretend provides a lightweight library for creating stub objects in tests that return pre-canned responses without computation, plus utilities for recording calls and raising exceptions.
However, verify compatibility with your Python version—classifiers only list up to 3.6, and the last release was 2018-04-14.
Provides a unified interface to load pretrained PyTorch convolutional neural networks (ResNet, DenseNet, Inception, NASNet, SENet, and others) with weights initialized from ImageNet training.
Install only if you must reproduce a specific 2018-era result or need a model not available elsewhere; otherwise, use torchvision or timm instead.
Reformats HTML and XML strings with intelligent inline-tag handling, avoiding the excessive line breaks that tools like BeautifulSoup.prettify() introduce between tags that should stay on the same line.
Reformats Python exception tracebacks with color, context, and configurable layout to make errors easier to read and debug in the terminal.
Converts pandas DataFrames into styled HTML tables ready for email, with 12 built-in color themes and row-level formatting that works across email providers.
Provides utilities for reading, modifying, and synthesizing MIDI data in a Python-friendly format, handling note manipulation, tempo estimation, and audio output.
Syntax-highlighted, declarative pretty printer for Python that formats complex data structures and custom objects with readable output, replacing the standard library pprint with a Wadler-Leijen layout algorithm.
PrettyTable formats and displays tabular data as visually structured ASCII tables, with support for multiple output formats including HTML, JSON, CSV, LaTeX, and MediaWiki markup.
Install it if you need to display structured data in terminals, logs, or text-based reports.
Extracts price amounts and currency symbols from unstructured text strings, handling varied formats, thousand separators, and decimal separators across multiple locales.
Handles monetary amounts with currency awareness, tax calculations, and price ranges while preventing invalid operations like comparing or adding different currencies.
However, aging maintenance (last release 2022-10-07, no recent commits) means you should verify it works with your Python version.
CLI and Python SDK for managing GPU compute, sandboxes, training runs, and environments on Prime Intellect's cloud platform.
Install only if you have a Prime Intellect account and API key; the CLI and SDK are tightly coupled to that platform and will not function standalone.
Builds a command-line interface from Pydantic models, loading and merging configuration from TOML, YAML, or JSON files with CLI argument overrides.
However, it is very new, has minimal adoption, and lacks a declared license.
Python SDK for creating, managing, and executing code in remote Prime Intellect sandboxes—secure containerized environments with synchronous and asynchronous clients.
Install it if you need to run code on Prime Intellect infrastructure or want a type-safe SDK for remote execution.
Exposes local services via secure tunnels on Prime infrastructure, making them accessible over the internet through a managed reverse-proxy mechanism.
Provides functions to test primality, factor integers, generate prime sequences, and compute Euler's totient function for mathematical and cryptographic applications.
Install only if you need a lightweight, dependency-free prime utility for educational or experimental use and can tolerate the lack of maintenance.
primer3-py wraps the Primer3 library to provide fast oligo thermodynamic analysis (melting temperature, hairpin formation) and primer design through a Python API.
HTTP client library that mimics real web browsers by impersonating specific browser profiles, enabling requests that bypass detection and fingerprinting.
Prince implements multivariate exploratory data analysis methods including PCA, CA, MCA, MFA, FAMD, GPA, and PGA with a scikit-learn API for tabular data summarization.
Implements HTTP/2 stream priority scheduling according to RFC 7540, allowing servers to allocate resources fairly across multiple concurrent streams based on client-expressed preferences.
However, note that the last release was 2021-06-27 with no updates since; if you need active maintenance or support for very recent Python versions, verify…
Prisma Client Python is a type-safe ORM that generates a fully typed database client from a schema file, supporting both synchronous and asynchronous access to PostgreSQL, MySQL, SQLite, CockroachDB, and experimental MongoDB and SQL Server.
However, the repository is archived and abandoned—install only if you are maintaining an existing project or willing to fork and maintain it yourself.
Lightweight Python SDK wrapper for the Palo Alto Networks Prisma SASE API, enabling programmatic access to AppFabric configuration and management.
Encodes and decodes a compact URI-friendly data serialization format that expresses the same data structures as JSON but with minimal URI encoding overhead.
Install it if you need to embed nested objects or arrays in query parameters without the verbosity of JSON or form encoding.
Provides common utility methods for building probable parsers, a parsing approach used in information extraction and data cleaning tasks.
Parses unstructured person and company names into labeled components using probabilistic NLP methods, handling complex cases where rule-based parsing typically fails.
However, the aging release cycle (654 days since last update) and Alpha development status mean you should test it on your specific name formats before relying on it…
ProbLog is a probabilistic logic programming toolbox that combines logic programming with probability annotations to perform inference tasks like computing marginals given evidence and learning from interpretations.
Install it if you need to combine logic programming with probabilistic reasoning; skip it if you're looking for general-purpose Bayesian inference or constraint solving.
Proces provides text preprocessing functions for cleaning and normalizing text, including whitespace handling, case conversion, traditional-to-simplified Chinese conversion, full-width to half-width character conversion, and sensitive information masking.
Prodict wraps Python dictionaries to allow dot-notation attribute access and IDE autocompletion, with optional type hints for automatic nested object instantiation and type conversion.
However, maintenance is aging (last update 304 days ago), so evaluate whether the lack of recent activity poses a risk for your use case.
Prodigy is a PyTorch optimizer that adapts the learning rate automatically during training, eliminating the need to manually tune this critical hyperparameter.
However, verify that PyTorch is available in your environment, as it is not declared as a package dependency.
Plone is a Python-based content management system that provides a complete server-side rendered CMS, a React-backed REST API frontend, or headless CMS capabilities for custom frontends.
However, it is a full application server, not a lightweight library—installation and deployment require dedicated infrastructure planning (buildout, Docker, or…
Proglog provides a unified progress logging interface that lets library authors expose progress bars and logs to users while letting those users control display format (console, notebook, web) and which bars to show or silence.
Provides terminal progress bars and spinners for displaying task completion status during long-running operations in Python scripts.
Install it if you need terminal progress feedback in scripts or CLI tools.
progressbar2 renders text-based progress bars in the terminal, handling custom widgets, concurrent bars, unknown-length progress, and clean output around logs and prints.
Displays text-based progress bars in the console, with customizable widgets that show progress state and auto-resize to terminal width.
ProLIF generates interaction fingerprints from molecular complexes in MD trajectories, docking simulations, and experimental structures, encoding ligand-protein/DNA/RNA contacts in a machine-readable format.
Connects to Prometheus monitoring systems and fetches time-series metrics via HTTP API, with tools for processing, aggregating, and optionally plotting or converting metrics to DataFrames.
Adds async/await support to Prometheus metrics collection for asyncio and Twisted applications, wrapping the official prometheus-client library.