gps_tracker package
Subpackages
- gps_tracker.client package
- Submodules
- gps_tracker.client.asynchronous module
- gps_tracker.client.config module
- gps_tracker.client.datatypes module
AndroidDeviceIphoneTrackerTracker01Tracker03Tracker04TrackerConfigTrackerConfig.board_nameTrackerConfig.colorTrackerConfig.firmware_pathTrackerConfig.iconTrackerConfig.imageTrackerConfig.modeTrackerConfig.networkTrackerConfig.network_configTrackerConfig.network_regionTrackerConfig.notify_long_walkTrackerConfig.notify_positionTrackerConfig.usageTrackerConfig.weight
TrackerDataTrackerIconTrackerIcon.ANIMALTrackerIcon.ANTENNATrackerIcon.BACKHOE_LOADERTrackerIcon.BACKPACKTrackerIcon.BEEHIVETrackerIcon.BIKETrackerIcon.BOATTrackerIcon.BRIEFCASETrackerIcon.CARTrackerIcon.CARAVANTrackerIcon.CARPARKTrackerIcon.CARTTrackerIcon.CATTrackerIcon.DOGTrackerIcon.EBIKETrackerIcon.GIRLTrackerIcon.HANDBAGTrackerIcon.HEALTHTrackerIcon.HELICOPTERTrackerIcon.KAYAKTrackerIcon.KEYSTrackerIcon.LAPTOPTrackerIcon.MANTrackerIcon.MOTOTrackerIcon.OTHERTrackerIcon.PERSONTrackerIcon.PHONETrackerIcon.PLANETrackerIcon.SCOOTERTrackerIcon.SUITCASETrackerIcon.TENTTrackerIcon.TRACTORTrackerIcon.TRUCKTrackerIcon.TVTrackerIcon.UNKNOWNTrackerIcon.WASHERTrackerIcon.WOMANTrackerIcon.from_value()
TrackerMethodTrackerMethod.BLE_NEIGHBORTrackerMethod.BSSIDTrackerMethod.BSSID2TrackerMethod.BSSID3TrackerMethod.BSSID4TrackerMethod.BSSID_TGUTrackerMethod.FLEET_CORRECTIONTrackerMethod.GPSTrackerMethod.GPS_BLETrackerMethod.NETWORKTrackerMethod.PHONETrackerMethod.PHONE2TrackerMethod.PLACETrackerMethod.SERVERTrackerMethod.UBISCALETrackerMethod.UNKNOWN
TrackerModeTrackerMode.AIRPLANETrackerMode.CHILDTrackerMode.CHILD_PETTrackerMode.DAILYTrackerMode.DAILY_PETTrackerMode.INTENSETrackerMode.INTENSE_PETTrackerMode.KEEP_ALIVETrackerMode.LOSTTrackerMode.LOST_PETTrackerMode.LOST_PET_DEBUGTrackerMode.LWT3TrackerMode.UNKNOWNTrackerMode.VEHICLE_S1TrackerMode.VEHICLE_S2TrackerMode.VEHICLE_S3TrackerMode.from_value()
TrackerStatusTrackerStatus.batteryTrackerStatus.begin_dateTrackerStatus.last_eventTrackerStatus.last_loc_latitudeTrackerStatus.last_loc_longitudeTrackerStatus.last_locationTrackerStatus.lost_pendingTrackerStatus.network_operatorTrackerStatus.stateTrackerStatus.stationaryTrackerStatus.sub_end_dateTrackerStatus.sub_state
TrackerUsageUserform()
- gps_tracker.client.exceptions module
- gps_tracker.client.synchronous module
- gps_tracker.client.url_provider module
- Module contents
Module contents
Unofficial client to retrieve location data from Invoxia™ GPS trackers.
- class gps_tracker.AsyncClient(config: Config, session: aiohttp.ClientSession | None = None)[source]
Bases:
objectAsynchronous client for Invoxia API.
- classmethod get_auth(config: Config) aiohttp.BasicAuth[source]
Form the authentication instance associated to a config.
- async get_devices(kind: str | None = None) List[Device][source]
Return devices associated to credentials.
By default, all devices (included associated smartphones) are returned. The kind parameter allows to filter only devices of a given type (‘android’, ‘iphone’ or ‘tracker’).
- async get_locations(device: Tracker, not_before: datetime | None = None, not_after: datetime | None = None, max_count: int = 20) List[TrackerData][source]
Extract the list of tracker locations.
- Parameters:
device (Tracker) – The tracker instance whose locations must be extracted.
not_before (datetime.datetime, optional) – Minimum date-time of the locations to extract.
not_after (datetime.datetime, optional) – Maximum date-time of the locations to extract.
max_count (int, optional) – Maximum count of position to extract. Note that one API query yields 20 locations.
- Returns:
List of extracted locations
- Return type:
List[TrackerData]
- async get_tracker_config(device: Tracker) TrackerConfig[source]
Get the current configuration of a given tracker.
- Parameters:
device (Tracker) – The tracker instance whose configuration is queried.
- Returns:
Current config of the tracker
- Return type:
- async get_tracker_status(device: Tracker) TrackerStatus[source]
Get the current status of a given tracker.
- Parameters:
device (Tracker) – The tracker instance whose status is queried.
- Returns:
Current status of the tracker
- Return type:
- async get_trackers() List[Tracker][source]
Query API for the list of trackers associated to credentials.
- Returns:
Tracker devices associated to current account
- Return type:
List[Tracker]
- async get_users() List[User][source]
Return all users associated to credentials.
The API definition seems to indicate that multiple users can be associated to a single account (probably for pro subscriptions). For public consumers, this methods will return a single user.
- Returns:
List of User instances associated to account
- Return type:
List[User]
- class gps_tracker.Client(config: Config)[source]
Bases:
objectSynchronous client for Invoxia API.
- get_devices(kind: str | None = None) List[Device][source]
Return devices associated to credentials.
By default, all devices (included associated smartphones) are returned. The kind parameter allows to filter only devices of a given type (‘android’, ‘iphone’ or ‘tracker’).
- get_locations(device: Tracker, not_before: datetime | None = None, not_after: datetime | None = None, max_count: int = 20) List[TrackerData][source]
Extract the list of tracker locations.
- Parameters:
device (Tracker) – The tracker instance whose locations must be extracted.
not_before (datetime.datetime, optional) – Minimum date-time of the locations to extract.
not_after (datetime.datetime, optional) – Maximum date-time of the locations to extract.
max_count (int, optional) – Maximum count of position to extract. Note that one API query yields 20 locations.
- Returns:
List of extracted locations
- Return type:
List[TrackerData]
- get_tracker_config(device: Tracker) TrackerConfig[source]
Get the current configuration of a given tracker.
- Parameters:
device (Tracker) – The tracker instance whose configuration is queried.
- Returns:
Current config of the tracker
- Return type:
- get_tracker_status(device: Tracker) TrackerStatus[source]
Get the current status of a given tracker.
- Parameters:
device (Tracker) – The tracker instance whose status is queried.
- Returns:
Current status of the tracker
- Return type:
- get_trackers() List[Tracker][source]
Query API for the list of trackers associated to credentials.
- Returns:
Tracker devices associated to current account
- Return type:
List[Tracker]
- get_users() List[User][source]
Return all users associated to credentials.
The API definition seems to indicate that multiple users can be associated to a single account (probably for pro subscriptions). For public consumers, this methods will return a single user.
- Returns:
List of User instances associated to account
- Return type:
List[User]
- class gps_tracker.Config(username: str, password: str, api_url: str = 'https://labs.invoxia.io')[source]
Bases:
objectConfiguration for API Clients.
- class gps_tracker.Device(id, created: str | None, name, version, *, timezone=None)[source]
Bases:
objectBase class for devices.
- class gps_tracker.Tracker(id, created: str | None, name, version, *, timezone=None)[source]
Bases:
DeviceBase class for trackers.