Skip to main content

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 information), 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/.

Metadata

Release files for health-tracking 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for health-tracking 0.1.1
File Size Uploaded
health-tracking-0.1.1.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for health-tracking 0.1.1
File Interpreter ABI Platform
health_tracking-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 36.2 kB

Release files / health-tracking-0.1.1.tar.gz

Download URL health-tracking-0.1.1.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6e85ea1d9ade1735b641264c41a7e6a5596660a90d17e00785184c80fb0c9792
BLAKE2b-256 checksum
How to use checksums
af1b22ce3c0f4e536f355e8fee9aaa260ddad090aebe0248d4c3c4c3ef5abfd9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / health_tracking-0.1.1-py2.py3-none-any.whl

Download URL health_tracking-0.1.1-py2.py3-none-any.whl
Size 12.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5b84286d797f7ae30a92566e1ff21737d20eb30d929a109b8dd3f3de005c5705
BLAKE2b-256 checksum
How to use checksums
83140e3c3b008f957c6c09c4725c5b9e960e584d52f34f8fc0c14e6871da3f51
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page