Warwick Wrapped is a service to summarise Tabula data. It uses Warwick SSO and the Tabula API to fetch Tabula data.
It is hosted from a public container on Portainer.
Source: https://github.com/efbicief/warwick-wrapped
First, clone the git repo.
Use pipenv run flask run
to start the app. Python 3.10 is required. Make sure to create your own config.yaml
by modifying config/example_config.yaml
. Put it in config/config.yaml
. This config contains a number of fields:
config:
consumer_secret: "<some b64-encoded secret>"
consumer_key: "<some url>"
base_url: "<For local testing, use localhost:5000>"
Warwick ITS should give you the consumer_secret and consumer_key when signing up for OAuth.
The preferred method of deployment is via the Docker container. If you aren't using it, make sure to deploy using the gunicorn
web server, and not the flask dev server.
We use Github actions to create Docker images for Wrapped. You can find the latest package release here. Note that you should use your favourite container management software (portainer) to map a config file to app/config/config.yaml
.