This library provides functionality to parse and extract data from the XML exports of Apple Health app, enabling users to analyze and utilize their health data conveniently.
Features
Convert health data from XML format to JSON and CSV.
Retrieve types of records present in the health data.
Extract records of a specific type.
Installation
You can install the library via pip:
pip install apple-health-extractor
Usage
from extractor import Extractor
extractor = Extractor("path/to/health_data.xml")
json_data = extractor.get_json()
extractor.save_to_csv()
record_types = extractor.get_record_types()
specific_records = extractor.get_records("HKQuantityTypeIdentifierHeartRate")
Contributing
Contributions are welcome! Please fork the repository and open a pull request with your improvements.
License
This project is licensed under the MIT License. See the LICENSE file for details.