Convert an Apple Healthkit export zip to a SQLite database
Find a file
2021-01-25 19:51:09 -08:00
.github/workflows Switch CI to GitHub Actions 2020-10-17 13:56:07 -07:00
healthkit_to_sqlite added try / except to write_records to keep the data write from failing if it came across an error 2021-01-25 19:51:09 -08:00
tests Handle export.xml in other languages, closes #11 2020-10-17 14:14:02 -07:00
.gitignore Initial framework 2019-07-19 22:12:38 -07:00
LICENSE Initial framework 2019-07-19 22:12:38 -07:00
README.md Suggest using AirDrop 2020-10-17 14:23:26 -07:00
setup.py Release 1.0 2020-10-17 14:15:29 -07:00

healthkit-to-sqlite

PyPI Changelog Tests License

Convert an Apple Healthkit export zip to a SQLite database

How to install

$ pip install healthkit-to-sqlite

How to use

First you need to export your Apple HealthKit data.

  1. On your iPhone, open the "Health" app
  2. Click the profile icon in the top right
  3. Click "Export Health Data" at the bottom of that page
  4. Save the resulting file somewhere you can access it, or AirDrop it directly to your laptop.

Now you can convert the resulting export.zip file to SQLite like so:

$ healthkit-to-sqlite export.zip healthkit.db

A progress bar will be displayed. You can disable this using --silent.

Importing from HealthKit  [#-------------]    5%  00:01:33

You can explore the resulting data using Datasette like this:

$ datasette healthkit.db