Kamaropoulos / COVID19Py

A tiny Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data.
https://pypi.org/project/COVID19Py/
GNU General Public License v3.0
84 stars 57 forks source link

Covid19py facade #131

Closed lotkin98 closed 2 years ago

lotkin98 commented 3 years ago

This is functionally the same as the original, however with the facade structural pattern applied. Essentially the COVID19Data class abstracts the data gathering and the COVID19InfoTool class abstracts the filtering. These classes are controlled by the methods in the COVID19 class using the correct methods in COVID19Data class to gather the data and COVID19InfoTool to filter out and return the desired data. The singleton creational pattern is still applied here since there is no reason to create more than one instance of each class.