Skip to main content

Spot SDK

https://badge.fury.io/py/spot-sdk.svg http://img.shields.io/badge/license-MIT-yellow.svg?style=flat https://img.shields.io/badge/contact-Gregology-blue.svg?style=flat

Overview

Simple SDK for extracting messages from Spot’s API

Installation

spot-sdk is available on PyPI

http://pypi.python.org/pypi/spot-sdk

Install via pip

$ pip install spot-sdk

Or via easy_install

$ easy_install spot-sdk

Or 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.collect()
>>> feed.count()
6
>>> foo.messages
[<spot_sdk.Message object at 0x10fd7f630>, <spot_sdk.Message object at 0x10fd7f6a0>...
>>> feed.first().type
'UNLIMITED-TRACK'
>>> feed.last().battery_state
'GOOD'
>>> feed.messages[0].latitude
42.000
>>> feed.last().datetime
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.

Metadata

Release files for spot-sdk 2018.2.22.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spot-sdk 2018.2.22.1
File Size Uploaded Provenance Actions
spot-sdk-2018.2.22.1.tar.gz 3.3 kB Without provenance Details for spot-sdk-2018.2.22.1.tar.gz

Release files / spot-sdk-2018.2.22.1.tar.gz

Download URL spot-sdk-2018.2.22.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
23d57a03d0a98042dfc5aad868c68d0f01de3f0a1425c64c559dcf9dfb752023
BLAKE2b-256 checksum
How to use checksums
a82706714b643e0677bd6e36d4e967b6877a4ccb4a916c60cd946cdbd27aaef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for spot-sdk 2018.2.22.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page