import pathlib

from cls_apple_health_etl_csv import AppleHealthDistanceWalkingRunningETLCsv
from etl_csv_argparser import parse_cmdline

if __name__ == '__main__':
    args = parse_cmdline(
        prog=pathlib.PurePath(__file__).name,
        description=
        "Extracts Walking and Running Distance data from Apple Health Data xml file."
    )

    loader = AppleHealthDistanceWalkingRunningETLCsv(args.xml_filepath,
                                                     args.csv_filepath,
                                                     args.start_date,
                                                     args.end_date,
                                                     args.watch_only_data)

    loader.serialize(args.sort)
Example #2
0
import pathlib

from cls_apple_health_etl_csv import AppleHealthStepCountETLCsv
from etl_csv_argparser import parse_cmdline

if __name__ == '__main__':
    args = parse_cmdline(
        prog=pathlib.PurePath(__file__).name,
        description="Extracts Step Counts from Apple Health Data xml file.")

    loader = AppleHealthStepCountETLCsv(args.xml_filepath, args.csv_filepath,
                                        args.start_date, args.end_date,
                                        args.watch_only_data)

    loader.serialize(args.sort)
Example #3
0
import pathlib

from cls_apple_health_etl_csv import AppleHealthHeartRateETLCsv
from etl_csv_argparser import parse_cmdline

if __name__ == '__main__':
    args = parse_cmdline(
        prog=pathlib.PurePath(__file__).name,
        description="Extracts VO2 max history from Apple Health Data xml file."
    )

    loader = AppleHealthHeartRateETLCsv(args.xml_filepath, args.csv_filepath,
                                        args.start_date, args.end_date,
                                        args.watch_only_data)

    loader.serialize(args.sort)
import pathlib

from cls_apple_health_etl_csv import AppleHealthActivitySummaryETLCsv
from etl_csv_argparser import parse_cmdline

if __name__ == '__main__':
    args = parse_cmdline(
        prog=pathlib.PurePath(__file__).name,
        description=
        "Extracts Active Summary data from Apple Health Data xml file.")

    loader = AppleHealthActivitySummaryETLCsv(args.xml_filepath,
                                              args.csv_filepath,
                                              args.start_date, args.end_date,
                                              args.watch_only_data)

    loader.serialize(args.sort)
Example #5
0
import pathlib

from cls_apple_health_etl_csv import AppleHealthWaist2PiR_ETLCsv
from etl_csv_argparser import parse_cmdline

if __name__ == '__main__':
    args = parse_cmdline(
        prog=pathlib.PurePath(__file__).name,
        description=
        "Extracts Waist Circumference data from Apple Health Data xml file.")

    loader = AppleHealthWaist2PiR_ETLCsv(args.xml_filepath, args.csv_filepath,
                                         args.start_date, args.end_date,
                                         args.watch_only_data)

    loader.serialize(args.sort)
import pathlib

from cls_apple_health_etl_csv import AppleHealthExerciseTimeETLCsv
from etl_csv_argparser import parse_cmdline

if __name__ == '__main__':
    args = parse_cmdline(
        prog=pathlib.PurePath(__file__).name,
        description=
        "Extracts Exercise Time data from Apple Health Data xml file.")

    loader = AppleHealthExerciseTimeETLCsv(args.xml_filepath,
                                           args.csv_filepath, args.start_date,
                                           args.end_date, args.watch_only_data)

    loader.serialize(args.sort)