datasette-column-sum by datasette
19 downloads this week Star
README source code
Sum the values in numeric Datasette columns
Install this plugin in the same environment as Datasette.
datasette install datasette-column-sum
Numeric columns (float and integer) will have a new "Sum this column" menu item in their column action menu (accessible via the cog icon).
Text columns get options to calculate sums for those numeric columns grouped by the text column.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-column-sum
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest