semvec/pypi-packages huggingface dataset:
parse-apple-health-data 1.0.0
A Python package for parsing Apple Health Export data
Requires Python: >=3.8

# Apple Health Parser

https://pypi.org/project/parse-apple-health-data/1.0.0/

A Python package for parsing and analyzing Apple Health Export data.

## Installation

```bash
pip install parse-apple-health-data
```

## Usage

```python
from parse_apple_health_data import load_health_data

# Create parser instance
parser = load_health_data('export.xml')

# Get data as pandas DataFrames
dataframes = parser.to_dataframes()

# Physical Measurements:
height_df = dataframes['HKQuantityTypeIdentifierHeight']
body_mass_df = dataframes['HKQuantityTypeIdentifierBodyMass']

# Activity Tracking:
steps_df = dataframes['HKQuantityTypeIdentifierStepCount']
distance_walking_running_df = dataframes['HKQuantityTypeIdentifierDistanceWalkingRunning']
flights_climbed_df = dataframes['HKQuantityTypeIdentifierFlightsClimbed']

# Energy Expenditure:
basal_energy_burned_df = dataframes['HKQuantityTypeIdentifierBasalEnergyBurned']
active_energy_burned_df = dataframes['HKQuantityTypeIdentifierActiveEnergyBurned']

# Audio Exposure:
headphone_audio_exposure_df = dataframes['HKQuantityTypeIdentifierHeadphoneAudioExposure']
audio_exposure_event_df = dataframes['HKCategoryTypeIdentifierHeadphoneAudioExposureEvent']

# Walking Metrics:
walking_double_support_percentage_df = dataframes['HKQuantityTypeIdentifierWalkingDoubleSupportPercentage']
walking_speed_df = dataframes['HKQuantityTypeIdentifierWalkingSpeed']
walking_step_length_df = dataframes['HKQuantityTypeIdentifierWalkingStepLength']
walking_asymmetry_percentage_df = dataframes['HKQuantityTypeIdentifierWalkingAsymmetryPercentage']
walking_steadiness_df = dataframes['HKQuantityTypeIdentifierAppleWalkingSteadiness']

# Sleep Metrics:
sleep_analysis_df = dataframes['HKCategoryTypeIdentifierSleepAnalysis']
sleep_duration_goal_df = dataframes['HKDataTypeSleepDurationGoal']
```

## Features

- Parse Apple Health Export XML files
- Convert health data to pandas DataFrames
- Separate handling for quantity and category measurements
- Preserve all metadata from original export
- Type hints and documentation

## License

This project is licensed under the MIT License - see the LICENSE file for details.
zabbix-epics-py 1.1.0
Zabbix-EPICS for Python

# Zabbix sender for EPICS-CA

This package allows to send metrics to a Zabbix server from EPICS records via Channel Access.

See [docmentation](https://sasaki77.github.io/zabbix-epics-py/)

## Installing

Simple install is below.

```bash
pip install zabbix-epics-py
```

Or clone this package and install it.

```bash
# clone the repository
git clone https://github.com/sasaki77/zabbix-epics-py
cd zabbix-epics-py
# install zabbix-epics-py
pip install -e .
```

## Usage

Before using this program, you should create hosts and items in Zabbix.
Type of the items must be set to Zabbix trapper.

Below is a simple example usage.
Values of `TEST:PV` are sent to a Zabbix server at 30 sec intervals and metrics are stored to `zabbix-epics-py-test.item` key of `dummyHost`.

```python
>>> from zbxepics import ZabbixSenderCA
>>> server_ip = '127.0.0.1'
>>> port = 10051
>>> config = False
>>> items = [dict(host='dummyHost', pv='TEST:PV', interval=30, item_key='zabbix-epics-py-test.item', func='last')]
>>> sender = ZabbixSenderCA(server_ip, port, config, items)
>>> sender.run()
```

`interval` is an interval in seconds between sending metrics to Zabbix. If `interval` is set to `monitor`, metrics are sent every monitor update.

`func` determines a function to be applied to a monitored value buffer.

Avalilable funcs are below.

- last
- min
- max
- avg

For example, a monitored pv is processed 3 times and its value changed to 1, 2 and 3. Then the value sent to Zabbix is 2 if `func` is set to avg.

## Test

Some part of tests run HTTP server on 30051 port to emulate a Zabbix server.

You should concern localhost http access to test correctly.
(e.g. HTTP proxy settings)

Run without coverage:
```bash
pip install pytest
pytest
```

Run with coverage:
```bash
pip install pytest pytest-cov
pytest --cov zbxepics
coverage report -m
```

## Build Documentation
```
pip install sphinx m2r sphinx_rtd_theme
cd doc/_build/html
make html
```