🦠A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
I have done changes in the app/data/init.py file. First I created root class called DataSource. In this class I have added some object references of following classes JhuLocationService, CSBSLocationService, NYTLocationService.
And when we call methed get of the DataSource, it will use appropriate reference and return accordingly.
I have done changes in the app/data/init.py file. First I created root class called
DataSource
. In this class I have added some object references of following classesJhuLocationService
,CSBSLocationService
,NYTLocationService
. And when we call methedget
of theDataSource
, it will use appropriate reference and return accordingly.