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.
Project description
Apple health data extractor
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
# Initialize the extractor with the path to the XML file
extractor = Extractor("path/to/health_data.xml")
# Get the health data as JSON
json_data = extractor.get_json()
# Save the health data to a CSV file
extractor.save_to_csv()
# Get the types of records available in the health data
record_types = extractor.get_record_types()
# Get records of a specific type
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.
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
Built Distribution
File details
Details for the file apple_health_extractor-0.1.6.tar.gz
.
File metadata
- Download URL: apple_health_extractor-0.1.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.1 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f596d68c3fa52668231a724b7c3ea58dce5f92ebac103b88cc64404ddd7280a3 |
|
MD5 | 64db886465e1ed0dfaafd61d544d3d6b |
|
BLAKE2b-256 | 3dd0aa942b3ba41bcd2eee393279f5821629ae8092cd30cfa28ba6494b602513 |
File details
Details for the file apple_health_extractor-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: apple_health_extractor-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.1 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d499419b474ef9123ca5cd5dacea578d28d049aa62515d3205fcd9a20966cf6 |
|
MD5 | 379de69d8c47683c170e5a87442ae8cc |
|
BLAKE2b-256 | 264667372210609352310f0495a271de409c239b7fd666f10b8fb6229ccd62ff |