🦠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!
Add creational pattern by creating location factory
The changes are accomplished by creating a LocationFactory class and the get_location factory method. When a user calls the get_location method, we pass in the source string and the return value will be one of the LocationService object based on the source passed in.
Add creational pattern by creating location factory
The changes are accomplished by creating a
LocationFactory
class and theget_location
factory method. When a user calls theget_location
method, we pass in the source string and the return value will be one of theLocationService
object based on the source passed in.