ansible-pygments
Tools for building the Ansible Distribution
Decision gist · record as of 2026-08-14
Yes, if you use pygments-based tools to document or display Ansible output. It is actively maintained, has no security issues, and adds a single lightweight dependency. Not necessary if you do not use Pygments-integrated documentation or do not need Ansible-specific highlighting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low install friction with a single runtime dependency on pygments.
- Actively maintained with recent commits and no known vulnerabilities.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions.
last release 2025-07-05 (405 days) · last repo commit 2026-08-10 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 159,912 downloads/mo, #10,682 on PyPI
Alternatives
Verify before relying
pip install ansible-pygments pygments
import pygments
from pygments.lexers import get_lexer_by_name
lexer = get_lexer_by_name('ansible-output')- Whether the lexer handles all Ansible output formats (warnings, errors, variable dumps) beyond documented examples.
- Performance characteristics when highlighting large Ansible logs or output blocks.
- Full integration steps with documentation tools beyond the description excerpt provided.
What it is and what it does
ansible-pygments is a Pygments plugin that adds syntax highlighting support for Ansible command output and a matching color scheme. It registers a lexer named `ansible-output` that recognizes Ansible's structured output format and applies semantic coloring. The package is designed to integrate with any tool that uses Pygments for code highlighting.
You install it alongside pygments, then reference the `ansible-output` lexer by name in code blocks or use the `ansible` style in configuration. It depends only on pygments and supports Python 3.9 through 3.13.
Use it for
- Highlight Ansible playbook output examples in documentation with semantic color coding.
- Format Ansible command logs in technical runbooks for better readability.
- Style Ansible output in code snippets embedded in web pages or markdown rendered by pygments.
- Improve visibility of Ansible warnings and errors in generated operations documentation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use pygments-based tools to document or display Ansible output.
It is actively maintained, has no security issues, and adds a single lightweight dependency. Not necessary if you do not use Pygments-integrated documentation or do not need Ansible-specific highlighting.
Install
ansible-pygments on PyPI
Before you install
Low install friction with a single runtime dependency on pygments. Actively maintained with recent commits and no known vulnerabilities.
Requires Python 3.9 or later.
License in practice
BSD-2-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install ansible-pygments pygments
import pygments
from pygments.lexers import get_lexer_by_name
lexer = get_lexer_by_name('ansible-output')
Verify before relying
- Whether the lexer handles all Ansible output formats (warnings, errors, variable dumps) beyond documented examples.
- Performance characteristics when highlighting large Ansible logs or output blocks.
- Full integration steps with documentation tools beyond the description excerpt provided.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.9.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepygments |
| Maintenance | Actively maintained 405 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 159,912 / month, #10,682 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: ansible_pygments-0.1.2-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 › “ansible output syntax highlighting”
- ansible-pygmentsProvides a Pygments lexer and style for syntax-highlighting Ansible…
- PygmentsPygments is a syntax highlighter that colorizes source code and text…
- richRich renders styled text, tables, progress bars, syntax highlighting,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Documentation packages
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.
Griffe extracts the complete structure and signatures of Python programs to generate API documentation or detect breaking changes in your project's public API.
Install it if you need to programmatically inspect Python code structure, generate API docs, or enforce API stability in CI.
A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.
Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.
A Sphinx extension that generates HTML help files from reStructuredText documentation source.
See also ipython-pygments-lexers · pygments-styles · Pygments · fluent.pygments · accessible-pygments · antsibull-docs · rich-argparse · jupyterlab-pygments · antsibull-docs-parser · pygmars