pygments-git
Pygments lexers for Git output and files.
Installation
Use pip:
python -m pip install pygments-git
Python 3.7 to 3.11 supported.
Working on a Django project? Improve your skills with one of my books.
Usage
With the package installed, Pygments will autodiscover the below lexers.
When using Pygments directly, you can refer to them by name. Within Sphinx/docutils, you can refer to them in code-block directives:
.. code-block:: git-console
$ git log --oneline
82fbbd3 D'oh! Fix math proof
91e9879 Aye carumba! Grammar mistake
61c4c08 Cowabunga! Update bibliography
git-console
A lexer for displaying interactive shell sessions with Git. It calls out to BashLexer for highlighting commands on lines starting with a $ and DiffLexer for highlighting inline diffs.
Metadata
Release files for pygments-git 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygments_git-1.0.0.tar.gz | 6.0 kB | Without provenance | Details for pygments_git-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygments_git-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pygments_git-1.0.0-py3-none-any.whl |
Total release size: 10.4 kB
Release files / pygments_git-1.0.0.tar.gz
| Download URL | pygments_git-1.0.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43997864f34e32c140225b820c27d436f98db1e5f33d76a4874aac95bc96d864
|
|
BLAKE2b-256 checksum How to use checksums |
2c49c01649efef3740a4ad56cf40e3b65182cba444a8b203033908908a62ce8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pygments_git-1.0.0-py3-none-any.whl
| Download URL | pygments_git-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22775b2991ad03ef7bffba896433508b04d919acc055091890ed0bfd76ba00c3
|
|
BLAKE2b-256 checksum How to use checksums |
4946e646fadf7f6ce960b940ae2ec9526b9520f7c6f1475aeeb988ef7634b005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for pygments-git 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.