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:
			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

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:
            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.6.tar.gz (4.6 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.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyl360-0.1.6.tar.gz
  • Upload date:
  • Size: 4.6 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.6.tar.gz
Algorithm Hash digest
SHA256 a88e92f41d4ad3e49472d64b5774824592ead3a60914f22a307fd4d7a796c5f9
MD5 0c56abaa343a0443d02e55afa6ae72a4
BLAKE2b-256 4f37090693ad5c7177a48d569cdcf2d9ec0b88ef40ddba5e9561f5217f23c08f

See more details on using hashes here.

File details

Details for the file pyl360-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pyl360-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bfda8c811d6778a962016658250f3e34fcc9788766e38fcf58462dcb6fdaed11
MD5 59e8d65d3622138ec8d1f92599484ab9
BLAKE2b-256 b5ef21ebebf4b4a94947316f057c58772aaef7cf81f4109b1e483c4423ef9b62

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