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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyl360-0.1.7.tar.gz
  • Upload date:
  • Size: 4.8 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.7.tar.gz
Algorithm Hash digest
SHA256 edfc15eb5e7a1c19197d90c2eb6b24d3b5c2664074d405ba3c9e5355d802929d
MD5 b2a7b57ef9e72176203aab31d6bf03c2
BLAKE2b-256 e4fe3033f67be1fe48d8391fb68124ac472e4723790110733414f8d2734cc5fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyl360-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 71b964c054fd83d8ad550db04b4ab8e702f6ada6a6e4fc6c18d03842a1756bd2
MD5 669ad877bff6a08a129dece557d3e534
BLAKE2b-256 29e2c7062355eb2f76b6b0251258767f8b67029a9883a98f31f8f7e70f48c5cc

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