Skip to content

datasette/datasette-profiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datasette-profiles

PyPI Changelog Tests License

Editable user profile pages for Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-profiles

Usage

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.

Plugin hook

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.

Development

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published