Skip to main content

Pygments Shell Console

Python PyPi

This Pygments plugin adds new lexers for shellconsole output.

The lexers are:

  • ShellConsoleLexer: Based in ShellSessionBaseLexer, extends its behavior to recognize the prompt elements and highlight them.

    Also, it adds support for highlighting the following commands output:

    • Uses DiffLexer to highlight diff and git diff output.
    • GitStatusLexer: Adds support for highlighting git status output.
    • GitShowLexer: Adds support for highlighting git show output.
    • GitLogLexer: Adds support for highlighting git log output.
    • GitPrettyLogLexer: Adds support for highlighting git log output, following the format:
      log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
      

Examples of the result can be found here.

Metadata

Release files for pygments-shell-console 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygments-shell-console 0.8.3
File Size Uploaded
pygments_shell_console-0.8.3.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygments-shell-console 0.8.3
File Interpreter ABI Platform
pygments_shell_console-0.8.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 31.8 kB

Release files / pygments_shell_console-0.8.3.tar.gz

Download URL pygments_shell_console-0.8.3.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b8ece4a7e0a4a1cb46ed9300f51791370fb9abd95dcf17f9b0c36b9169471b39
BLAKE2b-256 checksum
How to use checksums
40daa9c413d513aa63754321c776ecd9ef4e76fdc7ca8415015dc28828cf3b5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

Release files / pygments_shell_console-0.8.3-py2.py3-none-any.whl

Download URL pygments_shell_console-0.8.3-py2.py3-none-any.whl
Size 20.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c8fdf5f4694cae64f432406a67e4b87c4780af23b46c3d6ae4971370b773d13c
BLAKE2b-256 checksum
How to use checksums
9301154f3a611aef9f80f866f50d90148527db080c86cd138740cc7a5cbfc20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4

2 release files

0.3

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page