Covid Dashboard
Introduction
This package generates a covid dashboard that displays covid data for the user according to the users requirements as entered in the config file.
Prerequisites
In order for the covid_dashboard to work, you must ensure that none of the files within the covid_dashboard folder are deleted. There are also some requirements for the modules and languages that you must have installed on your machine.
They are outlined below:
- sched
- time
- json
- uk_covid19
- requests
- flask
- logging
- python 3
Installation Instructions:
Simply install the package and you are good to go
Configuration Instructions:
There is a file called covid_dashboard_config.json which contains the configuration data for the covid dashboard. From there you will be able to change the locations for which the dashboard displays data and the search terms and language for the search results that the dashboard should display. You should also change the value api_key to whatever your covid_api key is.
Operation Instructions:
How to open:
You must first ensure that the code is running and must then open a browser and navigate to http://127.0.0.1:5000/index
The dashboard is split into three sections:
-
Middle Section:{"title":update_to_create["update_name"], "content":content, "repeat":(update_to_create["update_repeat"]), "covid_update":(update_to_create["covid_update"]), "news_update":(update_to_create["news_update"])} The middle section contains the covid information collected from the api about the area according to the config file. Below it is the updates area where you can create a new update. From here you will be able to specify whether you want the update to be a covid or news udpate (note can be both but not neither). You must specify a time for the update to happen and whether or not the update should repeat every day at the same time. The updates name must be unique and not be in the updates currently scheduled. The update name should also not contain any spaces (recomendation:use underscores as a replacement).
-
Left Section: The left section contains the updates that you have created. Each box contains the update information. You are able to cancel an update simply by clicking the close button at the top right of the box containing the update you wish to close.
-
Right Section: The right section contains the news articles that contain any of the keywords as specified in the config file. By clicking the hyperlick at the bottom of each box, you will be able to open the relevant news article. Similarly to the updates, you will be able to close news articles to remove them from your dashboard so as to load new news articles. You do this by clicking the close button at the top right of the box containing the news article to be remove.
Testing:
The code will automatically run a series of tests before executing the code.
File Manifest:
- .pytest_cache - a folder containing data from the pytest's cache plugin
- Covid_Dashboard_Source
- __pycache__ - contains docstrings
- static with a sub folder images
- covid.png
- favicon.ico
- templates
- index.html
- covid_dashboard_displayer.py
- covid_data_handler.py
- covid_news_handling.py
- nation_2021-10-28.csv
- test_covid_dashboard_displayer.py
- test_covid_data_handler.py
- test_covid_news_handling.py
- docs
- build
- doctrees - contains the doctrees used in the generation of the html pages
- html - contains the html files for the documentation
- source - contains all the rst files to make html pages
- make.bat
- Makefile
- build
- covid_dashboard_config.json
- covid_dashboard.log
- LICENSE.txt
- README.md
- setup.py
Metadata
Release files for Covid-Dashboard-Package-cw00d 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Covid_Dashboard_Package_cw00d-1.0.0.tar.gz | 3.1 kB | Without provenance | Details for Covid_Dashboard_Package_cw00d-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl |
Total release size: 6.8 kB
Release files / Covid_Dashboard_Package_cw00d-1.0.0.tar.gz
| Download URL | Covid_Dashboard_Package_cw00d-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a7e0c7b921942362c075ab63d69c6a39845997dda934e8b6369c69fc5631533
|
|
BLAKE2b-256 checksum How to use checksums |
4862822730ee732c86be782835ef9ebce4aabbf753bf047ba3766e6e16aaff78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
|
Release files / Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl
| Download URL | Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cdc9b89f261140bd01c337d0e1131b68c3b0ea3e373496cd5d2d0db584805aa
|
|
BLAKE2b-256 checksum How to use checksums |
4ad3c3d7a065de62b897d6e0e7e27812e5cff1c00bd019c716cbae390eec3a7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
|
Security for Covid-Dashboard-Package-cw00d 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.