This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
py-trackmania.io v0.4.0b1
Pre-release
Pre-release
v0.4.0b1
Breaking Changes
- Renamed many
.get()
functions to be more specific to the classes they belong to.
Other Changes
- Import
tmx.py
classes to__init__.py
- Add
__all__
attribute totmx.py
- Remove
trackmania.api
andtrackmania.constants
fromdocs/trackmania.rst
- Only store
player_name
,player_id
andplayer_club_tag
inLeaderboard
class. - Add a function to get the player of that specific leaderboard to
Leaderboard
class. - Add indent to
__init__.py
docstring. Player.search
returns a list even if there is only 1 player with the given username.- Removed unnecessary commented code in
Player._parse_player
. - Optimize
Player._parse_player
by removingif
statements and usingmy_dict.get(key)
instead. - Optimize all
class._from_dict()
by removingif
statements and usingmy_dict.get(key)
instead. - Change
list_ads
andget_ad
to classmethods. - Change build functions in
constants.py
to classmethods. - Cleanup
matchmaking.py
. - Create
__str__
forPlayerMatchmaking
. - Create
__str__
forPlayerTrophies
. - Removed docstrings for private functions
- Improve consistency across modules.
- Create
to_string
static function forPlayerZone
class. - Fix loop in
.load_more_leaderboard()
using the wrong variable. - Rename
rate_vote_average
variable torating_vote_average
. - Rename
embedded_items_size
variable toembedded_objects_size
. - Fix tags variable using incorrect dictionary key in
TMXMap._from_dict()
. - Add caching for
.load_more_leaderboard()
function. - Create new class for
TrophyLeaderboardPlayer
. - Update
PlayerTrophies.top()
to return a list of above class. - Use
strobj.join()
function forPlayerZone.to_string
to get rid of unnecessary extra commas. - Small Fixes in docstrings.