structlog-pretty
A collection of structlog processors for prettier output
Decision gist · record as of 2026-08-14
Yes, if you use structlog and want prettier logs without extra dependencies beyond pygments. The dormant maintenance status is not a blocker—the package is stable and focused—but verify compatibility with your structlog and Python versions before adopting. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3; optional C extensions for faster processors need libxml installed.
- Low friction install with a single runtime dependency (pygments).
- Maintenance is dormant—last commit was 2024-07-15 and no updates in 760 days—but the repository remains active and unarchived, suggesting the package is stable rather than abandoned.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and private projects with minimal restrictions.
last release 2024-07-15 (760 days) · last repo commit 2024-07-15 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 109,287 downloads/mo, #12,522 on PyPI
Alternatives
Verify before relying
pip install structlog-pretty
import structlog
import structlog_pretty
structlog.configure(
processors=[
structlog_pretty.SyntaxHighlighter({'request': 'json'}),
structlog_pretty.MultilinePrinter(['request']),
]
)- Whether the package works with recent structlog versions and modern Python 3.x releases.
- Performance characteristics of the optional [fast] extras and whether libxml availability is common in typical deployment environments.
What it is and what it does
structlog-pretty is a collection of processors that integrate with structlog to make structured log output more human-readable. It provides syntax highlighting for code snippets in logs, prettification for JSON and XML fields, multiline string formatting, and numeric rounding for cleaner output. The package wraps around structlog's processor pipeline, so you add its processors to your logging configuration and it transforms specific fields in your log events on the fly.
The package is designed for developers who use structlog and want logs that are easier to read during development or debugging without changing the underlying structured format. It has low install friction—just pygments as a runtime dependency—and comes with optional faster processors if you install the [fast] extra, though those require C compilation and libxml.
Use it for
- Format JSON request/response payloads in logs for readability during API debugging.
- Highlight code snippets embedded in log messages with syntax coloring.
- Pretty-print XML responses in SOAP or other XML-based service logs.
- Round numeric timing values to a fixed number of digits for cleaner performance logs.
- Display multiline strings (stack traces, formatted output) without mangling indentation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use structlog and want prettier logs without extra dependencies beyond pygments.
The dormant maintenance status is not a blocker—the package is stable and focused—but verify compatibility with your structlog and Python versions before adopting. No known security vulnerabilities.
Install
structlog-pretty on PyPI
Before you install
Low friction install with a single runtime dependency (pygments). Maintenance is dormant—last commit was 2024-07-15 and no updates in 760 days—but the repository remains active and unarchived, suggesting the package is stable rather than abandoned.
Requires Python 3; optional C extensions for faster processors need libxml installed.
License in practice
Licensed under MIT (permissive), so you can use it freely in commercial and private projects with minimal restrictions.
Quickstart
pip install structlog-pretty
import structlog
import structlog_pretty
structlog.configure(
processors=[
structlog_pretty.SyntaxHighlighter({'request': 'json'}),
structlog_pretty.MultilinePrinter(['request']),
]
)
Verify before relying
- Whether the package works with recent structlog versions and modern Python 3.x releases.
- Performance characteristics of the optional [fast] extras and whether libxml availability is common in typical deployment environments.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepygments |
| Maintenance | Dormant 760 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 109,287 / month, #12,522 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: Only |
Evidence: structlog_pretty-0.4.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “structlog formatting processors”
- structlog-prettyAdds structlog processors that format log output with syntax…
- structlog-gcpConfigures structlog to output logs in Google Cloud Logging JSON…
- pytest-structlogProvides a pytest fixture for capturing and asserting on structured…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also structlog-gcp · structlog-sentry · structlog · pytest-structlog · prettyprinter · django-structlog · macwinnie-enhanced-logging · opentelemetry-instrumentation-structlog · python-json-logger · gdbmongo