Adds UI enhancements to Datasette
Project description
datasette-ui-extras
This plugin collects UI tweaks that people have proposed for Datasette.
Compared to core Datasette, this plugin is more willing:
- to use features that require more modern browsers
- to add features that require storing state (e.g., a visitor's preferences about how to view a table)
- to require JavaScript
- to release UI changes
I think these are generally reasonable tradeoffs -- as a plugin that users opt-in to, we have the luxury of being more aggressive in our minimum requirements and release cadence.
If Datasette makes a breaking change, the plugin may stop working. In that case, you can uninstall the plugin while waiting for a fix.
OK, that's enough disclaimers.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-ui-extras
Usage
TBD
Features
- facets are re-styled (inspired by datasette#1159)
- tables have a "sticky" header that remains visible as you scroll (similar to "Freeze Rows" in Google Sheets)
- pressing
/
focuses the search box on tables that have one
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-ui-extras
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
Hashes for datasette_ui_extras-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 866df2dade8468400744324d6b2f7308098e3a04db040e0d294d8521daa42c84 |
|
MD5 | 2de7ab9413d0c0df1ae4a1ba092cbf5e |
|
BLAKE2b-256 | d0f7aac55a8bfd58f1968218b1661cf4afbf9963273a60492c243dfc3d31ed0b |