A package for interfacing with Life360
Project description
PyL360 
This is a Python library to interact with Life360, primarily to read data.
Usage
First install the package by running 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:
if (p.location is not None):
print("{} is at ({},{})".format(p.firstName, p.location.latitude, p.location.longitude))
else:
print("{} cannot be located".format(p.firstName))
Example to print out a list of all the places in all your circles along with their locations
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 place in client.GetPlaces(circle.id).places:
if (p.location is not None):
print("{} is at ({},{})".format(p.firstName, p.location.latitude, p.location.longitude))
else:
print("{} cannot be located".format(p.firstName))
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
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.10.tar.gz.
File metadata
- Download URL: pyl360-0.1.10.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3667e434fb60a1d310d6ec9dc8a179d41f9bec220bf7276321784f201f67b49
|
|
| MD5 |
43a83c067d34db2d0ffe4b07f8886c63
|
|
| BLAKE2b-256 |
132121a800731a1d59b22850544eaf0347d5a960353e60ffb38e847976e8fcee
|
File details
Details for the file pyl360-0.1.10-py3-none-any.whl.
File metadata
- Download URL: pyl360-0.1.10-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3af8adc052c80c8efb45f07b29e29d887ed6e9665a84b62c59cfc5d7644a976
|
|
| MD5 |
5330c80e55eefd6d42ae2c00d6f8bfb2
|
|
| BLAKE2b-256 |
86961ae39dee0ae7e027890d9481140c9c628b1246c85f8b2da8faeee9bdb9c9
|