Django utilities to expose agent-friendly markdown and llms.txt indexes
Project description
Django For Agents
django-for-agents helps Django projects expose agent-friendly content:
- Markdown responses via HTTP content negotiation (
Accept: text/markdown). - Optional debug toggle (
?for_agents=1) in development. - Automatic
llms.txtendpoint generation from your URL configuration. - Frontmatter metadata and markdown whitespace normalization.
Supported Python versions: 3.12, 3.13, 3.14.
Install
uv add django-for-agents
Minimal setup
- Add the app to
INSTALLED_APPS. - Include
django_for_agents.urlsin your root URL config. - Inherit
ViewForAgentsfor pages you want agent-ready. - Create matching
.mdtemplates for markdown responses.
INSTALLED_APPS = [
# ...
"django_for_agents",
]
from django.urls import include, path
urlpatterns = [
# ...
path("", include("django_for_agents.urls")),
]
Documentation
- Full docs source:
docs/ - Read the Docs config:
.readthedocs.yaml
Main docs pages:
docs/installation.rstdocs/quickstart.rstdocs/settings.rstdocs/views.rstdocs/llms_txt.rstdocs/api.rst
Build and publish
uv build
uv publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_for_agents-0.0.1.tar.gz.
File metadata
- Download URL: django_for_agents-0.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c07518c9d14e6dd4ae49271f5d78a3147284c6a1807e1aafb53f4bd0fbaf1bd
|
|
| MD5 |
a6f21b5eb8121aa6ea6f8e741373479f
|
|
| BLAKE2b-256 |
5da1126483eaae17cba8b53c646fb386008a52f83435a4ffaa6e3525a48f284f
|
Provenance
The following attestation bundles were made for django_for_agents-0.0.1.tar.gz:
Publisher:
release.yml on eillarra/django-for-agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_for_agents-0.0.1.tar.gz -
Subject digest:
0c07518c9d14e6dd4ae49271f5d78a3147284c6a1807e1aafb53f4bd0fbaf1bd - Sigstore transparency entry: 2060218894
- Sigstore integration time:
-
Permalink:
eillarra/django-for-agents@9bc8e6e65e5f0191c79eba9cc045e8fe4ecabbee -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/eillarra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9bc8e6e65e5f0191c79eba9cc045e8fe4ecabbee -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_for_agents-0.0.1-py3-none-any.whl.
File metadata
- Download URL: django_for_agents-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e795d445590476ea47719a0780820c6b8f6b8a306cd99599ddcb1099a27e2e6
|
|
| MD5 |
01b8957fadd0490aab464024874d64f5
|
|
| BLAKE2b-256 |
4955ea0a28e2b4ce646b84a86d507ffab7869d91bab844b15061c6281eb7ee20
|
Provenance
The following attestation bundles were made for django_for_agents-0.0.1-py3-none-any.whl:
Publisher:
release.yml on eillarra/django-for-agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_for_agents-0.0.1-py3-none-any.whl -
Subject digest:
0e795d445590476ea47719a0780820c6b8f6b8a306cd99599ddcb1099a27e2e6 - Sigstore transparency entry: 2060218955
- Sigstore integration time:
-
Permalink:
eillarra/django-for-agents@9bc8e6e65e5f0191c79eba9cc045e8fe4ecabbee -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/eillarra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9bc8e6e65e5f0191c79eba9cc045e8fe4ecabbee -
Trigger Event:
push
-
Statement type: