class suseapi.presence.Presence(hosts=None)
Parameters:hosts (list) – List of hosts to query

Class for querying (and caching) presence data. The optional hosts list can define which hosts will be used for querying presence database.

Parameters:person (string) – Username
Return type:list
Returns:List of absences

Returns list of absences for given person.

is_absent(person, when, threshold=0):
  • person (string) – Username
  • when (date) – Date
  • threshold (integer) – Threshold for presence check
Return type:


Checks whether person is absent on given date.

The optional threshold parameter can specify how long absences to ignore. For example setting it to 1 will ignore one day absences which would otherwise make the method return true.