Friends

class steampak.libsteam.resources.friends.Friends

Exposes methods to get friends related data.

Interface can be accessed through api.friends():

for user in api.friends():
    print(user.name)
get_count(flt=65535)

Returns a number of current user friends, who meet a given criteria (filter).

Parameters:flt (int) – Filter value from FriendFilter. Filters can be combined with |. Defaults to FriendFilter.ALL.
Return type:int
tags = <steampak.libsteam.resources.friends.FriendTags object>

Interface to friend tags (categories).

for tag in api.friends.tags():
    print(tag.name)

Friend Tag

class steampak.libsteam.resources.friends.FriendTag(tag_id)

Exposes methods to get friend tag data.

Interface can be accessed through api.friends.tags():

for tag in api.friends.tags():
    print(tag.name)
name

Name of a friend tag, or None on error.

Return type:str

Friend Filter

class steampak.libsteam.resources.base.FriendFilter

Filters to be provided to functions returning friends. Can be combined using |.

ALL = 65535
BLOCKED = 1
CLAN_MEMBER = 8
FRIENDSHIP_REQUESTED = 2
FRIEND_OF_FRIEND = 64
HAS_PLAYED_WITH = 32
IGNORED = 512
IGNORED_FRIEND = 1024
IMMEDIATE = 4
NONE = 0
ON_GAME_SERVER = 16
REQUESTING_FRIENDSHIP = 128
REQUESTING_INFO = 256
SUGGESTED = 2048