Skip to main content

citry-django-djc

Let citry-django read Django's syntax the way django-components does.

pip install citry-django[django-components]
from citry import Citry
from citry_django import CitryDjangoExtension
from citry_django_djc import tokenize

app = Citry(extensions=[CitryDjangoExtension(tokenizer=tokenize)])

Django's own lexer ends a tag at the first %}, even one inside a quoted argument. django-components replaces the tokenizer so a tag can carry template source as data:

{% component "code_block" code="{% if user %}Hi{% endif %}" %}{% endcomponent %}

citry-django claims byte ranges with whichever tokenizer it was given. Hand it this one and the two agree; without it they disagree on where that tag ends, and you get an error.

Metadata

Release files for citry-django-djc 0.2.2

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

Source distribution (sdist)

Source distribution for citry-django-djc 0.2.2
File Size Uploaded
citry_django_djc-0.2.2.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for citry-django-djc 0.2.2
File Interpreter ABI Platform
citry_django_djc-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / citry_django_djc-0.2.2.tar.gz

Download URL citry_django_djc-0.2.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c27b9940a73da1090e2032434af8f10f194ca79387dbf82ded30755b757ab119
BLAKE2b-256 checksum
How to use checksums
79d2cd9c9ecd48bdb2c4f49995c6a88a04a9a2f30cf2b8d467389f6f78990ae8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 11, 2026.

Transparency log

Release files / citry_django_djc-0.2.2-py3-none-any.whl

Download URL citry_django_djc-0.2.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae384e4e83dd5b11e3b0daf50b3ce7b560d21869cc11db5e6ac78b6a9dd43758
BLAKE2b-256 checksum
How to use checksums
410d7d63ae7fad0da1510acef7f7dc00be285c525022dd00ab20524750bfa846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.0

2 release files

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

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