This implements the Skyhook ELG binary protocol in python
Installation
Just install with pip:
pip install python-skyhook
Usage
Python example:
import skyhook
key = 'ABCDEF1234567890' # from the API console
userID = 11111 # from the API console
bssid = 'ab:cd:ef:12:34:56'
rssi = -60
request = skyhook.SkyhookRequest()
request.addAccessPoint(bssid.replace(':', ''), rssi)
connection = skyhook.SkyhookConnection(key=key, userID=userID)
response = connection.performRequest(request)
if response.status != 'Ok':
print('Error:', response.status)
else:
print('Response: ', response.coordinate)
Command line client
In the test directory you’ll find a command line client to test if everything works:
$ python cmdline_client.py --help
usage: cmdline_client.py [-h] -k KEY -u USERID [-w WIFI] [-g GPS] [-c CELL]
[-b BT]
Make a location request against the skyhook service
optional arguments:
-h, --help show this help message and exit
-k KEY, --key KEY encryption key from Skyhook API panel
-u USERID, --user USERID
user ID from Skyhook API panel
-w WIFI, --wifi WIFI WIFI BSSID and signal strength (format: XX:XX:XX:XX:XX:XX@RSSI)
-g GPS, --gps GPS GPS coordinate (format: latitude,longitude@num_satelites)
-c CELL, --cell CELL, --celltower CELL
Celltower information (format: MCC,MNC,LAC,CellID@RSSI)
-b BT, --bt BT, --bluetooth BT
Bluetooth beacon (format: XX:XX:XX:XX:XX:XX,UUID,Major,Minor@RSSI)
Metadata
Release files for skyhook 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skyhook-0.1.2.tar.gz | 6.3 kB | Without provenance | Details for skyhook-0.1.2.tar.gz |
Release files / skyhook-0.1.2.tar.gz
| Download URL | skyhook-0.1.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7379bb2572ae5405c1386675bcd91f9db496444b9a6cab8dc4981e6b045f9d7
|
|
BLAKE2b-256 checksum How to use checksums |
431ec22b0d85e72cdcc31ca430e1ebd2810f04aefa8ffb29cf0c82516f3a82f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for skyhook 0.1.2
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.