Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-sql-dashboard

PyPI Changelog License

Django app for building dashboards using raw SQL queries

Brings a useful subset of Datasette to Django.

Currently only works with PostgreSQL.

This is very early alpha. You should not yet trust this code, especially with regards to security. Do not run this in production (yet)!

Installation

Install this library using pip:

$ pip install django-sql-dashboard

Usage

Add "django_sql_dashboard" to your INSTALLED_APPS.

Add the following to your urls.py:

from django.urls import path
from django_sql_dashboard.views import dashboard, dashboard_index

urlpatterns = [
    path("dashboard/", dashboard_index, name="django_sql_dashboard-index"),
    path("dashboard/<slug>/", dashboard),
    # ...
]

Now visit /dashboard as a staff user to start trying out the dashboard.

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd django-sql-dashboard
python -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and tests:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for django-sql-dashboard 0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sql-dashboard 0.1a2
File Size Uploaded
django-sql-dashboard-0.1a2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sql-dashboard 0.1a2
File Interpreter ABI Platform
django_sql_dashboard-0.1a2-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / django-sql-dashboard-0.1a2.tar.gz

Download URL django-sql-dashboard-0.1a2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
215cc3c3f7fd6b84784efaeffeb6c3d7c382571a7055cd26d3c2d413e400769c
BLAKE2b-256 checksum
How to use checksums
173801b4500e9fbe0d69a7e13e158e4a366cf84a3b96b459b6d4f26fd7d503a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / django_sql_dashboard-0.1a2-py3-none-any.whl

Download URL django_sql_dashboard-0.1a2-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
733c147ebd06c257cd37d03648cb186d43129cc5d332ad61f034017ac0a66ef3
BLAKE2b-256 checksum
How to use checksums
01d1f2d272556bd2b8936d5e66b08e2981cb7b267a69163de19a7a3f4169be49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

1.2

2 release files

1.1

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.16

2 release files

0.15

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

This release

0.1a2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page