watchlib
watchlib is a python module providing tools for loading, analyzing and visualizing Apple Watch health data.
A detailed documentation can be found in the Wiki. To see the module in action you can try out the watchlib demonstrator or look at some of the demo notebooks.
Disclaimer: This is still a work in progres! If you want to help with further development feel free to join me on Discord where we can discuss together or write an Issue here on GitHub.
Install
To install watchlib simply run:
pip install watchlib
How to export Apple Watch health data
To use this Python package you first have to export the health data like this:
- Open Health app
- Open your profile in the upper right corner
- Scroll down
- Tap on "Export all health data"
- Confirm that you want to export all health data
- Wait until the export has finished (this might take some minutes)
- Select "Save in files"
- Choose a folder and tap "Save"
- Last step is to unzip the "Export.zip" file
Streamlit demo
ECG heartbeat calculation
Workout Animation
Watch an example workout animation here