$npx skillfedfor your agent

Pygments

Pygments is a syntax highlighting package written in Python.

Worth itPyPI UtilitiesReleased Mar 20261.3B downloads / moBSD-2-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pygments-2.20.0-py3-none-any.whl
v2.20.0 · released 2026-03-29 · Python >=3.9

Yes. Pygments is a top-100 PyPI package with no known vulnerabilities, zero runtime dependencies, permissive licensing, and active maintenance. It solves a well-defined problem with broad language support and multiple output formats. Install it if you need to display or transform source code.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • The package is actively maintained with recent commits and has been stable since its first release, supporting current Python versions 3.9 through 3.14.

License · maintenance · safety

BSD-2-Clause (permissive) — Pygments is licensed under BSD-2-Clause (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2026-03-29 (138 days) · last repo commit 2026-07-28 · 2,198 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,270,057,742 downloads/mo, #14 on PyPI

Verify before relying

pip install pygments

from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter

code = 'print("hello")'
result = highlight(code, PythonLexer(), HtmlFormatter())
  • Whether PIL/Pillow is required as an optional dependency for image format output
Same gist for agents: .md · .json

What it is and what it does

Pygments is a mature, widely-used syntax highlighter written in pure Python. It recognizes over 500 programming languages and text formats, then transforms source code into colorized output suitable for display in web pages, documents, terminals, or images. The package works both as a library and as a command-line tool for one-off highlighting tasks.

It has no required runtime dependencies, making installation and integration straightforward. The core strength is its extensive language support and multiple output formats—HTML for web embedding, LaTeX for PDF documents, ANSI sequences for terminal display, and image formats. It is actively maintained, supports Python 3.9 and newer, and has been in production since 2006.

Use it for

  • Embed syntax-highlighted code snippets in static site generators or documentation tools
  • Add color to source code displayed in web forums, issue trackers, or code review systems
  • Generate highlighted code blocks for PDF or LaTeX documents in technical publishing
  • Display colorized terminal output for CLI tools, REPLs, or log viewers
  • Prettify code in wikis or collaborative documentation platforms

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Pygments is a top-100 PyPI package with no known vulnerabilities, zero runtime dependencies, permissive licensing, and active maintenance. It solves a well-defined problem with broad language support and multiple output formats. Install it if you need to display or transform source code.

Install

pygments on PyPI

Before you install

Installation is straightforward with no runtime dependencies. The package is actively maintained with recent commits and has been stable since its first release, supporting current Python versions 3.9 through 3.14.

License in practice

Pygments is licensed under BSD-2-Clause (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install pygments

from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter

code = 'print("hello")'
result = highlight(code, PythonLexer(), HtmlFormatter())

Verify before relying

  • Whether PIL/Pillow is required as an optional dependency for image format output

Package facts

LicenseBSD-2-Clause permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 138 days since the last release
Last repo commit
First released
Downloads1,270,057,742 / month, #14 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 6 - MatureIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Text Processing :: FiltersTopic :: Utilities

Evidence: pygments-2.20.0-py3-none-any.whl

Tags

Capabilities
syntax highlightingcode colorizationsource code formattinglanguage lexerterminal code colorshtml code highlightingtext prettification
Topics
syntax-highlightingcode-formattingcli-tool
PyPI keywords
syntaxhighlighting

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 › “code colorization”

  • PygmentsPygments is a syntax highlighter that colorizes source code and text…
  • click-extraClick Extra is a wrapper around Click that adds configuration file…
  • coloredlogsAdds colored output to Python's standard logging module using ANSI…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also ipython-pygments-lexers · pygments-styles · fluent.pygments · ansible-pygments · jupyterlab-pygments · accessible-pygments · pygmars · types-Pygments · pyvim · pygount