Skip to main content

Django utilities to expose agent-friendly markdown and llms.txt indexes

Project description

Django For Agents

github-tests-badge github-mypy-badge codecov-badge pypi-badge pypi-versions license-badge

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.txt endpoint 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

  1. Add the app to INSTALLED_APPS.
  2. Include django_for_agents.urls in your root URL config.
  3. Inherit ViewForAgents for pages you want agent-ready.
  4. Create matching .md templates 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.rst
  • docs/quickstart.rst
  • docs/settings.rst
  • docs/views.rst
  • docs/llms_txt.rst
  • docs/api.rst

Build and publish

uv build
uv publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_for_agents-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_for_agents-0.0.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

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

Hashes for django_for_agents-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0c07518c9d14e6dd4ae49271f5d78a3147284c6a1807e1aafb53f4bd0fbaf1bd
MD5 a6f21b5eb8121aa6ea6f8e741373479f
BLAKE2b-256 5da1126483eaae17cba8b53c646fb386008a52f83435a4ffaa6e3525a48f284f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_for_agents-0.0.1.tar.gz:

Publisher: release.yml on eillarra/django-for-agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_for_agents-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_for_agents-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e795d445590476ea47719a0780820c6b8f6b8a306cd99599ddcb1099a27e2e6
MD5 01b8957fadd0490aab464024874d64f5
BLAKE2b-256 4955ea0a28e2b4ce646b84a86d507ffab7869d91bab844b15061c6281eb7ee20

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page