Show a specific Datasette table on the homepage
Project description
datasette-homepage-table
Show a specific Datasette table on the homepage
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-homepage-table
Usage
This plugin changes the Datasette homepage to display a table instead of the default list of databases.
Without configuration, it will take the first table in the first attached database.
Alternatively you can configure it like this:
{
"plugins": {
"datasette-homepage-table": {
"database": "mydatabase",
"table": "mytable"
}
}
}
You can customize the table.html
template to change the appearance of the table.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-homepage-table
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
Close
Hashes for datasette-homepage-table-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb8f822959fd36f0ae0f9a8401bbd4bab4fa110f639395cbd90f978803785c35 |
|
MD5 | d0757151f90b3af32605d516e6765a00 |
|
BLAKE2b-256 | c53d759960d4b6cf5db887fddedbcb52097a4845748fcd54ac0a7bc977788b6d |
Close
Hashes for datasette_homepage_table-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da79ac4e416e27c26cf3330ee76bf663348da66e154b86f864e172a83bd28c7e |
|
MD5 | 992bbc2ea3463df7cd345b64380b82cf |
|
BLAKE2b-256 | d9b4b9765d13b6febc5516734ac13e33355e9c8d504920101ea05ccd74183475 |