Skip to main content

Declarative grid views for Django: Simple Table, AG-Grid helpers, KPI cards, ECharts, and an LLM-friendly GridViewSpec contract

Project description

Django Grid View

PyPI CI Documentation

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


Download files

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

Source Distribution

django_grid_view-1.0.0.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

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

django_grid_view-1.0.0-py3-none-any.whl (74.3 kB view details)

Uploaded Python 3

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

Hashes for django_grid_view-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fe9c62a04440fb5a2be1dc907ebcaa0a665e209e3ac910038a9892046c253d3b
MD5 533254c116c38f7a9f3cb8c1e0647f84
BLAKE2b-256 22ea32608f07e7a1dd04b413953552a4f06b87be813da7eca01c827b6088d0a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_grid_view-1.0.0.tar.gz:

Publisher: ci.yml on alpiua/django-grid-view

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_grid_view-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_grid_view-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6539d90cbec21e6737ce647e71291e4f178e52eabade254c73b6dc3d22863cd
MD5 70fb868f1c02e1fa7f4eb4aa7198c6c0
BLAKE2b-256 248ed1a571e8fe000cdf085715e17c6fc9b240e96113262ab03a2badedacb0dd

See more details on using hashes here.

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

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