Skip to main content

Parse Apple Health App dump conveniently and create visualizations.

Project description

Health Tracking

This repository provides some notebooks to analyze the Apple Health App data export dump as well as visualizations.

Description

Add the exported dump (see here for manual), usally named export.zip, into the directory data/raw/export.zip. The AppleHealthParser is able to unzip and parse it.

Install the package as shown in the installation section. Or simply use:

pip install health-tracking

Installation

In order to set up the necessary environment:

  1. create an environment health-tracking with the help of conda,
    conda env create -f environment.yaml
    
  2. activate the new environment with
    conda activate health-tracking
    
  3. install health-tracking with:
    python setup.py install # or `develop`
    

Optional and needed only once after git clone:

  1. install several pre-commit git hooks with:

    pre-commit install
    

    and checkout the configuration under .pre-commit-config.yaml. The -n, --no-verify flag of git commit can be used to deactivate pre-commit hooks temporarily.

  2. install nbstripout git hooks to remove the output cells of committed notebooks with:

    nbstripout --install --attributes notebooks/.gitattributes
    

    This is useful to avoid large diffs due to plots in your notebooks. A simple nbstripout --uninstall will revert these changes.

Then take a look into the scripts and notebooks folders.

Dependency Management & Reproducibility

  1. Always keep your abstract (unpinned) dependencies updated in environment.yaml and eventually in setup.cfg if you want to ship and install your package via pip later on.
  2. Create concrete dependencies as environment.lock.yaml for the exact reproduction of your environment with:
    conda env export -n health-tracking -f environment.lock.yaml
    
    For multi-OS development, consider using --no-builds during the export.
  3. Update your current environment with respect to a new environment.lock.yaml using:
    conda env update -f environment.lock.yaml --prune
    

Note

This project has been set up using PyScaffold 3.2.3. For details and usage information on PyScaffold see https://pyscaffold.org/.

Project details


Download files

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

Source Distribution

health-tracking-0.1.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

health_tracking-0.1-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file health-tracking-0.1.tar.gz.

File metadata

  • Download URL: health-tracking-0.1.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for health-tracking-0.1.tar.gz
Algorithm Hash digest
SHA256 a12369f862bf1e754d0a1e7a058f6b1aa4ab4cdc11e963a52010da1c1050b53e
MD5 a9869203fa9a9049ff4108218bbf96e9
BLAKE2b-256 08579d239b90e9a986889585b215557e05b093f16580c982aa96c3cebf2ac8d9

See more details on using hashes here.

File details

Details for the file health_tracking-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: health_tracking-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for health_tracking-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a68ff679ea1affe18a9a3678f1cfcb887cb0e3193612bfc7ab21d4cee1da174f
MD5 cede65fa32988ed5adaf55557ba0cd32
BLAKE2b-256 8b88b7f00d69de4d0b6e9c77d4827a10b616afe0184f1b3cf63c5ddeb757b82b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page