Skip to main content

A package for interfacing with Life360

Project description

PyL360 Static Badge

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


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.10.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyl360-0.1.10-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for pyl360-0.1.10.tar.gz
Algorithm Hash digest
SHA256 f3667e434fb60a1d310d6ec9dc8a179d41f9bec220bf7276321784f201f67b49
MD5 43a83c067d34db2d0ffe4b07f8886c63
BLAKE2b-256 132121a800731a1d59b22850544eaf0347d5a960353e60ffb38e847976e8fcee

See more details on using hashes here.

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

Hashes for pyl360-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b3af8adc052c80c8efb45f07b29e29d887ed6e9665a84b62c59cfc5d7644a976
MD5 5330c80e55eefd6d42ae2c00d6f8bfb2
BLAKE2b-256 86961ae39dee0ae7e027890d9481140c9c628b1246c85f8b2da8faeee9bdb9c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page