Datasources

class kismet_rest.Datasources(host_uri='http://127.0.0.1:2501', sessioncache_path='~/.pykismet_session', **kwargs)[source]

Datasources abstraction.

add(source)[source]

Add a new source to Kismet.

source is a standard source definition.

Requires valid login.

Returns:Success
Return type:bool
all(callback=None, callback_args=None)[source]

Yield all datasources, one at a time.

If callback is set, nothing will be returned.

Parameters:
  • callback – Callback function.
  • callback_args – Arguments for callback.
Yields:

dict – Datasource json, or None if callback is set.

interfaces(callback=None, callback_args=None)[source]

Yield all interfaces, one at a time.

If callback is set, nothing will be returned.

Parameters:
  • callback – Callback function.
  • callback_args – Arguments for callback.
Yields:

dict – Datasource json, or None if callback is set.

pause(source)[source]

Pause source.

Parameters:source (str) – UUID of source to pause.
Returns:Success
Return type:bool
resume(source)[source]

Resume paused source.

Parameters:source (str) – UUID of source to resume.
Returns:Success
Return type:bool
set_channel(uuid, channel)[source]

Return True if operation was successful, False otherwise.

Locks an data source to an 802.11 channel or frequency. Channel may be complex channel such as “6HT40+”.

Requires valid login.

set_hop(uuid)[source]

Configure a source for hopping.

Uses existing source hop / channel list / etc attributes.

Requires valid login

set_hop_channels(uuid, rate, channels)[source]

Set datasource hopping rate by UUID.

Configures a data source for hopping at ‘rate’ over a vector of channels.

Requires valid login

set_hop_rate(uuid, rate)[source]

Set the hop rate of a specific data source by UUID.

Configures the hopping rate of a data source, while not changing the channels used for hopping.

Requires valid login