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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1d1b56c40f31fb8afdfb9a6aec2b7b0bc409094a23d6b79faa8acddc1c9b42 |
|
MD5 | 55be9d24a27c89243b70cfde633dbae0 |
|
BLAKE2b-256 | f99e4b5039da422177b108315c91253df277451f8f34aacb79223483abb7a2d7 |