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"
}
}
}
Both keys are optional: if you omit database it will use the first attached database, and if you omit table it will use the first table in the database.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette-homepage-table-0.2.tar.gz.
File metadata
- Download URL: datasette-homepage-table-0.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a5b67e86f5cb73095d1f1125e2fc7d4bb4db6461427af9f6e00649990f5dd25
|
|
| MD5 |
29d71c7138ffadf940ba7517064ca884
|
|
| BLAKE2b-256 |
d3e73682a3abd0a77554bac52398705ab5be9222c8f5faa60d2d914d4cf86e33
|
File details
Details for the file datasette_homepage_table-0.2-py3-none-any.whl.
File metadata
- Download URL: datasette_homepage_table-0.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97adcbf4265ad3f171487183d71605ef3e36d206710c52867dedac8bf9135071
|
|
| MD5 |
52da0311af7175c5581b5fe93d9626b3
|
|
| BLAKE2b-256 |
5258d2b08cd8076274369ec4ab5d100de9f1307931d3ae387e3b2377b64b8946
|