Python wrapper for the DroneMobile API for Firstech/Compustar remote start systems.
Project description
drone_mobile-python
This is a basic Python wrapper around the DroneMobile API. The wrapper provides methods to return vehicle status as well as some basic commands, e.g. start/stop, lock/unlock.
Disclaimer
The code here is based off of an unsupported API from DroneMobile and is subject to change without notice. The authors claim no responsibility for damages to your vehicle by use of the code within.
Features
- Automatically authenticate & re-fetch tokens once expired
- Get status of the vehicle (this returns a ton of info about the car: lat/long, temperature, battery, odometer, door status, and a bunch of other stuff that may/may not apply to your car.
- Start the engine
- Stop the engine
- Lock the doors
- Unlock the doors
Install
Install using pip:
pip install drone_mobile
Demo
To test the libary there is a demo script demo.py
.
demo.py USERNAME PASSWORD
e.g.
demo.py test@test.com mypassword
Publishing new versions of this package
- Bump the version number inside
setup.py
. - Build the package:
python setup.py sdist bdist_wheel
. - Upload to TestPyPi using
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
and verify everything is as expected. - Upload to PyPi using
twine upload dist/*
. - All done!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drone_mobile-0.2.30.tar.gz
.
File metadata
- Download URL: drone_mobile-0.2.30.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a86a7bd0d6bd656bddddb2a7416ad9e81f0d36a3cce6065cc08948267e3ce4 |
|
MD5 | 1a0eb2c53353d8217d14a67a48b68d91 |
|
BLAKE2b-256 | 4fe505df8361c0d5271ad8b86d849d4d40d63faaa45058605f1d78ef6d921311 |
File details
Details for the file drone_mobile-0.2.30-py3-none-any.whl
.
File metadata
- Download URL: drone_mobile-0.2.30-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53249e81125f4cb1a1b8e668e97e41cf87809fa8565c684ccd9e3f22fd7e3b0 |
|
MD5 | 96851db37012d0befe378145726a3fe0 |
|
BLAKE2b-256 | 9e86177f704ec7e793703c3f8e5be208f42c9be37756cef60e8fc385f4569c3a |