Editable user profile pages for Datasette
Install this plugin in the same environment as Datasette.
datasette install datasette-profiles
Adds the ability for users to view profiles and edit their profile, from options in the main application menu.
Stores data in the internal database, so Datasette needs to be run with the --internal internal.db
option.
This plugin adds a plugin hook: bottom_profile(datasette, request, profile_actor)
. Other plugins can use this to return HTML to be included at the bottom of the public user profile page - or return an async def
function that returns that HTML.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-profiles
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest