Releases: SharpBit/brawlstats
Releases · SharpBit/brawlstats
Event rotation, bug fixes, removing prevent_ratelimit and get_constants, and dropping Python <3.8 support
Event rotation, bug fixes, removing prevent_ratelimit and get_constants, and dropping Python <3.8 support
Latest
[4.2.0] - 10/8/24
Added
- Implemented an endpoint with
Client.get_event_rotation
which gets the events in the current rotation. - Added a method
Player.get_battle_logs
which directly gets the player's battle log.
Fixed
- Client actually uses session passed into parameters now instead of creating a new one anyways
UnexpectedError
now properly shows the returned text in the message- The
use_cache
parameter now works forget_brawlers
and the async client
Removed
- Removed the prevent_ratelimit option for the Client
- Dropped support for Python 3.5, 3.6, 3.7, and 3.8
- Removed
Client.get_constants
as the site that was hosting it is no longer running
Make the async client truly async, get_brawlers function
[4.0.4] - 7/22/20
Added
get_brawlers
function to get available brawlers
Changed
- Split
BaseBox
intoBaseBox
andBaseBoxList
for convenience
Bug fix for python 3.5
[4.0.3] - 4/17/20
Fixed
- Brawler leaderboards for Python 3.5
Alias for x3vs3_victories
[4.0.1] - 4/12/20
Added
- An alias for
Player.x3vs3_victories
calledteam_victories
Remove Brawl API client and switch to official API
[4.0.0] - 3/11/20
Added
reason
attribute forNotFoundError
Removed
- BrawlAPI client
Changed
Client.get_datetime
moved to utilsget_rankings
now requires all arguments to be keyword arguments
Fixed
- Brawler leaderboard now works
Revert a change in v3.0.3
[3.0.4] - 3/8/20
Changed
- Leaderboard functions reverted to one function for all types of leaderboards/rankings
Logic and performance fixes
[3.0.3] - 2/17/20
Added
invalid_chars
attribute forNotFoundError
when applicableurl
attribute for all errors that have requested a URLstr(error)
will return the message attribute of the error.
Changed
- The
error
attribute for all errors have been renamed tomessage
- For BrawlAPI:
get_leaderboard
split up intoget_player_leaderboard
,get_club_leaderboard
, andget_brawler_leaderboard
- For the official API:
get_rankings
split up intoget_player_rankings
,get_club_rankings
, andget_brawler_rankings
Fix a leaderboard bug
[3.0.2] - 12/22/19
Fixed
- A bug with brawler leaderboards for the BrawlAPI
Official API support
[3.0.0] - 9/22/19
Added
- Official API support (all endpoints implemented, all methods documented)
Forbidden
error raised when code 403 received- New terminology! "BrawlAPI" refers to the unofficial API while "OfficialAPI" refers to the official API
Changed (BREAKING)
- The unofficial API's client will now be accessed as
brawlstats.BrawlAPI
(frombrawlstats.Client
) - The unofficial API's models will now be accessed as
brawlstats.brawlapi.ModelName
- The official API's client will be accessed by
brawlstats.OfficialAPI
- The official API's models will be accessed by
brawlstats.officialapi.ModelName
get_leaderboard()
will now require "brawlers" for the ranking type and the actual brawler name passed through the brawler kwarg.get_leaderboard()
count
argument has been renamed tolimit
Fixed
- BrawlAPI
get_leaderboard
parameter documentation fixed - Arguments passed into functions that require player/club tags now properly get formatted correctly.