Skip to main content

Django app for building dashboards using raw SQL queries

Project description

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

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-sql-dashboard-0.1a3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

django_sql_dashboard-0.1a3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file django-sql-dashboard-0.1a3.tar.gz.

File metadata

  • Download URL: django-sql-dashboard-0.1a3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-sql-dashboard-0.1a3.tar.gz
Algorithm Hash digest
SHA256 07060312ca394027f82f297c1e8d5299e53acbd60ef91c69791d25acff5eff39
MD5 6e5681279f267e1ca05b253c46f8355e
BLAKE2b-256 7407561c464125558c3d0ff235839740142183750a6bf691374e25526a820a1f

See more details on using hashes here.

File details

Details for the file django_sql_dashboard-0.1a3-py3-none-any.whl.

File metadata

  • Download URL: django_sql_dashboard-0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for django_sql_dashboard-0.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9002a3bc2abd14222cb26427219fd50de7532f5a86b0301e88ad5b632c69939
MD5 c008475b91936be65e52b03cf02c5d77
BLAKE2b-256 c7317c8c1532a552f07c84895bca28c4cf98f51426ae508315201f8809ed5f08

See more details on using hashes here.

Supported by

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