Skip to main content

Show a specific Datasette table on the homepage

Project description

datasette-homepage-table

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-homepage-table-0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

datasette_homepage_table-0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file datasette-homepage-table-0.1.tar.gz.

File metadata

File hashes

Hashes for datasette-homepage-table-0.1.tar.gz
Algorithm Hash digest
SHA256 bb8f822959fd36f0ae0f9a8401bbd4bab4fa110f639395cbd90f978803785c35
MD5 d0757151f90b3af32605d516e6765a00
BLAKE2b-256 c53d759960d4b6cf5db887fddedbcb52097a4845748fcd54ac0a7bc977788b6d

See more details on using hashes here.

File details

Details for the file datasette_homepage_table-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_homepage_table-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da79ac4e416e27c26cf3330ee76bf663348da66e154b86f864e172a83bd28c7e
MD5 992bbc2ea3463df7cd345b64380b82cf
BLAKE2b-256 d9b4b9765d13b6febc5516734ac13e33355e9c8d504920101ea05ccd74183475

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page