neat.models package¶
Module contents¶
Submodules¶
neat.models.record module¶
-
class
neat.models.record.
Record
(**kwargs)[source]¶ Bases:
neat.models._common.AbstractModel
A model representation of a record.
-
data
¶ The device’s raw data points.
-
device_name
¶ The human readable name of the device.
-
lat
¶ The latitude of the device.
-
lon
¶ The longitude of the device.
-
name
¶ The primary name of the device.
-
parsed
¶ The device’s parsed data points.
-
timestamp
¶ The record’s creation unix timestamp.
-
to_dict
() → dict[source]¶ Builds a serializable representation of the record.
Returns: A serializable representation of the record Return type: dict
-
ttl
¶ The record’s time to live in seconds.
-
type
¶ The type of the device.
-
-
class
neat.models.record.
RecordPoint
(**kwargs)[source]¶ Bases:
object
A record point representation.
Note
Not a subclass of
neat.models._common.AbstractModel
-
name
¶ The name of the record point.
-
number
¶ The number of the record point.
-
to_dict
() → dict[source]¶ Builds a serializable representation of the record point.
Returns: A serializable representation of the record point Return type: dict
-
unit
¶ The pint unit expression of the record point.
-
value
¶ The value of the record point.
-