Skip to main content

Covid19Dashboard


DESCRIPTION


Covid19Dashboard is a python project that provides a personalised dashboard to present current statistics and news articles for a user.


PREREQUISITES


Python Version >= 3.9

Installed Packages:

uk-covid19
flask
pytest

Use the Package Manager pip to install these modules.

pip install uk-covid19
pip install flask
pip install pytest

If modules are currently installed, pip will return a message in response to this, however modules can also be verified by executing line.

pip list

OR

pip show <MODULE_NAME>

This lists all currently installed packages and their version, as of the publishing of this package, versions for the prerequisite packages uk-covid19, flask, and pytest are so.

Versions as of 03/12/2021

uk-covid19  - 1.2.2
Flask       - 2.0.2
pytest      - 6.2.5

INSTALLATION


To install the Covid19Dashboard, the package can be installed using pip, similarly to the prerequisite modules necessary for the package to function.

pip install Covid19Dashboard_ah1062

USAGE


If the Package has been imported, the dashboard can be alternatively loaded by calling the run() function created in dashboard.py, as opposed to the execution of app.run() when the module is being run directly.

from Covid19Dashboard_ah1062 import dashboard
dashboard.run()

Once the dashboard is running, the local development server can be accessed by web browser, using the url 127.0.0.1:5000.

Testing

Functionality of the Package can be assessed via the use of pytest, or the calling of a pytest function from within dashboard.py

cd <path/to/package>
pytest

OR

from Covid19Dashboard_ah1062 import dashboard
dashboard.test_functions()

CONFIGURATION


There is a configuration file linked to the package, and is stored in the package directory available in site-packages following the installation. The configuration file is accessed throughout the package, most often via the get_user_details method in dashboard.py

The configuration file is written and stored in JSON format, the structure will be written below.

"config" "location" : str "location_type" : str "update_intervals" : list "invalid_articles" : list "display" --- : None "details" "news-api-key" : str


DETAILS


Developed by Alex Houghton, ah1062, for ECM1400 Programming.

MIT License, detailed in LICENSE File

Release files for Covid19Dashboard-ah1062 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Covid19Dashboard-ah1062 0.0.13
File Size Uploaded
Covid19Dashboard_ah1062-0.0.13.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Covid19Dashboard-ah1062 0.0.13
File Interpreter ABI Platform
Covid19Dashboard_ah1062-0.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 106.1 kB

Release files / Covid19Dashboard_ah1062-0.0.13.tar.gz

Download URL Covid19Dashboard_ah1062-0.0.13.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96ef90b543754009fb7468d9e0109ff167f35923e944addf2b43d326c946ee92
BLAKE2b-256 checksum
How to use checksums
9ffa176ddae5270f98f06d674491c6d2137429739f715a106ccc04e275a7f4d5
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.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / Covid19Dashboard_ah1062-0.0.13-py3-none-any.whl

Download URL Covid19Dashboard_ah1062-0.0.13-py3-none-any.whl
Size 94.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70b48326af68825b7fb2fbd11062900f046f6eb2b3b7f9763f32a8841f71611b
BLAKE2b-256 checksum
How to use checksums
74a8b1a4c0cf2180f1805ab3fd88296fe2495bc3c407fecfb50fa83f6a3a8073
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.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page