Skip to main content

A package for interfacing with Life360

Reason this release was yanked:

Outdated metadata

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


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.4.tar.gz (4.5 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.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pyl360-0.1.4.tar.gz.

File metadata

  • Download URL: pyl360-0.1.4.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

Hashes for pyl360-0.1.4.tar.gz
Algorithm Hash digest
SHA256 56a173f68e7c6c4162fece445963050a214c2cc8c3f899d7443d8ca6b6c7d710
MD5 bf02f0c35f92c27c5ba4cc777cb1a0a2
BLAKE2b-256 ac6f06f3063c62b58044fa710fe28cfd5c1806313277a11c6cc7fb9b1ba54a2f

See more details on using hashes here.

File details

Details for the file PyL360-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: PyL360-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for PyL360-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37ba14c91284b237eecfc66f6cc1a85886061a5d9f091b3e65b161c3350f24bf
MD5 06e06247f3150352d2a7c849a48f53bf
BLAKE2b-256 00d24e434fd82483089e2b2f256a5894b573ccd8f6ab7e31c37d9ceebe3db646

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