ExpDev07 / coronavirus-tracker-api

🦠 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!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 320 forks source link

Creational Builder Pattern #471

Closed tharshi22 closed 3 years ago

tharshi22 commented 3 years ago

In this commit, I have added a creational pattern that is the builder design pattern for the location class in app/location/init.py. The location class seems to have many attributes involved in it, hence I thought having a builder class for this would be appropriate.