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_rotationwhich gets the events in the current rotation. - Added a method
Player.get_battle_logswhich directly gets the player's battle log.
Fixed
- Client actually uses session passed into parameters now instead of creating a new one anyways
UnexpectedErrornow properly shows the returned text in the message- The
use_cacheparameter now works forget_brawlersand 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_constantsas 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_brawlersfunction to get available brawlers
Changed
- Split
BaseBoxintoBaseBoxandBaseBoxListfor 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_victoriescalledteam_victories
Remove Brawl API client and switch to official API
[4.0.0] - 3/11/20
Added
reasonattribute forNotFoundError
Removed
- BrawlAPI client
Changed
Client.get_datetimemoved to utilsget_rankingsnow 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_charsattribute forNotFoundErrorwhen applicableurlattribute for all errors that have requested a URLstr(error)will return the message attribute of the error.
Changed
- The
errorattribute for all errors have been renamed tomessage - For BrawlAPI:
get_leaderboardsplit up intoget_player_leaderboard,get_club_leaderboard, andget_brawler_leaderboard - For the official API:
get_rankingssplit 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)
Forbiddenerror 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()countargument has been renamed tolimit
Fixed
- BrawlAPI
get_leaderboardparameter documentation fixed - Arguments passed into functions that require player/club tags now properly get formatted correctly.