Skip to main content

Embody file converter

Project description

Embody File

PyPI Status Python Version License

Tests

pre-commit Black

This is a Python based implementation for parsing binary files from the Aidee EmBody device.

Features

  • Converts binary embody files to HDF, CSV, etc
  • Integrates with the EmBody Protocol Codec project
  • CLI (command line interface)
  • Can be used as package in other projects
  • Type safe code using mypy for type checking

Requirements

  • Python 3.8-3.11

Installation

You can install Embody File via pip:

$ pip install embody-file

Usage

To use the command line, first install this library either globally or using venv:

$ pip install embody-file

When this library has been installed, a new command is available, embody-file which can be used according to the examples below:

Get help

To get an updated overview of all command line options:

embody-file --help

Print version number

embody-file --version

Convert binary embody file to HDF

To convert to a HDF 5 (hierarcical data format) format, run the following:

embody-file testfiles/v5_0_0_test_file.log --output-format HDF

The file will be named the same as the input file, with the .hdf extension at the end of the file name.

Convert binary embody file to CSV

To convert to CSV format, run the following:

embody-file testfiles/v5_0_0_test_file.log --output-format CSV

The file will be named the same as the input file, with the .csv extension at the end of the file name.

Print statistics for binary embody file

To print stats without conversion:

embody-file testfiles/v5_0_0_test_file.log --print-stats

Plot binary file in graph

To show an ECG/PPG plot graph:

embody-file testfiles/v5_0_0_test_file.log --plot

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

embody_file-1.0.1.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

embody_file-1.0.1-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

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