Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Convert an Apple Healthkit export zip to a SQLite database

Project description

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 on a laptop - I used Dropbox

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for healthkit-to-sqlite, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size healthkit_to_sqlite-1.0-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size healthkit-to-sqlite-1.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page