This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
py-trackmania.io v0.5.0-rc1
Pre-release
Pre-release
v0.5.0-rc1
- Use built-in types for Type Annotations. Replaced
typing.List
,typing.Dict
andtyping.Tuple
withlist
,dict
,tuple
. - Latest TOTD is now cached with
totd:latest
key. - Created a flag in
TOTD.get_totd()
for latest totd that is used by theTOTD.latest_totd()
command. - Fix date parsing by creating a single command for all date types on trackmania.io api.
- Create a unified variable to prevent repeated use of
suppress(ConnectionRefusedError, redis.exceptions.ConnectionError):
everywhere. - Create
get_from_cache
andset_in_cache
functions to make it easier for feature development. - Campaign Class
classmethod get_campaign()
Get a campaign with the campaign id and club id.classmethod current_season()
Gets the current ongoing official campaign.leaderboards()
Gets the leaderboard of the campaign.static official_campaigns()
Gets all the official campaigns.static popular_campaigns()
Gets all the non-official campaigns ranked by current popularity.club()
Gets the club the campaign belongs to.
- Club Class
classmethod get_club()
Gets a club with the given club id.creator()
Gets the player object of the creator of the club.get_activities()
Gets all the activities of the club.get_members()
Gets all the members of the club.static list_clubs()
Lists all the popular clubs.
- Room Class
classmethod get_room()
Gets the room using the room id and club id.static popular_rooms()
Gets all the popular rooms.club()
Gets the club the room belongs to.
- Add
trackmania.campaign.py
,trackmania.club.py
andtrackmania.room.py
to documentation. - Create base objects for all classes in the module.
.top_matchmaking()
now returns a list ofMatchmakingLeaderboard
class.- Add
typing_extensions
to requirements. This will be removed onceSelf
is added to python 3.11 - Random map function in class
TMXMap
. - Add
map_name
parameter toTMXMap
. - Remove
login
fromPlayer
docstring. - Updated
redis
. - Updated
requirements-dev.txt
. Player.search
now never returns aNoneType
and instead returns an empty list.- Update
PlayerMatchmaking.history()
command to reflect changes in the api. - Rename
comments_count
tocomment_count
inTMXMapMetadata
docstring. - BUMP VERSION
Full Changelog: v0.4.6...v0.5.0-rc1