Skip to main content

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 apple_health_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

apple_health_extractor-0.1.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

apple_health_extractor-0.1.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file apple_health_extractor-0.1.5.tar.gz.

File metadata

  • Download URL: apple_health_extractor-0.1.5.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

Hashes for apple_health_extractor-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ea2f3961874f1dae859c72f76c9def5974d0e5c4c9c9fdf6c66db6bc7ca2acc1
MD5 134f9ba81c66043db952f77731d250a5
BLAKE2b-256 b9eb31325469b079d1e4ec62bb7d7a7223f71d83b0104d60b8d21c5a83884032

See more details on using hashes here.

Provenance

File details

Details for the file apple_health_extractor-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for apple_health_extractor-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 346003352cb1e7711f05c7f7ee4434fe86a3a1a9970496775376292dd41f2e5e
MD5 e7cf7a8d5901505d6a9ed5d816576664
BLAKE2b-256 eacf4816be475f950e60bb4239d58c209435ead9efdfff99cdce256d88af3626

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page