prologin.presenced package

Module contents

prologin.presenced.current_hostname() → str

Returns current machine hostname, without .prolo suffix.

prologin.presenced.is_prologin_uid(uid: int) → bool

Returns True if uid belongs to a user handled by Prologin.

prologin.presenced.is_prologin_user(user: Union[str, int]) → bool

Returns True if user (a username or a UID) is handled by Prologin.

Returns False if the user does not exist.