django-plugin-datasette
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_plugin_datasette-0.2.tar.gz | 7.5 kB | Without provenance | Details for django_plugin_datasette-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_plugin_datasette-0.2-py3-none-any.whl | Python 3 | none | any | Details for django_plugin_datasette-0.2-py3-none-any.whl |
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
|
Security for django-plugin-datasette 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.