This repository was archived by the owner on Jul 19, 2023. It is now read-only.
Releases: deepnimma/py-tmio
Releases · deepnimma/py-tmio
py-trackmania.io v0.5.0-rc1
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
py-trackmania.io v0.4.6
v0.4.6
- Created 2 commands in
trackmania/config.py
to flush db and flush a specific key.
Full Changelog: v0.4.5...v0.4.6
py-trackmania.io v0.4.5
py-trackmania.io v0.4.4
py-trackmania.io v0.4.3
py-trackmania.io v0.4.2
py-trackmania.io v0.4.1
v0.4.1
- Add
typing-extensions
to documentation requirements - Only cache player data for 6 hours.
- Add Trophy 9 to
def score()
inPlayerTrophies
class.
Full Changelog: v0.4.0...v0.4.1
py-trackmania.io v0.4.0
v0.4.0
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.
- Rename
_TMIO
and_TMX
in docstrings toTMIO
andTMX
. - Fix some class type hints in docstrings.
- Fix docstring for
trophy_obj.score()
that was breaking the entire file. - Add
TrophyLeaderboardPlayer
totrophy.py __all__
. - 2 Basic Examples.
- Example to get player's cotd stats.
- Example to get data on the latest totd.
- Add "Accept" and "Content-Type" headers for API Request. Both set to "application/json".
- Add
RATELIMIT_RESET
field toconfig.Client
and fix bugs with Ratelimit monitoring. Fix #21. - Small Updates to Docstrings.
Full Changelog: v0.3.3...v0.4.0
py-trackmania.io v0.4.0b1
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.
py-trackmania.io v0.3.3
v0.3.3
- Fix
Player.__parse_zones
loop from not firing - Add required classes for
TMXMap
class - Add
trackmania.tmx
to the docs TMXMap.get(tmx_id)
command
Full Changelog: v0.3.2...v0.3.3