python-fitparse 2.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fitparse
3
- Version: 2.1.3
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.195 ON 2026-02-27 ***********
4
- # ********* PARSED 199 TYPES (4332 VALUES), 123 MESSAGES (1397 FIELDS) *********
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,
@@ -3127,6 +3127,10 @@ FIELD_TYPES = {
3127
3127
  341: 'carv',
3128
3128
  342: 'tissot',
3129
3129
  345: 'real_velo',
3130
+ 346: 'wetech',
3131
+ 347: 'jespr',
3132
+ 348: 'huawei',
3133
+ 349: 'gotoes',
3130
3134
  5759: 'actigraphcorp',
3131
3135
  },
3132
3136
  ),
@@ -3289,6 +3293,7 @@ FIELD_TYPES = {
3289
3293
  393: 'dive_apnea_alarm',
3290
3294
  398: 'skin_temp_overnight',
3291
3295
  409: 'hsa_wrist_temperature_data', # Message number for the HSA wrist temperature data message
3296
+ 412: 'nap_event',
3292
3297
  470: 'sleep_disruption_severity_period',
3293
3298
  471: 'sleep_disruption_overnight_severity',
3294
3299
  },
@@ -3393,6 +3398,39 @@ FIELD_TYPES = {
3393
3398
  84: 'toe_touch',
3394
3399
  },
3395
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
+ ),
3396
3434
  'no_fly_time_mode': FieldType(
3397
3435
  name='no_fly_time_mode',
3398
3436
  base_type=BASE_TYPES[0x00], # enum
@@ -4441,12 +4479,18 @@ FIELD_TYPES = {
4441
4479
  48: 'floor_climbing',
4442
4480
  49: 'baseball',
4443
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
4444
4485
  62: 'hiit',
4486
+ 63: 'video_gaming',
4445
4487
  64: 'racket',
4446
4488
  65: 'wheelchair_push_walk',
4447
4489
  66: 'wheelchair_push_run',
4448
4490
  67: 'meditation',
4491
+ 68: 'para_sport',
4449
4492
  69: 'disc_golf',
4493
+ 70: 'team_sport',
4450
4494
  71: 'cricket',
4451
4495
  72: 'rugby',
4452
4496
  73: 'hockey',
@@ -4454,10 +4498,17 @@ FIELD_TYPES = {
4454
4498
  75: 'volleyball',
4455
4499
  76: 'water_tubing',
4456
4500
  77: 'wakesurfing',
4501
+ 78: 'water_sport',
4502
+ 79: 'archery',
4457
4503
  80: 'mixed_martial_arts',
4504
+ 81: 'motor_sports',
4458
4505
  82: 'snorkeling',
4459
4506
  83: 'dance',
4460
4507
  84: 'jump_rope',
4508
+ 85: 'pool_apnea',
4509
+ 86: 'mobility',
4510
+ 87: 'geocaching',
4511
+ 88: 'canoeing',
4461
4512
  254: 'all', # All is for goals only to include all sports.
4462
4513
  },
4463
4514
  ),
@@ -4758,23 +4809,40 @@ FIELD_TYPES = {
4758
4809
  58: 'virtual_activity',
4759
4810
  59: 'obstacle', # Used for events where participants run, crawl through mud, climb over walls, etc.
4760
4811
  62: 'breathing',
4812
+ 63: 'ccr_diving', # Diving w/ closed circuit rebreather
4761
4813
  65: 'sail_race', # Sailing
4814
+ 66: 'expedition', # Generic
4762
4815
  67: 'ultra', # Ultramarathon
4763
4816
  68: 'indoor_climbing', # Climbing
4764
4817
  69: 'bouldering', # Climbing
4765
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
4766
4821
  73: 'amrap', # HIIT
4767
4822
  74: 'emom', # HIIT
4768
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
4769
4831
  84: 'pickleball', # Racket
4770
4832
  85: 'padel', # Racket
4771
4833
  86: 'indoor_wheelchair_walk',
4772
4834
  87: 'indoor_wheelchair_run',
4773
4835
  88: 'indoor_hand_cycling',
4774
- 94: 'squash',
4775
- 95: 'badminton',
4776
- 96: 'racquetball',
4777
- 97: 'table_tennis',
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
4778
4846
  110: 'fly_canopy', # Flying
4779
4847
  111: 'fly_paraglide', # Flying
4780
4848
  112: 'fly_paramotor', # Flying
@@ -4785,6 +4853,12 @@ FIELD_TYPES = {
4785
4853
  117: 'fly_wx', # Flying
4786
4854
  118: 'fly_vfr', # Flying
4787
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
4788
4862
  254: 'all',
4789
4863
  },
4790
4864
  ),
@@ -13410,6 +13484,62 @@ MESSAGE_TYPES = {
13410
13484
  253: FIELD_TYPE_TIMESTAMP,
13411
13485
  },
13412
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
+ ),
13413
13543
  470: MessageType(
13414
13544
  name='sleep_disruption_severity_period',
13415
13545
  mesg_num=470,
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "python-fitparse"
7
- version = "2.1.3"
7
+ version = "2.1.4"
8
8
  description = "Python library to parse ANT/Garmin .FIT files"
9
9
  authors = [
10
10
  {name = "David Cooper", email = "dave@kupesoft.com"},
File without changes