Skip to main content

A a simple personalised covid information dashboard.

Project description

Coronavirus dashboard application README

A simple dashboard to help being kept up to date with the local and national infection rates and news on government guidelines. The user can schedule repeated or single updates to news and/or covid data displayed. The user can also cancel updates these updates and remove news articles or click on a link to read more.

Installation Notes:

Python version 3.9.7 was used for development.

Please make sure the following modules are installed along with python3. And that your own API key is set in the config file.

  • json
  • logging
  • time
  • datetime
  • flask
  • uk_covid19
  • csv
  • sched
  • requests
  • pytest

Getting started tutorial:

Ensure the python code is running on your machine. Navigate to http://127.0.0.1:5000/index on a web browser and the interface should be displayed.

The dashboard is split into three columns. The left column is where all scheduled updates are displayed. The middle column displays local and national coronavirus statistics and at the bottom the form to submit new updates. The form will only allow an update to be scheduled if a label is entered and will only execute if a time is specified. The right column displays news articles containing covid keywords in the headline. There is also a hyper link to click to carry on reading the full article. The 'x' in the top right-hand corner will close the news article and it will not be re-displayed. Clicking this 'x' in the scheduled updates will consequently cancel that update.

Testing – How to test the code:

There is a log file which is automatically generated when the code is run. The log file will contain any errors and events that happend when the application is running. There is a 'tests' folder which contains three test files, one for each module. To run these tests, make sure pytest is installed then using comand prompt in the directory python package is type 'python -m pytest' and this will run the tests.

Developer notes:

There are three modules: application.py, covid_data_handler, covid_news_handling. Covid data and news articles are stored in two json files 'covid_data' and 'news_data'. If these json files are deleted or do not exist simply run update_covid() in the covid_data_handler module and update_news() in the covid_news_handling module to avoid errors trying to read from a file that doesn't exist. In the config file the national and local locations, language can also be adjusted. The html for the interface is stored in the templates folder and in the static folder the image and favicon are stored in the images and favicons folder respectively.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Cov19DashJacobBeeson-0.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Cov19DashJacobBeeson-0.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file Cov19DashJacobBeeson-0.0.1.tar.gz.

File metadata

  • Download URL: Cov19DashJacobBeeson-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for Cov19DashJacobBeeson-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e8e3f1cc390e35507100691552dc6aa8d701559a24e262b24eb62a82dda84e7a
MD5 72eecf3a60db9703f784ab7cab026838
BLAKE2b-256 09adcc1adc81d263fceff7733cd0ae350b066f08287eb7652fb3d5203942e257

See more details on using hashes here.

File details

Details for the file Cov19DashJacobBeeson-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Cov19DashJacobBeeson-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for Cov19DashJacobBeeson-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e7c89001caa513667d7d5f6591a3a61f9a63d79abe74d01ff1c8ec2c3461dac
MD5 ff30ec21be54f2afd1de3292fecb9b8e
BLAKE2b-256 0f185a28a22989e58301503154bd5c4718df00a55708eab7b678b35f356dbec9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page