A Covid Dashboard to show current news and data.
Project description
Covid-1 Dashboard Tom Sturgeon
Table of contents:
Introduction
Creates a locally hosted dashboard which displays information about Covid-19
It dashboard displays:
- The local 7 day infection rate
- The national 7 day infection rate
- The national hospital cases
- The national death count
- News articles collected from the Newsapi.org/ The dashboard allows for updates to be scheduled to refresh the data and the news articles
Prerequisites
To use the dashboard you need to have these modules:
- python 3.9.7
- Logging
- Json
- Flask
- Flask
- Render template
- Markup
- Sched
- Time
- Datetime
- Requests
- uk-covid19 (https://api.coronavirus.data.gov.uk/)
- News api ("https://newsapi.org/v2/everything")
- Pytest
Installing
pip install -i https://test.pypi.org/simple/ Covid-Dashboard-pkg-tsturgeon
Config File
In the config file there are many customisable fields to set and on necessary field
The necessary is the API key for the news api, to get a key register for one at newsapi.org and then copy the key into the config file
The customisable key can change:
- The title
- The locations
- The location type
- The images
- The news search terms
- The logging file
- The Static data file
Running
Set the config file to what you desire.
Navigate to where the package has been installed and run the module in the terminal
Open a web browser and heat to 127.0.0.1:/5000/index (The link will also be in the logging file)
From this page you can:\
- Schedule updates using the form in the lower middle of the page
- Remove updates and news articles
- Read the current statistics
Testing
To test the modules it uses Pytest.
To run the test navigate to the package in the terminal and run pytest
Documentation
For the documentation go to https://github.com/Sturgeon2962/coursework/
The documentation is located in coursework/docs/build/html/index.html
You can download it the launch it in a web browser to view the documentation
This goes into greater deatial about how to configure the code and run it
Details
Author: Tom Sturgeon
License: MIT License
Link to source files: https://github.com/Sturgeon2962/coursework/ \
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Covid-Dashboard-pkg-tsturgeon-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb34467f1f5cb7290aadf85aa256395f17cd6e251d96d76652eafc9f39adf284 |
|
MD5 | 526cb272a39d10e317331d25d2a4bf1f |
|
BLAKE2b-256 | c6ee844d8f204c9cb78354b4976574887e21a0dc1666323ba0b12ed19b6d3a8a |
Hashes for Covid_Dashboard_pkg_tsturgeon-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef296530508813c603f6c214afaac052673673045716d952d2347f9590913a88 |
|
MD5 | f92b52516957e74d7056e03d2624ca83 |
|
BLAKE2b-256 | e0cd0b89ab5c970f6eb0a53d54cd7bb365c6efca3cbf91c3aaf5dcf14a9283f6 |