A package for interfacing with Life360
Project description
PyL360
This is a Python library to interact with Life360, primarily to read data.
Usage
pip install PyL360
Example to print out a list of all users and their current location in all your circles
from PyL360 import L360Client
if __name__ == '__main__':
client = L360Client(
username="sammy@gmail.com",
password="my-secure-password"
)
client.Authenticate()
circles = client.GetCircles().circles
for circle in circles:
for p in circle.GetDetails().members:
print("{} is at ({},{})".format(p.firstName, p.location.latitude, p.location.longitude))
Example to print out a list of all the places in all your circles along with their locations
from PyL360 import L360Client
client = L360Client(
username="sammy@gmail.com",
password="my-secure-password"
)
client.Authenticate()
circles = client.GetCircles().circles
for circle in circles:
for place in client.GetPlaces(circle.id).places:
print('{} is loacated at ({}, {})'.format(place.name, place.latitude, place.longitude))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyl360-0.1.5.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyl360-0.1.5.tar.gz.
File metadata
- Download URL: pyl360-0.1.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25c08c7ced5f5cadbe3b7071b93584809ef5bace70791f555e7231fd6e8e8e9c
|
|
| MD5 |
45cab0f0731147ccd65a693464d9c22c
|
|
| BLAKE2b-256 |
43e93974dcd2bdb331ff7fb5d95e5cce47378daae52e3d13f4b017f3a22c578e
|
File details
Details for the file PyL360-0.1.5-py3-none-any.whl.
File metadata
- Download URL: PyL360-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef08bf9c5463cde80fccbd3a6d42078599385df7d9a2352d62cf551bb3142ac4
|
|
| MD5 |
93b47b7c979456d061ef2409754b87f6
|
|
| BLAKE2b-256 |
632685f77be5753422f909b985814db9eff5360b0789f36690a712bca367f626
|