4. THE COVID19_STATS API
The API provides a much richer base of functionality than the CLI tools, although I have gotten very far by using them. The structure of the API consists of a singleton that contains all the GIS, full COVID-19 state of all counties in the US, and necessary configuration data. Fig. 4.1 describes the implementation flow of synthesizing COVID-19 summary data.
Subsequent subsections describe each of the main modules, with special emphasis given to COVID19Database
due to its integral role.
- 4.1. covid19_stats module
COVID19Database
COVID19Database.all_counties_nytimes_covid19_data()
COVID19Database.data_conus()
COVID19Database.data_msas_2019()
COVID19Database.data_nonconus_states_territories()
COVID19Database.data_states()
COVID19Database.fips_adj_2018()
COVID19Database.fips_countystate_dict()
COVID19Database.fips_data_2019()
COVID19Database.fips_dataframe_2019()
COVID19Database.fips_msas_2019()
COVID19Database.fips_popdict_2019()
COVID19Database.mapping_state_rname_conus()
COVID19Database.mapping_state_rname_nonconus()
get_stat_line()
- 4.2. covid19_stats.engine module
- 4.3. covid19_stats.engine.gis module
- 4.4. covid19_stats.engine.core module
- 4.5. covid19_stats.engine.viz module
- 4.6. covid19_stats.engine.viz2 module