python-fitparse 2.0.0__tar.gz → 2.0.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.0.0
3
+ Version: 2.0.4
4
4
  Summary: Python library to parse ANT/Garmin .FIT files
5
5
  Project-URL: Homepage, https://www.github.com/nbr23/python-fitparse
6
6
  Project-URL: Repository, https://www.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.171 ON 2025-05-07 ***********
4
- # ********* PARSED 198 TYPES (4307 VALUES), 120 MESSAGES (1386 FIELDS) *********
3
+ # *********** EXPORTED PROFILE FROM SDK VERSION 21.171 ON 2025-07-21 ***********
4
+ # ********* PARSED 198 TYPES (4307 VALUES), 121 MESSAGES (1391 FIELDS) *********
5
5
 
6
6
  from fitparse.records import (
7
7
  ComponentField,
@@ -10740,6 +10740,40 @@ MESSAGE_TYPES = {
10740
10740
  ),
10741
10741
  },
10742
10742
  ),
10743
+ 29: MessageType(
10744
+ name='location',
10745
+ mesg_num=29,
10746
+ fields={
10747
+ 1: Field(
10748
+ name='position_lat',
10749
+ type=BASE_TYPES[0x85], # sint32
10750
+ def_num=1,
10751
+ units='semicircles',
10752
+ ),
10753
+ 2: Field(
10754
+ name='position_long',
10755
+ type=BASE_TYPES[0x85], # sint32
10756
+ def_num=2,
10757
+ units='semicircles',
10758
+ ),
10759
+ 3: Field(
10760
+ name='count',
10761
+ type=BASE_TYPES[0x84], # uint16
10762
+ def_num=3,
10763
+ ),
10764
+ 4: Field( # UTC timestamp used to set the devices clock and date
10765
+ name='clock_time',
10766
+ type=BASE_TYPES[0x84], # uint16
10767
+ def_num=4,
10768
+ units='min',
10769
+ ),
10770
+ 8: Field( # Used to correlate UTC to system time if the timestamp of the message is in system time. This UTC time is derived from the GPS data.
10771
+ name='date',
10772
+ type=BASE_TYPES[0x07], # string
10773
+ def_num=8,
10774
+ ),
10775
+ },
10776
+ ),
10743
10777
  30: MessageType(
10744
10778
  name='weight_scale',
10745
10779
  mesg_num=30,
@@ -0,0 +1,69 @@
1
+ # patches/message_types/location.py
2
+ import sys
3
+ import os
4
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', 'scripts'))
5
+ from generate_profile import MessageInfo, FieldInfo
6
+
7
+ MESSAGE_INFO = MessageInfo(
8
+ name='location',
9
+ num=29,
10
+ group_name='',
11
+ fields=[
12
+ FieldInfo(
13
+ name='date',
14
+ type='string',
15
+ num=8,
16
+ scale=None,
17
+ offset=None,
18
+ units=None,
19
+ components=[],
20
+ subfields=[],
21
+ comment='Used to correlate UTC to system time if the timestamp of the message is in system time. This UTC time is derived from the GPS data.'
22
+ ),
23
+ FieldInfo(
24
+ name='position_lat',
25
+ type='sint32',
26
+ num=1,
27
+ scale=None,
28
+ offset=None,
29
+ units='semicircles',
30
+ components=[],
31
+ subfields=[],
32
+ comment=''
33
+ ),
34
+ FieldInfo(
35
+ name='position_long',
36
+ type='sint32',
37
+ num=2,
38
+ scale=None,
39
+ offset=None,
40
+ units='semicircles',
41
+ components=[],
42
+ subfields=[],
43
+ comment=''
44
+ ),
45
+ FieldInfo(
46
+ name='count',
47
+ type='uint16',
48
+ num=3,
49
+ scale=None,
50
+ offset=None,
51
+ units=None,
52
+ components=[],
53
+ subfields=[],
54
+ comment=''
55
+ ),
56
+ FieldInfo(
57
+ name='clock_time',
58
+ type='uint16',
59
+ num=4,
60
+ scale=None,
61
+ offset=None,
62
+ units='min',
63
+ components=[],
64
+ subfields=[],
65
+ comment='UTC timestamp used to set the devices clock and date'
66
+ ),
67
+ ],
68
+ comment=''
69
+ )
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "python-fitparse"
7
- version = "2.0.0"
7
+ version = "2.0.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