Declarative grid views for Django: Simple Table, AG-Grid helpers, KPI cards, ECharts, and an LLM-friendly GridViewSpec contract
Project description
Django Grid View
Declarative grid views for Django: Simple Table, AG-Grid helpers (HTMX-safe), KPI cards, ECharts charts, and an LLM-friendly GridViewSpec contract.
Full documentation: https://alpiua.github.io/django-grid-view/
Install
pip install django-grid-view
Quick start
# settings.py
INSTALLED_APPS = ["django_grid_view"]
# urls.py
urlpatterns = [path("", include("django_grid_view.urls"))]
from django_grid_view.tables import Column, SimpleTableConfig
config = SimpleTableConfig(
grid_id="demo",
columns=[Column(key="name", label="Name")],
data=[{"name": "Ada"}, {"name": "Bob"}],
)
{% load django_grid_view %}
{% render_simple_table config %}
Run python manage.py migrate django_grid_view if you use saved AG-Grid preferences.
Features
| Feature | Docs |
|---|---|
| Simple Table (sort, search, export) | Simple Table |
| AG-Grid + HTMX | AG-Grid integration |
| KPI + charts + unified artifact | Grid View artifacts |
| Python types (pyright/mypy) | Python types |
| Release notes | Changelog |
Development
Requires uv. The lockfile (uv.lock) pins all dev tools; CI uses uv sync --frozen --group dev.
uv sync --group dev
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run basedpyright --warnings src/django_grid_view tests
Docs site (MkDocs):
./scripts/docs_serve.sh
Or manually (always use uv run mkdocs, not a global install):
uv sync --group dev
uv run python scripts/build_llm_context.py
uv run mkdocs build --strict
uv run mkdocs serve
Without uv: pip install -e ".[dev]" then the same pytest / ruff / basedpyright commands.
LLM agents: full doc bundle → docs/llm/django-grid-view-llm-context.md (skill).
Release
Tag v* on main — CI publishes to PyPI via trusted publishing (environment: pypi).
Documentation: push to main runs .github/workflows/docs.yml (mkdocs build --strict → GitHub Pages). Enable Settings → Pages → GitHub Actions once per repository.
License
MIT — see LICENSE.
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_grid_view-1.0.0.tar.gz.
File metadata
- Download URL: django_grid_view-1.0.0.tar.gz
- Upload date:
- Size: 63.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe9c62a04440fb5a2be1dc907ebcaa0a665e209e3ac910038a9892046c253d3b
|
|
| MD5 |
533254c116c38f7a9f3cb8c1e0647f84
|
|
| BLAKE2b-256 |
22ea32608f07e7a1dd04b413953552a4f06b87be813da7eca01c827b6088d0a1
|
Provenance
The following attestation bundles were made for django_grid_view-1.0.0.tar.gz:
Publisher:
ci.yml on alpiua/django-grid-view
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_grid_view-1.0.0.tar.gz -
Subject digest:
fe9c62a04440fb5a2be1dc907ebcaa0a665e209e3ac910038a9892046c253d3b - Sigstore transparency entry: 1685424675
- Sigstore integration time:
-
Permalink:
alpiua/django-grid-view@7ec22b1c6d7491e47684f1f8a6adec4f87c43ee4 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/alpiua
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7ec22b1c6d7491e47684f1f8a6adec4f87c43ee4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_grid_view-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_grid_view-1.0.0-py3-none-any.whl
- Upload date:
- Size: 74.3 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 |
b6539d90cbec21e6737ce647e71291e4f178e52eabade254c73b6dc3d22863cd
|
|
| MD5 |
70fb868f1c02e1fa7f4eb4aa7198c6c0
|
|
| BLAKE2b-256 |
248ed1a571e8fe000cdf085715e17c6fc9b240e96113262ab03a2badedacb0dd
|
Provenance
The following attestation bundles were made for django_grid_view-1.0.0-py3-none-any.whl:
Publisher:
ci.yml on alpiua/django-grid-view
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_grid_view-1.0.0-py3-none-any.whl -
Subject digest:
b6539d90cbec21e6737ce647e71291e4f178e52eabade254c73b6dc3d22863cd - Sigstore transparency entry: 1685424733
- Sigstore integration time:
-
Permalink:
alpiua/django-grid-view@7ec22b1c6d7491e47684f1f8a6adec4f87c43ee4 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/alpiua
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7ec22b1c6d7491e47684f1f8a6adec4f87c43ee4 -
Trigger Event:
push
-
Statement type: