Skip to main content

pygments-djc

PyPI - Version PyPI - Python Version PyPI - License PyPI - Downloads GitHub Actions Workflow Status

Pygments Lexers for django-components.

Installation

  1. Install the package:

    pip install pygments-djc
    
  2. Add the lexers to your Pygments configuration by simply importing pygments_djc

    import 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:

Django Components Python Lexer Example

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)

Source distribution for pygments-djc 1.1.0
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)

Table of built distributions (wheels) for pygments-djc 1.1.0
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

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.

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