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 Aggregates expanded #77

Closed lotkin98 closed 3 years ago

lotkin98 commented 3 years ago

This is a follow up on my first pull request. As in the first pull request this project is functionally the same as the original. This version has the exact same classes as in my first pull request, using aggregation in the same way. However now getLocations, getLocationByCountryCode and getLocationById methods were added to the CaseLocation class. The methods are then used in CaseOccurence and then an instance of CaseOccurence is made in the main class and used in the respective methods of the main class. This is essentially just a more expanded version of my first pull request where now a lot more of the methods in the project take advantage of the encapsulation.