Statistics¶
Achievement¶
-
steampak.SteamAchievement¶ alias of
Achievement
-
class
steampak.libsteam.resources.stats.Achievement(name)¶ Exposes methods to get achievement data.
Aliased as
steampak.SteamAchievement.from steampak import SteamAchievement print(SteamAchievement('some_achievement_name').title)
Instances can be accessed through
api.apps.current.achievements():for ach_name, ach in api.apps.current.achievements(): print('%s (%s)' % (ach.title, ach_name))
-
clear(store=True)¶ Clears (locks) the achievement.
Return type: bool
-
description¶ Achievement description.
Return type: str
-
get_unlock_info()¶ Returns tuple of unlock data: (is_unlocked, unlocked_datetime).
Note
unlocked_datetime will be
Noneif achievement if unlocked before 2009-12-01.Return type: tuple[bool, datetime]
-
global_unlock_percent¶ Global achievement unlock percent.
Return type: float
Trueif achievement is hidden.Return type: bool
-
title¶ Achievement title.
Return type: str
-
unlock(store=True)¶ Unlocks the achievement.
Parameters: store (bool) – Whether to send data to server immediately (as to get overlay notification). Return type: bool
-
unlocked¶ Trueif achievement is unlocked.Return type: bool
-