Packages
A LocalStack-optimized distribution of Twisted that provides asynchronous networking and event-driven I/O capabilities for Python applications, with reduced size by excluding tests and unused modules.
However, verify that the excluded modules don't affect your specific use case, and confirm compatibility if you depend on packages expecting the standard Twisted…
Provides utilities to locate the current Python file's directory and modify sys.path relative to that location for importing from nearby modules.
Locket provides file-based locks for inter-process synchronization on Linux and Windows, allowing multiple processes to coordinate access to shared resources using a common lock file path.
However, be aware that it is no longer maintained—if you need active development, bug fixes, or support for future Python versions, consider whether a maintained…
Provides a platform-independent file locking API that works identically on Unix and Windows systems, using atomic filesystem operations (link on Unix, mkdir on Windows) to coordinate exclusive access to files.
Locust is a Python-based load testing framework that lets you write performance tests in regular Python code and run them against HTTP and other protocols, with real-time monitoring via a web UI or command line.
Install it if you need load testing with code-based test definition, distributed scaling, and real-time monitoring—especially for HTTP services or when you want to…
Locust Cloud is a client library for running distributed load tests against web applications via the Locust Cloud service, using gevent-based concurrency and WebSocket communication.
However, the aging maintenance status and lack of public documentation in the fact sheet suggest you should verify current support and feature stability before…
Extends Locust with plugins for load testing non-HTTP protocols, reading test data, listening to results, and command-line tools to reduce boilerplate in performance test scripts.
Provides colored Unicode symbols (✔, ℹ, ⚠, ✖) for log levels that can be printed or embedded in terminal output.
However, it is dormant since 2019 and depends on enum34, which may be unnecessary on modern Python.
Logbook is a logging library that replaces Python's standard logging module with a simpler, more flexible API designed for both command-line and web applications.
Install it if you prefer a simpler logging API than stdlib logging and are willing to adopt a different library.
Logdecorator provides Python decorators to add logging to functions without cluttering business logic—log at function start, end, or on errors using simple decorator syntax.
Integrates Python's standard logging framework with LogDNA's cloud log ingestion service, sending log records to a remote LogDNA account via HTTP.
However, dormant maintenance (last release 2023-07-27) means no active bug fixes or updates; verify compatibility with your Python version and LogDNA API before…
Logfire is a Python observability platform that captures traces, metrics, and logs from your application and sends them to a hosted dashboard for analysis, with built-in instrumentation for popular frameworks and Pydantic models.
logfire-api provides a no-op shim of the Logfire SDK API that activates only when the logfire package is installed, allowing libraries to offer optional Logfire integration without requiring it as a hard dependency.
Formats Python stdlib logging output as logfmt structured logs without modifying existing log calls, enabling both human and machine-readable output.
Logfury adds automatic method-call tracing to Python classes and functions via metaclasses and decorators, logging entry points with arguments to help library maintainers debug without boilerplate.
A Python logging helper that provides utilities for configuring and managing application logs.
Install only if you are maintaining legacy code that already depends on it.
Provides a standard error logging mechanism for Python applications as specified in PEP 282.
Provides a Python logging handler that asynchronously uploads application logs to Azure Log Analytics Workspace via REST API, using a background thread to batch and send logs without blocking the main process.
A drop-in replacement for Python's standard logging.Formatter that escapes carriage returns and linefeeds in log output to prevent CRLF injection attacks (CWE-93 and CWE-117).
Formats Python logging records as JSON output, enabling structured logs suitable for ingestion by log aggregation platforms like Splunk or Elasticsearch.
Visualizes the hierarchy of loggers, handlers, and filters in Python's standard logging module, showing how messages propagate through the logger tree.
Install it if you regularly debug logging setups or inherit complex applications; skip it if you never need to inspect logging state at runtime.
Python client library for controlling Saleae Logic 2 hardware analyzers via the Automation API, enabling programmatic capture and analysis of digital signals.
Logical unification in Python with support for pattern matching and custom data types, extensible via dispatch on toolz and multipledispatch.
logistro wraps Python's standard logging module to provide sensible defaults, a debug2 level for verbose output, and a getPipeLogger() function for capturing subprocess stderr into the logging system.
Adds standard CLI logging options (`--verbosity`, `--silent`, `--logdev`) to argparse-based command-line tools, with a simple interface to configure Python's standard logging from command-line arguments.
Install it if you're building a command-line tool with argparse and want standard logging options without writing setup code.
Logomaker creates customized sequence logos—visual representations of sequence alignments commonly used in bioinformatics—by rendering sequence position data as stacked letter plots using matplotlib.
Formats Python logging output as JSON objects compatible with Logstash, allowing standard logs to be shipped as structured data.
A Python client library for sending structured logs to Better Stack (formerly Logtail), a ClickHouse-based log management platform with SQL-compatible querying.
Install only if you have a Better Stack account or plan to set one up.
Loguru provides a pre-configured logger that replaces Python's standard logging with a simpler, zero-boilerplate interface for writing log messages to stderr, files, or custom handlers.
Install it if you want logging to feel natural but with the power, structure that production code needs.
Provides additional logging handlers for Python's standard library logging module, including handlers not in the standard library and backports of newer Python logging features to older versions.
logzero provides pre-configured Python logging to console and/or rotating files with colored output, JSON formatting support, and minimal setup overhead.
A Python logging handler that sends logs in bulk over HTTPS to Logz.io, with automatic queuing, retry logic, and local fallback storage on send failure.
Install it if you use Logz.io and want to ship Python application logs via the standard logging module with built-in retry and fallback behavior.
A logging handler that sends Python log messages to Grafana Loki in JSON format, with support for custom labels, batch publishing, and compression.
However, note that maintenance is aging (last update 2025-05-26, last commit 2026-01-09); if you require active support or plan to use Loki 3.0 structured metadata in…
Loky provides a reusable ProcessPoolExecutor that handles parallel task execution across multiple worker processes with safer spawning behavior and transparent support for non-picklable functions.
Install it if you need robust parallel task execution, especially on macOS or with third-party C libraries, or if you want to avoid repeated executor spawn overhead.
Lomond is a WebSocket client library that converts WebSocket connections into an event stream, allowing you to iterate over connection and message events without threads or callbacks.
Longbridge provides a Python SDK for accessing Longbridge's OpenAPI, enabling programmatic access to real-time quotes, trading, account management, and financial data across multiple market contexts.
However, the unclear license status is a blocker for commercial use—verify licensing terms in the repository before deploying in proprietary projects.
Provides a Python client library for communicating with the Looker REST API, with support for multiple API versions and pluggable authentication and transport mechanisms.
Install it if you need to integrate with a Looker instance; the permissive MIT license and stable API make it a straightforward choice.
Extends OpenTelemetry's GenAI semantic conventions to capture telemetry from large language models, agents, tool calls, vector retrieval, and related operations, mapping them to standardized Span attributes, optional message content, and GenAI events.
Provides synchronous and asynchronous rate limiters to regulate loop execution frequency at a specified rate, similar to rospy.Rate.
Install it if you need straightforward loop frequency regulation in synchronous or asynchronous code.
Looptime fakes the passage of time in asyncio event loops during tests, allowing time-dependent code to run in near-zero real time while the loop's internal clock advances by configured amounts.