healthkit-to-sqlite


Namehealthkit-to-sqlite JSON
Version 1.0 PyPI version JSON
download
home_pagehttps://github.com/dogsheep/healthkit-to-sqlite
SummaryConvert an Apple Healthkit export zip to a SQLite database
upload_time2020-10-17 21:18:25
maintainer
docs_urlNone
authorSimon Willison
requires_python
licenseApache License, Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # healthkit-to-sqlite

[![PyPI](https://img.shields.io/pypi/v/healthkit-to-sqlite.svg)](https://pypi.org/project/healthkit-to-sqlite/)
[![Changelog](https://img.shields.io/github/v/release/dogsheep/healthkit-to-sqlite?include_prereleases&label=changelog)](https://github.com/dogsheep/healthkit-to-sqlite/releases)
[![Tests](https://github.com/dogsheep/healthkit-to-sqlite/workflows/Test/badge.svg)](https://github.com/dogsheep/healthkit-to-sqlite/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/dogsheep/healthkit-to-sqlite/blob/main/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](https://datasette.readthedocs.io/) like this:

    $ datasette healthkit.db



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dogsheep/healthkit-to-sqlite",
    "name": "healthkit-to-sqlite",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Simon Willison",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/17/b4/7c55d914283b565eeb55e5441e487267d79edb1b082b83deec96e9cc40f4/healthkit-to-sqlite-1.0.tar.gz",
    "platform": "",
    "description": "# healthkit-to-sqlite\n\n[![PyPI](https://img.shields.io/pypi/v/healthkit-to-sqlite.svg)](https://pypi.org/project/healthkit-to-sqlite/)\n[![Changelog](https://img.shields.io/github/v/release/dogsheep/healthkit-to-sqlite?include_prereleases&label=changelog)](https://github.com/dogsheep/healthkit-to-sqlite/releases)\n[![Tests](https://github.com/dogsheep/healthkit-to-sqlite/workflows/Test/badge.svg)](https://github.com/dogsheep/healthkit-to-sqlite/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/dogsheep/healthkit-to-sqlite/blob/main/LICENSE)\n\nConvert an Apple Healthkit export zip to a SQLite database\n\n## How to install\n\n    $ pip install healthkit-to-sqlite\n\n## How to use\n\nFirst you need to export your Apple HealthKit data.\n\n1. On your iPhone, open the \"Health\" app\n2. Click the profile icon in the top right\n3. Click \"Export Health Data\" at the bottom of that page\n4. Save the resulting file somewhere you can access it on a laptop - I used Dropbox\n\nNow you can convert the resulting `export.zip` file to SQLite like so:\n\n    $ healthkit-to-sqlite export.zip healthkit.db\n\nA progress bar will be displayed. You can disable this using `--silent`.\n\n```\nImporting from HealthKit  [#-------------]    5%  00:01:33\n```\n\nYou can explore the resulting data using [Datasette](https://datasette.readthedocs.io/) like this:\n\n    $ datasette healthkit.db\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Convert an Apple Healthkit export zip to a SQLite database",
    "version": "1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9594296e9a2c80e62dbc9ad45ed12568",
                "sha256": "c7be8e33b2974d259b75315abd21fd9b12b4027f066615c7542897b1f5740420"
            },
            "downloads": -1,
            "filename": "healthkit_to_sqlite-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9594296e9a2c80e62dbc9ad45ed12568",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9533,
            "upload_time": "2020-10-17T21:18:24",
            "upload_time_iso_8601": "2020-10-17T21:18:24.121555Z",
            "url": "https://files.pythonhosted.org/packages/8a/79/5ccbfd044b1c6360fc551dbea5dc27cd83c804fd62006dbcfd0e0f8df861/healthkit_to_sqlite-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "aa1489a41bc8523ade946e58c15a4895",
                "sha256": "39bff86a51729afb5256fefe53fddc8bb74f4f0cccb43bfc259608a819dc0734"
            },
            "downloads": -1,
            "filename": "healthkit-to-sqlite-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "aa1489a41bc8523ade946e58c15a4895",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4774,
            "upload_time": "2020-10-17T21:18:25",
            "upload_time_iso_8601": "2020-10-17T21:18:25.107057Z",
            "url": "https://files.pythonhosted.org/packages/17/b4/7c55d914283b565eeb55e5441e487267d79edb1b082b83deec96e9cc40f4/healthkit-to-sqlite-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-17 21:18:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "dogsheep",
    "error": "Could not fetch GitHub repository",
    "lcname": "healthkit-to-sqlite"
}
        
Elapsed time: 0.17527s