Skip to main content

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"
        }
    }
}

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

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)

Source distribution for datasette-homepage-table 0.2
File Size Uploaded
datasette-homepage-table-0.2.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-homepage-table 0.2
File Interpreter ABI Platform
datasette_homepage_table-0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page