# 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:
```python
pip install apple-health-extractor
```
### Usage
```python
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/martinkelly23/apple-health-extractor",
"name": "apple-health-extractor",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "data extractor, apple health data",
"author": "martinkelly23",
"author_email": "martkelly92@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3d/d0/aa942b3ba41bcd2eee393279f5821629ae8092cd30cfa28ba6494b602513/apple_health_extractor-0.1.6.tar.gz",
"platform": null,
"description": "# Apple health data extractor\nThis 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.\n\n### Features\nConvert health data from XML format to JSON and CSV.\nRetrieve types of records present in the health data.\nExtract records of a specific type.\n\n### Installation\nYou can install the library via pip:\n```python\npip install apple-health-extractor\n```\n\n### Usage\n```python\nfrom extractor import Extractor\n\n# Initialize the extractor with the path to the XML file\nextractor = Extractor(\"path/to/health_data.xml\")\n\n# Get the health data as JSON\njson_data = extractor.get_json()\n\n# Save the health data to a CSV file\nextractor.save_to_csv()\n\n# Get the types of records available in the health data\nrecord_types = extractor.get_record_types()\n\n# Get records of a specific type\nspecific_records = extractor.get_records(\"HKQuantityTypeIdentifierHeartRate\")\n```\n\n### Contributing\nContributions are welcome! Please fork the repository and open a pull request with your improvements.\n\n### License\nThis project is licensed under the MIT License. See the LICENSE file for details.",
"bugtrack_url": null,
"license": "MIT",
"summary": "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.",
"version": "0.1.6",
"project_urls": {
"Homepage": "https://github.com/martinkelly23/apple-health-extractor"
},
"split_keywords": [
"data extractor",
" apple health data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "264667372210609352310f0495a271de409c239b7fd666f10b8fb6229ccd62ff",
"md5": "379de69d8c47683c170e5a87442ae8cc",
"sha256": "2d499419b474ef9123ca5cd5dacea578d28d049aa62515d3205fcd9a20966cf6"
},
"downloads": -1,
"filename": "apple_health_extractor-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "379de69d8c47683c170e5a87442ae8cc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 4351,
"upload_time": "2024-04-07T21:56:28",
"upload_time_iso_8601": "2024-04-07T21:56:28.502685Z",
"url": "https://files.pythonhosted.org/packages/26/46/67372210609352310f0495a271de409c239b7fd666f10b8fb6229ccd62ff/apple_health_extractor-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3dd0aa942b3ba41bcd2eee393279f5821629ae8092cd30cfa28ba6494b602513",
"md5": "64db886465e1ed0dfaafd61d544d3d6b",
"sha256": "f596d68c3fa52668231a724b7c3ea58dce5f92ebac103b88cc64404ddd7280a3"
},
"downloads": -1,
"filename": "apple_health_extractor-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "64db886465e1ed0dfaafd61d544d3d6b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 3227,
"upload_time": "2024-04-07T21:56:30",
"upload_time_iso_8601": "2024-04-07T21:56:30.303035Z",
"url": "https://files.pythonhosted.org/packages/3d/d0/aa942b3ba41bcd2eee393279f5821629ae8092cd30cfa28ba6494b602513/apple_health_extractor-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-07 21:56:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "martinkelly23",
"github_project": "apple-health-extractor",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "apple-health-extractor"
}