No project description provided
Project description
fit2parquets
Convert Garmin .fit files to .parquet files using Garmin's FIT SDK and polars.
Installation
poetry add fit2parquets
Available on PyPI here.
Usage
from fit2parquets.parser import Parser
Parser().fit2parquets("Afternoon_Run.fit")
If you want to save the parsed .parquet files in a different location (e.g. some_other_folder), simply run:
Parser().fit2parquets(
"Afternoon_Run.fit",
write_to_folder_in_which_fit_file_lives=False,
alternate_folder_path="some_other_folder",
)
This is also as available as a script from the command line directly
fit2parquets Afternoon_Run.fit --output_format=csv
You can read the resulting data via e.g.:
import polars as pl
df = pl.read_parquet("Afternoon_Run/record_mesgs.parquet")
Credits
Garmin's FIT SDK is licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol.
The Python implementation of that SDK is found here: https://github.com/garmin/fit-python-sdk.
This package was created with cookiecutter and thomascamminady/cookiecutter-pypackage, a fork of audreyr/cookiecutter-pypackage.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fit2parquets-0.8.0.tar.gz.
File metadata
- Download URL: fit2parquets-0.8.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df0ffc5cc06e1e37a4cb1459cbe51a959323bc0fe555b1ce4523de0176e2b18
|
|
| MD5 |
670df07a96247ec6b36c4666faaf1bf9
|
|
| BLAKE2b-256 |
186231dbba2bcae32bcf98780933da78754b629edb21e034a8d12fa2d444290b
|
File details
Details for the file fit2parquets-0.8.0-py3-none-any.whl.
File metadata
- Download URL: fit2parquets-0.8.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.10 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
581dd194819eded319d8ad820f8a0fba27808361e0a47468dc6a06b1d2d402c8
|
|
| MD5 |
5d449831d9cfe9df61461c82be86f3fc
|
|
| BLAKE2b-256 |
af166d32a2b15519eef21100d87b48b712959454ad5abf449b13aee764a350cd
|