pygments-djc
Pygments Lexers for django-components.
Installation
-
Install the package:
pip install pygments-djc
-
Add the lexers to your Pygments configuration by simply importing
pygments_djcimport pygments_djc
Lexers
DjangoComponentsPythonLexer
Code blocks: djc_py / djc_python
This is the same as Python3 Lexer, but also highlights nested JS / CSS / HTML code blocks within Component classes:
class MyComponent(Component):
template = """
<div>Hello World</div>
"""
The syntax highlight then looks like this:
Release notes
Read the Release Notes to see the latest features and fixes.
Development
Tests
To run tests, use:
pytest
Metadata
Release files for pygments-djc 1.1.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_djc-1.1.0.tar.gz | 5.1 kB | With provenance | Details for pygments_djc-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygments_djc-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pygments_djc-1.1.0-py3-none-any.whl |
Total release size: 10.2 kB
Release files / pygments_djc-1.1.0.tar.gz
| Download URL | pygments_djc-1.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
524e0710f7439dc03179374730f1998258527640a79b6e9d29f147edaf849c34
|
|
BLAKE2b-256 checksum How to use checksums |
2e673f35960a0e9fd9c2f3a6f1ece3b17a1d19788eae1c6366de5b79f9cfdffe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logRelease files / pygments_djc-1.1.0-py3-none-any.whl
| Download URL | pygments_djc-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86ef8de8ab4e1dc3664e68f597b0883e586b033c6eefe06edb160eb27bd35c7a
|
|
BLAKE2b-256 checksum How to use checksums |
de5a5a1b014f0a0cbb51209232421dc10e7e033b05c12218b1a6098a62d65d38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logSecurity for pygments-djc 1.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pygments_djc-1.1.0.tar.gz
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 Nov 18, 2026.
Transparency logA 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.