pygnssutils 1.3.1__tar.gz → 1.3.2__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.
Files changed (50) hide show
  1. {pygnssutils-1.3.1/src/pygnssutils.egg-info → pygnssutils-1.3.2}/PKG-INFO +4 -5
  2. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/pyproject.toml +8 -15
  3. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/_version.py +1 -1
  4. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/globals.py +1 -1
  5. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssserver.py +1 -1
  6. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssserver_cli.py +3 -3
  7. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssstreamer.py +2 -3
  8. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssstreamer_cli.py +3 -2
  9. {pygnssutils-1.3.1 → pygnssutils-1.3.2/src/pygnssutils.egg-info}/PKG-INFO +4 -5
  10. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils.egg-info/requires.txt +3 -3
  11. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_cli.py +4 -4
  12. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_gnssstreamer.py +1 -1
  13. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_static.py +3 -3
  14. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/LICENSE +0 -0
  15. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/README.md +0 -0
  16. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/setup.cfg +0 -0
  17. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/__init__.py +0 -0
  18. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/exceptions.py +0 -0
  19. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssntripclient.py +0 -0
  20. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssntripclient_cli.py +0 -0
  21. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/gnssreader.py +0 -0
  22. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/helpers.py +0 -0
  23. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav.py +0 -0
  24. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_reader.py +0 -0
  25. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_bds.py +0 -0
  26. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_gal.py +0 -0
  27. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_glo.py +0 -0
  28. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_gps.py +0 -0
  29. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_irn.py +0 -0
  30. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_qzs.py +0 -0
  31. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rawnav_subframes_sba.py +0 -0
  32. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_conv.py +0 -0
  33. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_conv_cli.py +0 -0
  34. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_conv_met.py +0 -0
  35. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_conv_nav.py +0 -0
  36. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_conv_obs.py +0 -0
  37. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_globals.py +0 -0
  38. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/rinex_helpers.py +0 -0
  39. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils/socket_server.py +0 -0
  40. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils.egg-info/SOURCES.txt +0 -0
  41. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils.egg-info/dependency_links.txt +0 -0
  42. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils.egg-info/entry_points.txt +0 -0
  43. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/src/pygnssutils.egg-info/top_level.txt +0 -0
  44. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_rawnav.py +0 -0
  45. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_rinex.py +0 -0
  46. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_rinex_defs.py +0 -0
  47. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_rinex_parse.py +0 -0
  48. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_socketwrapper.py +0 -0
  49. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_sourcetable.py +0 -0
  50. {pygnssutils-1.3.1 → pygnssutils-1.3.2}/tests/test_stream.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygnssutils
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: GNSS Command Line Utilities
5
5
  Author: Steve Smith
6
6
  Author-email: semuadmin@semuconsulting.com
@@ -21,7 +21,6 @@ Classifier: Intended Audience :: Developers
21
21
  Classifier: Intended Audience :: Science/Research
22
22
  Classifier: Intended Audience :: End Users/Desktop
23
23
  Classifier: Programming Language :: Python :: 3
24
- Classifier: Programming Language :: Python :: 3.10
25
24
  Classifier: Programming Language :: Python :: 3.11
26
25
  Classifier: Programming Language :: Python :: 3.12
27
26
  Classifier: Programming Language :: Python :: 3.13
@@ -34,13 +33,13 @@ Requires-Python: >=3.10
34
33
  Description-Content-Type: text/markdown
35
34
  License-File: LICENSE
36
35
  Requires-Dist: certifi>=2026.0.0
37
- Requires-Dist: pynmeagps>=1.1.8
36
+ Requires-Dist: pynmeagps>=1.2.0
38
37
  Requires-Dist: pyqgc>=1.0.1
39
38
  Requires-Dist: pyrtcm>=1.2.1
40
39
  Requires-Dist: pysbf2>=1.0.7
41
40
  Requires-Dist: pyserial>=3.5
42
- Requires-Dist: pyspartn>=1.1.0
43
- Requires-Dist: pyubx2>=1.4.0
41
+ Requires-Dist: pyspartn>=1.1.2
42
+ Requires-Dist: pyubx2>=1.4.1
44
43
  Requires-Dist: pyubxutils>=1.0.6
45
44
  Requires-Dist: pyunigps>=1.0.1
46
45
  Dynamic: license-file
