Skip to content

Commit 7274f96

Browse files
authored
Create baseurls.py
reason of creating a base_url cause it was assigned hardcoded in scripts and it is better to set hardcoded variables seperately in a class thus created a new baseurl
1 parent 1c7e4ae commit 7274f96

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/utils/baseurls.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import enum
2+
3+
class BaseUrl(str, enum.Enum):
4+
"""
5+
A base url available for retrieving data.
6+
"""
7+
8+
JHU = "https://raw.githubusercontent.com/CSSEGISandData/2019-nCoV/master/csse_covid_19_data/csse_covid_19_time_series/"
9+
CSBS = "https://facts.csbs.org/covid-19/covid19_county.csv"
10+
NYT = "https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv"

0 commit comments

Comments
 (0)