Releases: Dmitrii-I/sportmonks
Releases · Dmitrii-I/sportmonks
1.2.0 (2020-05-24)
- Add
SoccerApiV2.aggregated_top_scorers()
method. This method returns top scorers for aggregated over all stages of a season. TheSoccerApiV2.top_scorers()
method returns top scorers broken down by each stage of the season which is inconvenient if you don't care about the season's stages.
1.1.2 (2020-04-12)
- Fix bug where
tzlocal
was missing in theinstall_requires
ofsetup.py
. As a result you could installsportmonks
but not run it. The bug did not resurface during tests becausetzlocal
was actually specified in therequirements-tests.txt
.
1.1.1
1.1.0 (2019-11-05)
- Add parameter
includes
toSoccerApiV2.player
method.
1.0.0 (2018-12-01)
- Stop caching methods. As such caching has been removed from
SoccerApiV2.bookmaker
,SoccerApiV2.continent
,SoccerApiV2.country
,SoccerApiV2.league
. Caching can still be done by callers with thefunctools.lru_cache
decorator. - Fix bug in
SoccerApiV2.fixtures
andSoccerApiV2.fixtures_today
. When parameterleague_ids
was specified and the resulting response contained more than 100 fixtures, then the fixtures beyond the first 100 contained also fixtures not belonging to the specifiedleague_ids
. - Parameter
include
has been renamed toincludes
. This name is better because it can contain zero or more includes, not zero or one. - Accept any iterable in the
includes
parameter, not just tuples. Lists, sets, and other iterables with a__getitem__
magic method will work. Strings, even though iterables, are converted to a one-element list. This allows also to pass single include lazily asincludes='continent'
, instead ofincludes=['continent']
. In fact this could also be considered as a bug fix, because in previous versions the strings were accepted too, but were passed as single character includes and SportMonks API was not raising any error. - Remove API token from logs for better security. Note, that the API token will still appear unedited in logs of
requests
andurllib3
packages. - The API client attributes
base_params
andbase_headers
are now private (i.e. renamed to_base_params
and_base_headers
.
0.1.2 (2018-08-26)
- Fix bug in
SoccerApiV2.season_results()
default value. Default value must an empty tuple notNone
. - Stop caching
SoccerApiV2.season()
method. Whenseason()
was called and the cache was empty, a call toseasons()
was made to populate the cache. This proved to be too slow to be useful.
0.1.1 (2018-06-30)
- Make
pip install sportmonks
work with Python version 3.5.2 or later instead of 3.5.3 or later. Python version 3.5.2 is popular because it is the default Python 3 on Ubuntu 16.
0.1.0 (2018-06-30)
- First version.