epoptes.core package
Submodules
epoptes.core.logger module
epoptes.core.spawn_process module
epoptes.core.structs module
Classes for creating client and group objects.
-
class
epoptes.core.structs.Client(type_='', mac='', hostname='', alias='', users=None, hsystem='')[source]
An epoptes client.
-
add_user(username, realname, handle)[source]
Add a user in the users dict.
-
get_name()[source]
Return the alias of the client or the hostname if the alias is not
set, or if both are unset (offline clients) return the MAC address.
-
is_offline()[source]
Return True only if there is no system or session handle for this
client but there is a MAC address.
-
set_name(name)[source]
Set the client alias.
-
set_offline()[source]
Indicate that a client is now offline.
-
class
epoptes.core.structs.Group(name, members)[source]
A group of epoptes clients.
-
add_client(client, **props)[source]
Add a client to the group.
-
get_members()[source]
Return a list with all the clients that are members of the group.
-
get_property(client, prop)[source]
Return the value of the ‘prop’ property for client.
-
has_client(client)[source]
Check if a client is member of the group.
-
remove_client(client)[source]
Remove a client from the group.
-
set_properties(client, **props)[source]
Set x_pos, y_pos or size property for a client on the group.
epoptes.core.wol module
Module contents