Skip to main content

Python library to interact with the sherlock.bike API

Project description

sherlockbikepy

This Python library implements the sherlock.bike API. It has been reverse engineered from the Android app.

Installation

pip install sherlockbikepy

Code snippet

from sherlockbikepy import Sherlock

# Login
sh = Sherlock('user@example.com', 'supaSecretPassw0rd')

# Get devices
sh.devices
# > [<sherlockbikepy.device.SherlockDevice at 0x7fa840410400>]

# Primary device (ie. the first one)
sh.primary_device
# > <sherlockbikepy.device.SherlockDevice at 0x7fa840421b38>

# Device state
sh.primary_device.state
# > 'ON'

# Device location (only available if currently armed ie. "ON")
sh.primary_device.location
# >  Position(latitude=20.6297038,
# >           longitude=2.8123654,
# >           last_update=datetime.datetime(2018, 9, 22, 15, 55, 42))

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

sherlockbikepy-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file sherlockbikepy-0.1.2.tar.gz.

File metadata

  • Download URL: sherlockbikepy-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for sherlockbikepy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ae57df63b51dba26a92569c860abf8a315f9ce3430305dc5d7a6c03ae37928b1
MD5 0df4a107f8e94c6eb3571278bc9c8137
BLAKE2b-256 59adc7e8601b1160969804cb837b2c78d5f0d280d1c46b8a099d9a05421c6f83

See more details on using hashes here.

Supported by

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