Skip to content

0.7.0

Compare
Choose a tag to compare
@apex2504 apex2504 released this 15 Apr 21:04
· 38 commits to master since this release

Moved all endpoints to v2, and changed more methods.

All methods involving getting yesterday's data and sorted data have been removed and replaced with kwargs in existing methods.

get_sorted_data() -> get_all_countries(sort='mode')
yesterday_all() -> all(yesterday=True)
yesterday_country(country) -> get_country_data(country, yesterday=True)

Supports yesterday kwarg only:

  • all(yesterday=True)
  • get_country_data(country, yesterday=True)
  • get_single_state(state, yesterday=True)
  • get_single_continent(continent, yesterday=True)

Supports both yesterday and sort kwargs:

  • get_all_countries(yesterday=True, sort='mode')
  • get_all_states(yesterday=True, sort='mode')
  • get_all_continents(yesterday=True, sort='mode')

New methods

  • get_all_continents(yesterday=True, sort='mode') - Get the stats for all continents. Returns List[ContinentStatistics]
  • get_single_continent(continent, yesterday=True) - Get the stats for a single continent. Returns a single ContinentStatistics