locationsharinglib package¶
Submodules¶
locationsharinglib.locationsharinglib module¶
Main code for locationsharinglib.
-
class
locationsharinglib.locationsharinglib.
Cookie
(domain: str, flag: bool, path: str, secure: bool, expiry: int, name: str, value: str = '', rest: List[T] = <factory>)[source]¶ Bases:
object
Models a cookie.
-
to_dict
()[source]¶ Returns the cookie as a dictionary.
Returns: The dictionary with the required values of the cookie Return type: cookie (dict)
-
value
= ''¶
-
-
class
locationsharinglib.locationsharinglib.
Person
(data)[source]¶ Bases:
object
A person sharing its location as coordinates.
-
accuracy
¶ The accuracy of the gps.
-
address
¶ The address as reported by google for the current location.
-
battery_level
¶ The battery level of the user’s device.
-
charging
¶ Whether or not the user’s device is charging.
-
country_code
¶ The location’s country code.
-
datetime
¶ A datetime representation of the location retrieval.
-
full_name
¶ The full name of the user as set in google.
-
id
¶ The internal google id of the account.
-
latitude
¶ The latitude of the person’s current location.
-
longitude
¶ The longitude of the person’s current location.
-
nickname
¶ The nickname as set in google.
-
picture_url
¶ The url of the person’s avatar.
-
timestamp
¶ The timestamp of the location retrieval.
-
locationsharinglib.locationsharinglibexceptions module¶
Custom exception code for locationsharinglib.
-
exception
locationsharinglib.locationsharinglibexceptions.
InvalidCookieFile
[source]¶ Bases:
Exception
The cookies file provided could not be parsed for cookies.