Pin databases, tables, and other items to the Datasette homepage
Project description
datasette-pins
Pin databases, tables, queries, and more to the Datasette homepage!
Installation
datasette-pins
requires a recent 1.0 alpha version of Datasette to work.
pip install datasette>=1.0a13
Afterwards, install this plugin in the same environment as Datasette.
datasette install datasette-pins
Usage
datasette-pins
has two permissions datasette-pins-write
and
datasette-pins-read
. Actors with the datasette-pins-write
permissions can
pin and reorder items, while actors with datasette-pins-read
permissions can
only view pinned items.
Here's an example
datasette.yaml
file
where all actors can view pins, but only the root
actor can pin items:
permissions:
datasette-pins-read:
id: "*"
unauthenticated: true
datasette-pins-write:
id: "root"
Once logged in, the root
use will see new pin/unpin option under the database,
table, and query actions menu:
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-pins
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for datasette_pins-0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e9d9cfdf8a490b39b103e43be81bff214117166191b4d91d40c0f3148193440 |
|
MD5 | 59317cbefb3a9a7d08fc53a9403953a6 |
|
BLAKE2b-256 | 6cdce6e49d0cc410b18302aade09421e66a4220342535b4b539c8e8812897932 |