Django AskLens docs¶
Django AskLens is the Django implementation of the AskLens specification: a read-only semantic query contract over explicitly registered models, with optional Django REST Framework and MCP adapters.
Django AskLens was created by Revaz Zakalashvili (revaz.zakalashvili@gmail.com).
django-asklens==0.3.2 is the current published alpha. See the
immutable GitHub Release,
PyPI version record, and
Installation for exact public artifact identities. The
candidate preparation record is retained as
historical pre-publication evidence.
See it¶
See the 36-second browser showcase for the exact offline question,
scoped grouped result, successful empty result, and neutral denial. The capture
uses seeded synthetic data and the deterministic DummyProvider; it is not
live-LLM, arbitrary-language, customer-data, or production evidence.
Run it¶
- Try the current synthetic source demo locally—no API key
- Install an authenticated public artifact
- Core-only executable quickstart
The source demo keeps Django authentication, CSRF, the explicit catalog, current-request permissions, trusted row scope, and query limits active. Its configured offline questions match exact text only.
Integrate it¶
- Register host-owned models
- Configure providers
- Use the authenticated API
- Build a custom UI
- Bounded MCP quickstart and integration notes — public
0.3.2[mcp]extra, trusted context mapping, compact discovery, and safe row defaults
Package provenance¶
Important
django-asklens==0.3.2 is the current published alpha, not a stable or
production-certified release. Mutable source documentation and the synthetic
source demo may become newer than the immutable public wheel. Authenticate the
artifact you install and review the exact public hashes, tag/commit/tree,
Python/Django ranges, historical release evidence, and supported upgrade
origins in Installation. The immutable
v0.3.2 source snapshot,
GitHub Release,
and PyPI record establish the
public release; same-version local rebuilds are separate local evidence.
Security and operations¶
- Security checklist
- Multi-tenant security
- Production checklist
- Host throttling, audit, and observability controls
- Support lifecycle
- 0.3.x compatibility boundary
Guides and reference¶
- AskLens specification
- Core Python API
- Draft internal conformance corpus
- Evaluation fixtures
- Demo query ideas
- Example Django AskLens integration
- Synthetic performance baseline
Maintainer evidence¶
These internal and release-process records are useful for review, but are secondary to the runnable integration and safety guides above.
- Current Django AskLens surface
- 0.3.x maintenance roadmap
- Test coverage baseline and critical-boundary map
- Draft internal contract schemas
- Internal semantic decision index
- Internal metadata, result, and error leakage audit
- Issue #84 failure-mode and host-control matrix
- Release process and Trusted Publishing setup
- Static docs build and operator-only Pages activation
Current scope¶
AskLens is a read-only semantic query specification. Django AskLens is the first implementation. Callers supply an untrusted query-plan; the implementation resolves current identity, catalog, and row scope, compiles a read-only query, and returns typed result JSON. Optional DRF, MCP, admin, frontend, and provider adapters must use the same execution path.
AskLens does not execute LLM-generated SQL, mutate data, auto-expose Django models, send sample rows to providers, or require a frontend framework. See the AskLens specification.
