python-fitparse 2.1.2__tar.gz → 2.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/PKG-INFO +1 -1
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/fitparse/profile.py +137 -6
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/pyproject.toml +1 -1
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/.gitignore +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/LICENSE +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/README.md +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/fitparse/__init__.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/fitparse/base.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/fitparse/processors.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/fitparse/records.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/fitparse/utils.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/patches/message_types/location.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/scripts/fitdump +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/scripts/generate_profile.py +0 -0
- {python_fitparse-2.1.2 → python_fitparse-2.1.4}/scripts/unit_tool.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-fitparse
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.4
|
|
4
4
|
Summary: Python library to parse ANT/Garmin .FIT files
|
|
5
5
|
Project-URL: Homepage, https://github.com/nbr23/python-fitparse
|
|
6
6
|
Project-URL: Repository, https://github.com/nbr23/python-fitparse
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ***************** BEGIN AUTOMATICALLY GENERATED FIT PROFILE ******************
|
|
2
2
|
# *************************** DO NOT EDIT THIS FILE ****************************
|
|
3
|
-
# *********** EXPORTED PROFILE FROM SDK VERSION 21.
|
|
4
|
-
# ********* PARSED
|
|
3
|
+
# *********** EXPORTED PROFILE FROM SDK VERSION 21.200 ON 2026-04-09 ***********
|
|
4
|
+
# ********* PARSED 201 TYPES (4394 VALUES), 124 MESSAGES (1407 FIELDS) *********
|
|
5
5
|
|
|
6
6
|
from fitparse.records import (
|
|
7
7
|
ComponentField,
|
|
@@ -3126,6 +3126,11 @@ FIELD_TYPES = {
|
|
|
3126
3126
|
340: 'peloton',
|
|
3127
3127
|
341: 'carv',
|
|
3128
3128
|
342: 'tissot',
|
|
3129
|
+
345: 'real_velo',
|
|
3130
|
+
346: 'wetech',
|
|
3131
|
+
347: 'jespr',
|
|
3132
|
+
348: 'huawei',
|
|
3133
|
+
349: 'gotoes',
|
|
3129
3134
|
5759: 'actigraphcorp',
|
|
3130
3135
|
},
|
|
3131
3136
|
),
|
|
@@ -3288,6 +3293,7 @@ FIELD_TYPES = {
|
|
|
3288
3293
|
393: 'dive_apnea_alarm',
|
|
3289
3294
|
398: 'skin_temp_overnight',
|
|
3290
3295
|
409: 'hsa_wrist_temperature_data', # Message number for the HSA wrist temperature data message
|
|
3296
|
+
412: 'nap_event',
|
|
3291
3297
|
470: 'sleep_disruption_severity_period',
|
|
3292
3298
|
471: 'sleep_disruption_overnight_severity',
|
|
3293
3299
|
},
|
|
@@ -3392,6 +3398,39 @@ FIELD_TYPES = {
|
|
|
3392
3398
|
84: 'toe_touch',
|
|
3393
3399
|
},
|
|
3394
3400
|
),
|
|
3401
|
+
'nap_period_feedback': FieldType(
|
|
3402
|
+
name='nap_period_feedback',
|
|
3403
|
+
base_type=BASE_TYPES[0x00], # enum
|
|
3404
|
+
values={
|
|
3405
|
+
0: 'none',
|
|
3406
|
+
1: 'multiple_naps_during_day',
|
|
3407
|
+
2: 'jetlag_ideal_timing_ideal_duration',
|
|
3408
|
+
3: 'jetlag_ideal_timing_long_duration',
|
|
3409
|
+
4: 'jetlag_late_timing_ideal_duration',
|
|
3410
|
+
5: 'jetlag_late_timing_long_duration',
|
|
3411
|
+
6: 'ideal_timing_ideal_duration_low_need',
|
|
3412
|
+
7: 'ideal_timing_ideal_duration_high_need',
|
|
3413
|
+
8: 'ideal_timing_long_duration_low_need',
|
|
3414
|
+
9: 'ideal_timing_long_duration_high_need',
|
|
3415
|
+
10: 'late_timing_ideal_duration_low_need',
|
|
3416
|
+
11: 'late_timing_ideal_duration_high_need',
|
|
3417
|
+
12: 'late_timing_long_duration_low_need',
|
|
3418
|
+
13: 'late_timing_long_duration_high_need',
|
|
3419
|
+
14: 'ideal_duration_low_need',
|
|
3420
|
+
15: 'ideal_duration_high_need',
|
|
3421
|
+
16: 'long_duration_low_need',
|
|
3422
|
+
17: 'long_duration_high_need',
|
|
3423
|
+
},
|
|
3424
|
+
),
|
|
3425
|
+
'nap_source': FieldType(
|
|
3426
|
+
name='nap_source',
|
|
3427
|
+
base_type=BASE_TYPES[0x00], # enum
|
|
3428
|
+
values={
|
|
3429
|
+
0: 'automatic',
|
|
3430
|
+
1: 'manual_device',
|
|
3431
|
+
2: 'manual_gc',
|
|
3432
|
+
},
|
|
3433
|
+
),
|
|
3395
3434
|
'no_fly_time_mode': FieldType(
|
|
3396
3435
|
name='no_fly_time_mode',
|
|
3397
3436
|
base_type=BASE_TYPES[0x00], # enum
|
|
@@ -4440,12 +4479,18 @@ FIELD_TYPES = {
|
|
|
4440
4479
|
48: 'floor_climbing',
|
|
4441
4480
|
49: 'baseball',
|
|
4442
4481
|
53: 'diving',
|
|
4482
|
+
56: 'shooting', # Sport Shooting bits, set here for sport_bits alignment
|
|
4483
|
+
58: 'winter_sport',
|
|
4484
|
+
59: 'grinding', # Sailing position, operating manual winches to power boat controls
|
|
4443
4485
|
62: 'hiit',
|
|
4486
|
+
63: 'video_gaming',
|
|
4444
4487
|
64: 'racket',
|
|
4445
4488
|
65: 'wheelchair_push_walk',
|
|
4446
4489
|
66: 'wheelchair_push_run',
|
|
4447
4490
|
67: 'meditation',
|
|
4491
|
+
68: 'para_sport',
|
|
4448
4492
|
69: 'disc_golf',
|
|
4493
|
+
70: 'team_sport',
|
|
4449
4494
|
71: 'cricket',
|
|
4450
4495
|
72: 'rugby',
|
|
4451
4496
|
73: 'hockey',
|
|
@@ -4453,10 +4498,17 @@ FIELD_TYPES = {
|
|
|
4453
4498
|
75: 'volleyball',
|
|
4454
4499
|
76: 'water_tubing',
|
|
4455
4500
|
77: 'wakesurfing',
|
|
4501
|
+
78: 'water_sport',
|
|
4502
|
+
79: 'archery',
|
|
4456
4503
|
80: 'mixed_martial_arts',
|
|
4504
|
+
81: 'motor_sports',
|
|
4457
4505
|
82: 'snorkeling',
|
|
4458
4506
|
83: 'dance',
|
|
4459
4507
|
84: 'jump_rope',
|
|
4508
|
+
85: 'pool_apnea',
|
|
4509
|
+
86: 'mobility',
|
|
4510
|
+
87: 'geocaching',
|
|
4511
|
+
88: 'canoeing',
|
|
4460
4512
|
254: 'all', # All is for goals only to include all sports.
|
|
4461
4513
|
},
|
|
4462
4514
|
),
|
|
@@ -4757,23 +4809,40 @@ FIELD_TYPES = {
|
|
|
4757
4809
|
58: 'virtual_activity',
|
|
4758
4810
|
59: 'obstacle', # Used for events where participants run, crawl through mud, climb over walls, etc.
|
|
4759
4811
|
62: 'breathing',
|
|
4812
|
+
63: 'ccr_diving', # Diving w/ closed circuit rebreather
|
|
4760
4813
|
65: 'sail_race', # Sailing
|
|
4814
|
+
66: 'expedition', # Generic
|
|
4761
4815
|
67: 'ultra', # Ultramarathon
|
|
4762
4816
|
68: 'indoor_climbing', # Climbing
|
|
4763
4817
|
69: 'bouldering', # Climbing
|
|
4764
4818
|
70: 'hiit', # High Intensity Interval Training
|
|
4819
|
+
71: 'indoor_grinding', # Sailing position, operating manual winches to power boat controls
|
|
4820
|
+
72: 'hunting_with_dogs', # Hunting
|
|
4765
4821
|
73: 'amrap', # HIIT
|
|
4766
4822
|
74: 'emom', # HIIT
|
|
4767
4823
|
75: 'tabata', # HIIT
|
|
4824
|
+
77: 'esport', # Video Gaming, Cycling, etc.
|
|
4825
|
+
78: 'triathlon', # Multisport
|
|
4826
|
+
79: 'duathlon', # Multisport
|
|
4827
|
+
80: 'brick', # Multisport
|
|
4828
|
+
81: 'swim_run', # Multisport
|
|
4829
|
+
82: 'adventure_race', # Multisport
|
|
4830
|
+
83: 'trucker_workout', # DEZL trucker workout training sport
|
|
4768
4831
|
84: 'pickleball', # Racket
|
|
4769
4832
|
85: 'padel', # Racket
|
|
4770
4833
|
86: 'indoor_wheelchair_walk',
|
|
4771
4834
|
87: 'indoor_wheelchair_run',
|
|
4772
4835
|
88: 'indoor_hand_cycling',
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4836
|
+
90: 'field', # Hockey
|
|
4837
|
+
91: 'ice', # Hockey
|
|
4838
|
+
92: 'ultimate', # Disc
|
|
4839
|
+
93: 'platform', # Racket
|
|
4840
|
+
94: 'squash', # Racket
|
|
4841
|
+
95: 'badminton', # Racket
|
|
4842
|
+
96: 'racquetball', # Racket
|
|
4843
|
+
97: 'table_tennis', # Racket
|
|
4844
|
+
98: 'overland',
|
|
4845
|
+
99: 'trolling_motor', # Generic
|
|
4777
4846
|
110: 'fly_canopy', # Flying
|
|
4778
4847
|
111: 'fly_paraglide', # Flying
|
|
4779
4848
|
112: 'fly_paramotor', # Flying
|
|
@@ -4784,6 +4853,12 @@ FIELD_TYPES = {
|
|
|
4784
4853
|
117: 'fly_wx', # Flying
|
|
4785
4854
|
118: 'fly_vfr', # Flying
|
|
4786
4855
|
119: 'fly_ifr', # Flying
|
|
4856
|
+
121: 'dynamic_apnea',
|
|
4857
|
+
123: 'enduro', # Cycling
|
|
4858
|
+
124: 'rucking', # Hiking
|
|
4859
|
+
125: 'rally', # Motor sports
|
|
4860
|
+
126: 'pool_triathlon', # Multisport
|
|
4861
|
+
127: 'e_bike_enduro', # Cycling
|
|
4787
4862
|
254: 'all',
|
|
4788
4863
|
},
|
|
4789
4864
|
),
|
|
@@ -13409,6 +13484,62 @@ MESSAGE_TYPES = {
|
|
|
13409
13484
|
253: FIELD_TYPE_TIMESTAMP,
|
|
13410
13485
|
},
|
|
13411
13486
|
),
|
|
13487
|
+
412: MessageType(
|
|
13488
|
+
name='nap_event',
|
|
13489
|
+
mesg_num=412,
|
|
13490
|
+
fields={
|
|
13491
|
+
0: Field(
|
|
13492
|
+
name='start_time',
|
|
13493
|
+
type=FIELD_TYPES['date_time'],
|
|
13494
|
+
def_num=0,
|
|
13495
|
+
units='seconds',
|
|
13496
|
+
),
|
|
13497
|
+
1: Field(
|
|
13498
|
+
name='start_timezone_offset',
|
|
13499
|
+
type=BASE_TYPES[0x83], # sint16
|
|
13500
|
+
def_num=1,
|
|
13501
|
+
units='minutes',
|
|
13502
|
+
),
|
|
13503
|
+
2: Field(
|
|
13504
|
+
name='end_time',
|
|
13505
|
+
type=FIELD_TYPES['date_time'],
|
|
13506
|
+
def_num=2,
|
|
13507
|
+
units='seconds',
|
|
13508
|
+
),
|
|
13509
|
+
3: Field(
|
|
13510
|
+
name='end_timezone_offset',
|
|
13511
|
+
type=BASE_TYPES[0x83], # sint16
|
|
13512
|
+
def_num=3,
|
|
13513
|
+
units='minutes',
|
|
13514
|
+
),
|
|
13515
|
+
4: Field(
|
|
13516
|
+
name='feedback',
|
|
13517
|
+
type=FIELD_TYPES['nap_period_feedback'],
|
|
13518
|
+
def_num=4,
|
|
13519
|
+
),
|
|
13520
|
+
5: Field(
|
|
13521
|
+
name='is_deleted',
|
|
13522
|
+
type=FIELD_TYPES['bool'],
|
|
13523
|
+
def_num=5,
|
|
13524
|
+
),
|
|
13525
|
+
6: Field(
|
|
13526
|
+
name='source',
|
|
13527
|
+
type=FIELD_TYPES['nap_source'],
|
|
13528
|
+
def_num=6,
|
|
13529
|
+
),
|
|
13530
|
+
7: Field( # The timestamp representing when this nap event was last updated
|
|
13531
|
+
name='update_timestamp',
|
|
13532
|
+
type=FIELD_TYPES['date_time'],
|
|
13533
|
+
def_num=7,
|
|
13534
|
+
),
|
|
13535
|
+
253: FIELD_TYPE_TIMESTAMP,
|
|
13536
|
+
254: Field(
|
|
13537
|
+
name='message_index',
|
|
13538
|
+
type=FIELD_TYPES['message_index'],
|
|
13539
|
+
def_num=254,
|
|
13540
|
+
),
|
|
13541
|
+
},
|
|
13542
|
+
),
|
|
13412
13543
|
470: MessageType(
|
|
13413
13544
|
name='sleep_disruption_severity_period',
|
|
13414
13545
|
mesg_num=470,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|