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.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

apple_health_extractor-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apple_health_extractor-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 62566459bba29b9c18043a2dbdd7737d4066fce3b52cf7d1f4a83667a7c2a510
MD5 46f054d20f50af3e4a10dcbeb3a81dd7
BLAKE2b-256 b1029a7b54b3ba74826ff8f71cf4a94a46f11d2e9b99d426074a469502b392d6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for apple_health_extractor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f794af43553a1f50b3729d21609cd9d7a40d5f827dcd58c4062d3653b118d5
MD5 5bb046b62245510cf14077ad015cbf36
BLAKE2b-256 a553a7a6649d8009779da6d7f5b5d7bcc16310745ff4959d70c01dd2b18e3ac3

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