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

Creational Design Pattern #127

Closed miguelccruz closed 2 years ago

miguelccruz commented 3 years ago

Used the Singleton pattern in order to reduce the number of global variables to one single instance. This helps to have better control of each object to have one state at a time. Singleton creates a single object that is used to shared throughout the whole code.