The current "Find My-scene" is quite fragmented, with code being all over the place across multiple repositories, written by several authors. This makes it hard to integrate FindMy functionality with your project. FindMy.py aims to make it easy for you to query the location of your AirTags, iDevices and DIY tags with an easy to use Python library.
- Cross-platform: no Mac needed
- Fetch and decrypt location reports
- Official accessories (AirTags, iDevices, etc.)
- Custom AirTags (OpenHaystack)
- Apple account sign-in
- SMS 2FA support
- Trusted Device 2FA support
- Scan for nearby FindMy-devices
- Decode their info, such as public keys and status bytes
- Import or create your own accessory keys
- Both async and sync APIs
The package can be installed from PyPi:
pip install findmy
For usage examples, see the examples directory.
We are also building out a CLI. Try python -m findmy
to see the current state of it.
Documentation can be found here.
Want to contribute code? That's great! For new features, please open an issue first so we can discuss.
This project uses Ruff for linting and formatting. Before opening a pull request, please ensure that your code adheres to these rules. There are pre-commit hooks included to help you with this, which you can set up as follows:
pip install uv
uv sync # this installs ruff & pre-commit into your environment
pre-commit install
After following the above steps, your code will be linted and formatted automatically before committing it.
There are several other cool projects in the FindMy space! You can check them out here.
While I designed the library, the vast majority of actual functionality is made possible by the following wonderful people and organizations:
- @seemo-lab for OpenHaystack and their research;
- @JJTech0130 for Pypush, providing the breakthrough necessary for getting this to work without a Mac;
- @biemster for FindMy, which is the main basis of this project;
- @Dadoum for pyprovision and anisette-v3-server;
- @nythepegasus for GrandSlam SMS 2FA;
- And probably more, so let me know! :D