Snapshots

class kismetdb.Snapshots(file_location)

This object covers snapshots stored in the Kismet DB.

The Keyword Arguments section below applies only to methods which support them (as noted below), not to object instantiation.

Parameters:

file_location (str) – Path to Kismet log file.

Keyword Arguments:
 
  • ts_sec_gt (str, datetime, or (secs, u_secs)) – Timestamp for starting query.
  • ts_sec_lt (str, datetime, or (secs, usecs)) – Timestamp for ending query.
  • lat_gt (str, float) – Bounding minimum latitude
  • lat_lt (str, float) – Bounding maximum latitude
  • lon_gt (str, float) – Bounding minimum longitude
  • lon_lt (str, float) – Bounding maximum longitude
  • snaptype (str) – Snapshot type
get_all(**kwargs)

Get all objects represented by this class from Kismet DB.

Keyword arguments are described above, near the beginning of the class documentation.

Returns:List of each json object from all rows returned from query.
Return type:list
get_meta(**kwargs)

Get metadata columns from DB, excluding bulk data columns.

Keyword arguments are described above, near the beginning of the class documentation.

Returns:List of each json object from all rows returned from query.
Return type:list
yield_all(**kwargs)

Get all objects represented by this class from Kismet DB.

Yields one row at a time. Keyword arguments are described above, near the beginning of the class documentation.

Yields:dict – Dict representing one row from query.
yield_meta(**kwargs)

Yield metadata from DB, excluding bulk data columns.

Yields one row at a time. Keyword arguments are described above, near the beginning of the class documentation.

Returns:Dict representing one row from query.
Return type:dict