@@ -26,7 +26,6 @@ classifiers = [
26
26
  "Intended Audience :: Science/Research",
27
27
  "Intended Audience :: End Users/Desktop",
28
28
  "Programming Language :: Python :: 3",
29
- "Programming Language :: Python :: 3.10",
30
29
  "Programming Language :: Python :: 3.11",
31
30
  "Programming Language :: Python :: 3.12",
32
31
  "Programming Language :: Python :: 3.13",
@@ -39,13 +38,13 @@ classifiers = [
39
38
 
40
39
  dependencies = [
41
40
  "certifi>=2026.0.0",
42
- "pynmeagps>=1.1.8",
41
+ "pynmeagps>=1.2.0",
43
42
  "pyqgc>=1.0.1",
44
43
  "pyrtcm>=1.2.1",
45
44
  "pysbf2>=1.0.7",
46
45
  "pyserial>=3.5",
47
- "pyspartn>=1.1.0",
48
- "pyubx2>=1.4.0",
46
+ "pyspartn>=1.1.2",
47
+ "pyubx2>=1.4.1",
49
48
  "pyubxutils>=1.0.6",
50
49
  "pyunigps>=1.0.1",
51
50
  ]
@@ -90,27 +89,21 @@ deploy = [{ include-group = "build" }, { include-group = "test" }]
90
89
  version = { attr = "pygnssutils._version.__version__" }
91
90
 
92
91
  [tool.black]
93
- target-version = ['py310']
92
+ target-version = ['py311']
94
93
 
95
94
  [tool.isort]
96
- py_version = 310
95
+ py_version = 311
97
96
  profile = "black"
98
97
 
99
98
  [tool.bandit]
100
- exclude_dirs = ["docs", "examples", "references", "tests"]
101
- skips = [
102
- "B104",
103
- "B105",
104
- "B307",
105
- "B311",
106
- ] # bind 0.0.0.0; hard coded pwd, use of eval, random gen
107
-
99
+ exclude_dirs = []
100
+ skips = []
108
101
 
109
102
  [tool.pylint]
110
103
  jobs = 0
111
104
  recursive = "y"
112
105
  reports = "y"
113
- py-version = "3.10"
106
+ py-version = "3.11"
114
107
  fail-under = "9.8"
115
108
  fail-on = "E,F"
116
109
  clear-cache-post-run = "y"
@@ -8,4 +8,4 @@ Created on 2 Oct 2020
8
8
  :license: BSD 3-Clause
9
9
  """
10
10
 
11
- __version__ = "1.3.1"
11
+ __version__ = "1.3.2"
@@ -21,7 +21,7 @@ DEFAULT_BUFSIZE = 4096 # buffer size for NTRIP client
21
21
  """Default socket buffer size"""
22
22
  EARTH_RADIUS = 6371 # km
23
23
  """Earth radius in km"""
24
- ENV_NTRIP_PASSWORD = "PYGPSCLIENT_PASSWORD"
24
+ ENV_NTRIP_PASSWORD = "PYGPSCLIENT_PASSWORD" # nosec
25
25
  """ Environment variable for NTRIP password """
26
26
  ENV_NTRIP_USER = "PYGPSCLIENT_USER"
27
27
  """ Environment variable for NTRIP user """
@@ -45,7 +45,7 @@ class GNSSSocketServer:
45
45
  app=None,
46
46
  stream: object = None,
47
47
  ipprot: Literal["IPv4", "IPv6"] = "IPv4",
48
- hostip: str = "0.0.0.0",
48
+ hostip: str = "0.0.0.0", # nosec
49
49
  outport: int = OUTPORT,
50
50
  tls: bool = False,
51
51
  maxclients: int = 5,
@@ -141,7 +141,7 @@ def main():
141
141
  "--hostip",
142
142
  required=False,
143
143
  help="Host IP Address Binding (0.0.0.0/:: = all)",
144
- default="0.0.0.0",
144
+ default="0.0.0.0", # nosec
145
145
  )
146
146
  ap.add_argument(
147
147
  "-N",
@@ -280,8 +280,8 @@ def main():
280
280
  )
281
281
  kwargs = set_common_args("gnssserver", ap)
282
282
 
283
- if kwargs["hostip"] == "0.0.0.0" and kwargs["ipprot"] == "IPv6":
284
- kwargs["hostip"] = "::"
283
+ if kwargs["hostip"] == "0.0.0.0" and kwargs["ipprot"] == "IPv6": # nosec
284
+ kwargs["hostip"] = "::" # nosec
285
285
 
286
286
  kwargs["outformat"] = kwargs.pop("format") # avoid 'redefines format' warning
287
287
  _setup_datastream(**kwargs)
@@ -26,7 +26,7 @@ from pynmeagps import NMEAMessage
26
26
  from pyqgc import QGCMessage
27
27
  from pyrtcm import RTCMMessage
28
28
  from pysbf2 import SBFMessage
29
- from pyspartn import SPARTNMessage, date2timetag
29
+ from pyspartn import DEFAULTKEY, SPARTNMessage, date2timetag
30
30
  from pyubx2 import (
31
31
  CARRSOLN,
32
32
  ERR_RAISE,
@@ -51,7 +51,6 @@ from pygnssutils.globals import (
51
51
  FORMAT_JSON,
52
52
  FORMAT_PARSED,
53
53
  FORMAT_PARSEDSTRING,
54
- SPARTN_DEFAULTKEY,
55
54
  VERBOSITY_MEDIUM,
56
55
  )
57
56
  from pygnssutils.gnssreader import (
@@ -120,7 +119,7 @@ class GNSSStreamer:
120
119
  stopevent: Event | NoneType = None,
121
120
  verbosity: Literal[-1, 0, 1, 2, 3] = VERBOSITY_MEDIUM,
122
121
  logtofile: str = "",
123
- spartnkey: str = SPARTN_DEFAULTKEY,
122
+ spartnkey: str = DEFAULTKEY,
124
123
  spartnbasedate: int | datetime = 0, # TIMEBASE
125
124
  **kwargs,
126
125
  ):
@@ -36,6 +36,7 @@ from time import sleep
36
36
  from types import FunctionType
37
37
 
38
38
  from pynmeagps import SocketWrapper
39
+ from pyspartn import DEFAULTKEY
39
40
  from pyubxutils.ubxsimulator import UBXSimulator
40
41
  from serial import Serial, SerialException
41
42
 
@@ -271,7 +272,7 @@ def _setup_output(**kwargs):
271
272
  kwargs["output"] = output
272
273
  _setup_datastream(**kwargs)
273
274
  elif cliout == OUTPUT_HANDLER:
274
- output = eval(output) # pylint: disable=eval-used
275
+ output = eval(output) # pylint: disable=eval-used #nosec
275
276
  kwargs["output"] = output
276
277
  _setup_datastream(**kwargs)
277
278
  else:
@@ -612,7 +613,7 @@ def main():
612
613
  ap.add_argument(
613
614
  "--spartnkey",
614
615
  help="SPARTN decryption key",
615
- default="abcd1234",
616
+ default=DEFAULTKEY,
616
617
  )
617
618
  ap.add_argument(
618
619
  "--spartnbasedate",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygnssutils
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: GNSS Command Line Utilities
5
5
  Author: Steve Smith
6
6
  Author-email: semuadmin@semuconsulting.com
@@ -21,7 +21,6 @@ Classifier: Intended Audience :: Developers
21
21
  Classifier: Intended Audience :: Science/Research
22
22
  Classifier: Intended Audience :: End Users/Desktop
23
23
  Classifier: Programming Language :: Python :: 3
24
- Classifier: Programming Language :: Python :: 3.10
25
24
  Classifier: Programming Language :: Python :: 3.11
26
25
  Classifier: Programming Language :: Python :: 3.12
27
26
  Classifier: Programming Language :: Python :: 3.13
@@ -34,13 +33,13 @@ Requires-Python: >=3.10
34
33
  Description-Content-Type: text/markdown
35
34
  License-File: LICENSE
36
35
  Requires-Dist: certifi>=2026.0.0
37
- Requires-Dist: pynmeagps>=1.1.8
36
+ Requires-Dist: pynmeagps>=1.2.0
38
37
  Requires-Dist: pyqgc>=1.0.1
39
38
  Requires-Dist: pyrtcm>=1.2.1
40
39
  Requires-Dist: pysbf2>=1.0.7
41
40
  Requires-Dist: pyserial>=3.5
42
- Requires-Dist: pyspartn>=1.1.0
43
- Requires-Dist: pyubx2>=1.4.0
41
+ Requires-Dist: pyspartn>=1.1.2
42
+ Requires-Dist: pyubx2>=1.4.1
44
43
  Requires-Dist: pyubxutils>=1.0.6
45
44
  Requires-Dist: pyunigps>=1.0.1
46
45
  Dynamic: license-file
@@ -1,10 +1,10 @@
1
1
  certifi>=2026.0.0
2
- pynmeagps>=1.1.8
2
+ pynmeagps>=1.2.0
3
3
  pyqgc>=1.0.1
4
4
  pyrtcm>=1.2.1
5
5
  pysbf2>=1.0.7
6
6
  pyserial>=3.5
7
- pyspartn>=1.1.0
8
- pyubx2>=1.4.0
7
+ pyspartn>=1.1.2
8
+ pyubx2>=1.4.1
9
9
  pyubxutils>=1.0.6
10
10
  pyunigps>=1.0.1
@@ -10,7 +10,7 @@ Created on 26 May 2022
10
10
 
11
11
  # pylint: disable=line-too-long, invalid-name, missing-docstring, no-member
12
12
 
13
- from subprocess import run, PIPE
13
+ from subprocess import run, PIPE #nosec
14
14
  import sys
15
15
  import unittest
16
16
  from io import StringIO
@@ -41,17 +41,17 @@ class StreamTest(unittest.TestCase):
41
41
  return self._strout.getvalue().strip()
42
42
 
43
43
  def teststreamer(self):
44
- res = run(["gnssstreamer", "-h"], stdout=PIPE, check=False)
44
+ res = run(["gnssstreamer", "-h"], stdout=PIPE, check=False) #nosec
45
45
  res = res.stdout.decode("utf-8")
46
46
  self.assertEqual(res[0:19], "usage: gnssstreamer")
47
47
 
48
48
  def testserver(self):
49
- res = run(["gnssserver", "-h"], stdout=PIPE, check=False)
49
+ res = run(["gnssserver", "-h"], stdout=PIPE, check=False) #nosec
50
50
  res = res.stdout.decode("utf-8")
51
51
  self.assertEqual(res[0:17], "usage: gnssserver")
52
52
 
53
53
  def testntripclient(self):
54
- res = run(["gnssntripclient", "-h"], stdout=PIPE, check=False)
54
+ res = run(["gnssntripclient", "-h"], stdout=PIPE, check=False) #nosec
55
55
  res = res.stdout.decode("utf-8")
56
56
  self.assertEqual(res[0:22], "usage: gnssntripclient")
57
57
 
@@ -133,7 +133,7 @@ class gnssstreamerTest(unittest.TestCase):
133
133
  protfilter=2,
134
134
  msgfilter="NAV-PVT",
135
135
  limit=2,
136
- output=eval("lambda msg: print(f'lat: {msg.lat}, lon: {msg.lon}')"),
136
+ output=eval("lambda msg: print(f'lat: {msg.lat}, lon: {msg.lon}')"), #nosec
137
137
  )
138
138
  gns.run()
139
139
  sys.stdout = saved_stdout
@@ -200,15 +200,15 @@ class StaticTest(unittest.TestCase):
200
200
  msg = GNSSMessage(2,533,b"1234567890")
201
201
  self.assertEqual(str(msg),"<UBX(0x0215, length=10, data=b'\\x31\\x32\\x33\\x34\\x35\\x36\\x37\\x38\\x39\\x30')>")
202
202
  # print(repr(msg))
203
- self.assertEqual(str(eval(repr(msg))),str(msg))
203
+ self.assertEqual(str(eval(repr(msg))),str(msg)) #nosec
204
204
  msg = GNSSMessage(1,"GNGSA",b"abcdefghij")
205
205
  self.assertEqual(str(msg),"<NMEA(GNGSA, length=10, data=b'\\x61\\x62\\x63\\x64\\x65\\x66\\x67\\x68\\x69\\x6a')>")
206
206
  # print(repr(msg))
207
- self.assertEqual(str(eval(repr(msg))),str(msg))
207
+ self.assertEqual(str(eval(repr(msg))),str(msg)) #nosec
208
208
  msg = GNSSMessage(32,5133,b"12345678901")
209
209
  self.assertEqual(str(msg),"<UNI(5133, length=11, data=b'\\x31\\x32\\x33\\x34\\x35\\x36\\x37\\x38\\x39\\x30\\x31')>")
210
210
  # print(repr(msg))
211
- self.assertEqual(str(eval(repr(msg))),str(msg))
211
+ self.assertEqual(str(eval(repr(msg))),str(msg)) #nosec
212
212
 
213
213
 
214
214
  if __name__ == "__main__":
File without changes
File without changes
File without changes