Pretty-print tabular data in Python with extensive formatting options and output format support.
Overall
score
69%
A utility for formatting structured log data into human-readable tables with custom delimiters.
Create a log formatter that takes structured log entries and formats them into tables using custom column separators. The formatter should support different delimiter styles for different log levels or output contexts.
The formatter must provide a function that accepts log entries (as a list of dictionaries or similar tabular data) and outputs formatted tables with customizable column separators.
The formatter should support creating tables with various separator styles:
[{"timestamp": "2024-01-01", "level": "INFO", "message": "Started"}], formatting with "|" separator produces a table with columns separated by "|" @test[{"timestamp": "2024-01-01", "level": "INFO", "message": "Started"}], formatting with "," separator produces a table with columns separated by "," @test@generates
def format_logs(entries, separator):
"""
Format log entries into a table with custom column separators.
Args:
entries: List of dictionaries containing log entry data
separator: String to use as column separator
Returns:
Formatted table string with custom separators
"""
passProvides table formatting capabilities with support for custom separators.
Install with Tessl CLI
npx tessl i tessl/pypi-tabulatedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10