This is an unofficial Python package that allows you to interact with the FindMyDevice Server API. FindMyDevice Server is a server designed to communicate with the FMD Android app, helping you locate and control your devices.
The main use of this package is currently a reimplementation of the crypto and authentication involved when communicating with the api.
- Authenticate to the FindMyDeviceServer API.
- Send a "ring" to the server
pip install findmydevice
from findmydevice import FMDClient
import logging
logging.basicConfig(level=logging.DEBUG)
client = FMDClient('http://xyz.de', 'fmd_id', 'fmd_password')
client.authenticate()
client.ring()
- Clone the repository
git clone https://github.com/kinkerl/findmydevice_python.git cd findmydevice_python
- Create a virtual environment
python -m venv .venv
- Activate the virtual environment
- macOS/Linux:
source .venv/bin/activate
- Windows (CMD):
.venv\Scripts\activate
- Windows (PowerShell):
.venv\Scripts\Activate.ps1
- macOS/Linux:
- Install dependencies
pip install -e .[dev]
To run tests using pytest
, use:
pytest
-
Ensure you have Twine installed
pip install build
-
Build the package
To build the package, run:
python -m build
This will generate a
dist/
directory with.tar.gz
and.whl
files.
- Ensure you have Twine installed
pip install twine
- Upload the package
twine upload dist/*
- Verify installation from PyPI
pip install findmydevice