Spivey.AppleHealthFileReader
1.0.0
See the version list below for details.
dotnet add package Spivey.AppleHealthFileReader --version 1.0.0
NuGet\Install-Package Spivey.AppleHealthFileReader -Version 1.0.0
<PackageReference Include="Spivey.AppleHealthFileReader" Version="1.0.0" />
paket add Spivey.AppleHealthFileReader --version 1.0.0
#r "nuget: Spivey.AppleHealthFileReader, 1.0.0"
// Install Spivey.AppleHealthFileReader as a Cake Addin #addin nuget:?package=Spivey.AppleHealthFileReader&version=1.0.0 // Install Spivey.AppleHealthFileReader as a Cake Tool #tool nuget:?package=Spivey.AppleHealthFileReader&version=1.0.0
AppleHealthFileReader
A c# package for reading exported Apple Health Zip files that contain health records, workouts and clinical records into memory. Use LINQ to query the data to generate your own health analytics of your data. This project is not affiliated with Apple in any way.
Download Your Apple Health Data
To download your Apple Health data, go to your Apple Health app on your iPhone and click on the profile icon in the top right corner. Then click on "Export Health Data". This will generate a zip file that you can download to your computer. This zip file contains all of your health data in XML format. See Apple's documentation for more information.
Usage
To use this package, you will need to download your Apple Health data zip file. Then you can use the following code to read the data into memory.
var reader = new AppleHealthFileReader(@"C:\Users\me\Downloads\export.zip");
var myHealthRecords = reader.Records;
var myClinicalRecords = reader.ClinicalRecords;
var myWorkouts = reader.Workouts;
Or if you want to read the data from an XDocument:
XDocument xdoc = XDocument.Load(@"C:\Users\me\Downloads\export.xml");
var reader = new AppleHealthFileReader(xdoc);
var myHealthRecords = reader.Records;
var myClinicalRecords = reader.ClinicalRecords;
var myWorkouts = reader.Workouts;
Related Packages
- Spivey.Health can be used to convert Apple Health data into a normalized and more efficient data structure.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.