Skip to main content

django-plugin-datasette

PyPI Changelog Tests License

Run Datasette inside Django as a DJP plugin

Installation

First configure your Django project to use DJP. Be sure to configure your asgi.py file.

Then install this plugin in the same environment as your Django application.

pip install django-plugin-datasette

Usage

Once installed, /-/datasette/ will serve a Datasette instance that exposes the contents of any SQLite databases used by Django.

You will need to run Django using ASGI. One way to do that is with Uvicorn:

pip install uvicorn
uvicorn myproject.asgi:application

Warning: This will expose your entire Django database to anyone who visits /-/datasette/. The auth_user.password field is automatically redacted, but you should still take care that this does not expose any other sensitive information.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd django-plugin-datasette
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

Release files for django-plugin-datasette 0.2

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-plugin-datasette 0.2
File Size Uploaded
django_plugin_datasette-0.2.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-plugin-datasette 0.2
File Interpreter ABI Platform
django_plugin_datasette-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / django_plugin_datasette-0.2.tar.gz

Download URL django_plugin_datasette-0.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b31d6a568408fa32c3dfdb044ade956061ca3afa05212de60aac105992d2cfb1
BLAKE2b-256 checksum
How to use checksums
c6e5ded9b4217522816093d86d2d0224b76352e8020278acf97c93dfe5eecf90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / django_plugin_datasette-0.2-py3-none-any.whl

Download URL django_plugin_datasette-0.2-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e747be9381372a5fcaa9b5cfa0b7600d8b0bf61b302a4e0f010aca8ddad7e3b
BLAKE2b-256 checksum
How to use checksums
0fc370777e357ee96cafe3bf02dbfe4e32e2a3e85937f4648e0710b017fc4d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

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