healthkit-to-sqlite by dogsheep

星标

README 源代码

healthkit-to-sqlite

PyPI Changelog Tests License

将 Apple Healthkit 导出的 zip 文件转换为 SQLite 数据库

如何安装

$ pip install healthkit-to-sqlite

如何使用

首先,您需要导出您的 Apple HealthKit 数据。

  1. 在您的 iPhone 上,打开“健康”应用
  2. 点击右上角的个人资料图标
  3. 点击该页面底部的“导出健康数据”
  4. 将生成的文件保存在您可以访问的地方,或者直接通过隔空投送将其发送到您的笔记本电脑。

现在,您可以将生成的 export.zip 文件转换为 SQLite,如下所示

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

将显示进度条。您可以使用 --silent 禁用此功能。

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

您可以使用 Datasette 探索生成的数据,如下所示

$ datasette healthkit.db