datasette-enrichments by datasette

95 downloads this week        Star

README source code

datasette-enrichments

PyPI Changelog Tests License

Tools for running enrichments against data stored in Datasette

Potential use-cases for enrichments include:

  • Geocoding an address and populating a latitude and longitude column
  • Executing a template to generate output based on the values in each row
  • Fetching data from a URL and populating a column with the result
  • Executing OCR against a linked image or PDF file

Documentation for this plugin lives at enrichments.datasette.io.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-enrichments
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest