watchlib

watchlib is a Python package providing tools for loading, visualizing and analyzing Apple Watch health data.


Keywords
animation, apple, apple-watch, data-science, data-visualization, health, medical-data
License
MIT
Install
pip install watchlib==0.0.1a2

Documentation

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:

  1. Open Health app
  2. Open your profile in the upper right corner
  3. Scroll down
  4. Tap on "Export all health data"
  5. Confirm that you want to export all health data
  6. Wait until the export has finished (this might take some minutes)
  7. Select "Save in files"
  8. Choose a folder and tap "Save"
  9. Last step is to unzip the "Export.zip" file

Streamlit demo

ECG heartbeat calculation

Workout Animation

Watch an example workout animation here