datasette-public
Make specific Datasette tables visible to the public
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-public
Usage
Any tables listed in the _public_tables table will be visible to the public, even if the rest of the Datasette instance does not allow anonymous access.
The root user (and any user with the new public-tables permission) will get a new option in the table action menu allowing them to toggle a table between public and private.
Installing this plugin also causes allow-sql permission checks to fall back to checking if the user has access to the entire database. This is to avoid users with access to a single public table being able to access data from other tables using the ?_where= query string parameter.
Configuration
This plugin creates a new table in one of your databases called _public_tables.
This table defaults to being created in the first database passed to Datasette.
To create it in a different named database, use this plugin configuration:
{
"plugins": {
"datasette-public": {
"database": "database_to_create_table_in"
}
}
}
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-public
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-public 0.2.3
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 |
|---|---|---|---|---|
| datasette-public-0.2.3.tar.gz | 9.7 kB | Without provenance | Details for datasette-public-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_public-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for datasette_public-0.2.3-py3-none-any.whl |
Total release size: 18.6 kB
Release files / datasette-public-0.2.3.tar.gz
| Download URL | datasette-public-0.2.3.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c138d82aeecc5f9107f75f118f16329d96e66ee733a1c2bb675185fa1442c89
|
|
BLAKE2b-256 checksum How to use checksums |
a2da0294a83be720bc8fb4d362d629055307a64edf5ac25365552019713f1358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / datasette_public-0.2.3-py3-none-any.whl
| Download URL | datasette_public-0.2.3-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a7c5b5612c7426b2dd25da56efdf42e96eb4e64e55dc7ea71944a30312648cc
|
|
BLAKE2b-256 checksum How to use checksums |
f65ac4c21bde6951d64f0ca06a8874f8d34e83abb8db86aad804c9cf9ca72ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Security for datasette-public 0.2.3
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.