Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments_shell_console-0.8.3.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments_shell_console-0.8.3-py2.py3-none-any.whl (20.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pygments_shell_console-0.8.3.tar.gz.

File metadata

  • Download URL: pygments_shell_console-0.8.3.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pygments_shell_console-0.8.3.tar.gz
Algorithm Hash digest
SHA256 b8ece4a7e0a4a1cb46ed9300f51791370fb9abd95dcf17f9b0c36b9169471b39
MD5 dec6365c92c22c3491f6ef8bcb715691
BLAKE2b-256 40daa9c413d513aa63754321c776ecd9ef4e76fdc7ca8415015dc28828cf3b5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygments_shell_console-0.8.3.tar.gz:

Publisher: publish-to-pypi.yml on joapuiib/pygments-shell-console

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pygments_shell_console-0.8.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pygments_shell_console-0.8.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c8fdf5f4694cae64f432406a67e4b87c4780af23b46c3d6ae4971370b773d13c
MD5 941883d709e1f883fe3c1e6cfd621fc5
BLAKE2b-256 9301154f3a611aef9f80f866f50d90148527db080c86cd138740cc7a5cbfc20b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygments_shell_console-0.8.3-py2.py3-none-any.whl:

Publisher: publish-to-pypi.yml on joapuiib/pygments-shell-console

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page