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
Metadata
Release files for datasette-homepage-table 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 |
|---|---|---|---|---|
| datasette-homepage-table-0.2.tar.gz | 7.2 kB | Without provenance | Details for datasette-homepage-table-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_homepage_table-0.2-py3-none-any.whl | Python 3 | none | any | Details for datasette_homepage_table-0.2-py3-none-any.whl |
Total release size: 14.3 kB
Release files / datasette-homepage-table-0.2.tar.gz
| Download URL | datasette-homepage-table-0.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a5b67e86f5cb73095d1f1125e2fc7d4bb4db6461427af9f6e00649990f5dd25
|
|
BLAKE2b-256 checksum How to use checksums |
d3e73682a3abd0a77554bac52398705ab5be9222c8f5faa60d2d914d4cf86e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / datasette_homepage_table-0.2-py3-none-any.whl
| Download URL | datasette_homepage_table-0.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97adcbf4265ad3f171487183d71605ef3e36d206710c52867dedac8bf9135071
|
|
BLAKE2b-256 checksum How to use checksums |
5258d2b08cd8076274369ec4ab5d100de9f1307931d3ae387e3b2377b64b8946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for datasette-homepage-table 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.