Skip to main content

SDK for the find me spot

Project description

Overview

Simple SDK for extracting messages from Spot’s API

Installation

Directly from spot-sdk’s git repo <https://github.com/gregology/spot-sdk>

$ git clone git://github.com/gregology/spot-sdk.git
$ cd spot-sdk
$ python setup.py install

Basic usage

>>> from spot_sdk import Feed
>>> api_key = 'abcdefghijklmnopqrstuvwxy01234567'
>>> feed = Feed(api_key)
>>> feed.count()
6
>>> feed.first.type
'UNLIMITED-TRACK'
>>> feed.first.battery_state
'GOOD'
>>> feed.last.latitude
42.000
>>> feed.last.latitude
datetime(2017, 1, 1, 0, 42, 0)

Running Test

$ python spot-sdk/tests.py

Python compatibility

Developed for Python 3. May work but not tested in Python 2.

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

spot-sdk-2017.9.4.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

spot_sdk-2017.9.4-py3.6.egg (5.4 kB view hashes)

Uploaded Source

Supported by

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