datasette-column-sum by datasette

12 downloads this week        Star

README source code

datasette-column-sum

PyPI Changelog Tests License

Sum the values in numeric Datasette columns

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-column-sum

Usage

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.

Development

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