pyxcp 0.21.9__cp310-cp310-win_amd64.whl → 0.22.23__cp310-cp310-win_amd64.whl

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.

Potentially problematic release.


This version of pyxcp might be problematic. Click here for more details.

Files changed (176) hide show
  1. pyxcp/__init__.py +12 -20
  2. pyxcp/aml/EtasCANMonitoring.a2l +82 -83
  3. pyxcp/aml/XCP_Common.aml +0 -1
  4. pyxcp/aml/XCPonUSB.aml +1 -1
  5. pyxcp/aml/ifdata_CAN.a2l +0 -1
  6. pyxcp/aml/ifdata_Eth.a2l +0 -1
  7. pyxcp/aml/ifdata_Flx.a2l +0 -1
  8. pyxcp/aml/ifdata_SxI.a2l +0 -1
  9. pyxcp/aml/ifdata_USB.a2l +0 -1
  10. pyxcp/asam/types.py +4 -4
  11. pyxcp/asamkeydll.c +0 -1
  12. pyxcp/checksum.py +0 -1
  13. pyxcp/cmdline.py +32 -50
  14. pyxcp/config/__init__.py +1100 -0
  15. pyxcp/config/legacy.py +120 -0
  16. pyxcp/constants.py +12 -13
  17. pyxcp/cpp_ext/__init__.py +0 -0
  18. pyxcp/cpp_ext/bin.hpp +104 -0
  19. pyxcp/cpp_ext/blockmem.hpp +58 -0
  20. pyxcp/cpp_ext/cpp_ext.cp310-win_amd64.pyd +0 -0
  21. pyxcp/cpp_ext/cpp_ext.cp38-win_amd64.pyd +0 -0
  22. pyxcp/cpp_ext/cpp_ext.cp39-win_amd64.pyd +0 -0
  23. pyxcp/cpp_ext/daqlist.hpp +200 -0
  24. pyxcp/cpp_ext/event.hpp +67 -0
  25. pyxcp/cpp_ext/extension_wrapper.cpp +96 -0
  26. pyxcp/cpp_ext/helper.hpp +280 -0
  27. pyxcp/cpp_ext/mcobject.hpp +246 -0
  28. pyxcp/cpp_ext/tsqueue.hpp +46 -0
  29. pyxcp/daq_stim/__init__.py +228 -0
  30. pyxcp/daq_stim/optimize/__init__.py +67 -0
  31. pyxcp/daq_stim/optimize/binpacking.py +41 -0
  32. pyxcp/daq_stim/scheduler.cpp +28 -0
  33. pyxcp/daq_stim/scheduler.hpp +75 -0
  34. pyxcp/daq_stim/stim.cp310-win_amd64.pyd +0 -0
  35. pyxcp/daq_stim/stim.cp38-win_amd64.pyd +0 -0
  36. pyxcp/daq_stim/stim.cp39-win_amd64.pyd +0 -0
  37. pyxcp/daq_stim/stim.cpp +13 -0
  38. pyxcp/daq_stim/stim.hpp +604 -0
  39. pyxcp/daq_stim/stim_wrapper.cpp +48 -0
  40. pyxcp/dllif.py +21 -18
  41. pyxcp/errormatrix.py +5 -3
  42. pyxcp/examples/conf_can.toml +4 -2
  43. pyxcp/examples/conf_can_vector.json +9 -9
  44. pyxcp/examples/conf_can_vector.toml +4 -2
  45. pyxcp/examples/conf_eth.toml +5 -2
  46. pyxcp/examples/conf_nixnet.json +18 -18
  47. pyxcp/examples/conf_sxi.json +7 -7
  48. pyxcp/examples/ex_arrow.py +109 -0
  49. pyxcp/examples/ex_csv.py +85 -0
  50. pyxcp/examples/ex_excel.py +95 -0
  51. pyxcp/examples/ex_mdf.py +124 -0
  52. pyxcp/examples/ex_sqlite.py +128 -0
  53. pyxcp/examples/run_daq.py +148 -0
  54. pyxcp/examples/xcp_policy.py +6 -7
  55. pyxcp/examples/xcp_read_benchmark.py +8 -6
  56. pyxcp/examples/xcp_skel.py +0 -2
  57. pyxcp/examples/xcp_unlock.py +1 -1
  58. pyxcp/examples/xcp_user_supplied_driver.py +1 -2
  59. pyxcp/examples/xcphello.py +6 -3
  60. pyxcp/examples/xcphello_recorder.py +4 -4
  61. pyxcp/master/__init__.py +1 -2
  62. pyxcp/master/errorhandler.py +107 -74
  63. pyxcp/master/master.py +196 -114
  64. pyxcp/py.typed +0 -0
  65. pyxcp/recorder/__init__.py +27 -6
  66. pyxcp/recorder/converter/__init__.py +37 -0
  67. pyxcp/recorder/lz4.c +129 -51
  68. pyxcp/recorder/lz4.h +45 -28
  69. pyxcp/recorder/lz4hc.c +560 -156
  70. pyxcp/recorder/lz4hc.h +1 -1
  71. pyxcp/recorder/mio.hpp +721 -767
  72. pyxcp/recorder/reader.hpp +139 -0
  73. pyxcp/recorder/reco.py +5 -8
  74. pyxcp/recorder/rekorder.cp310-win_amd64.pyd +0 -0
  75. pyxcp/recorder/rekorder.cp38-win_amd64.pyd +0 -0
  76. pyxcp/recorder/rekorder.cp39-win_amd64.pyd +0 -0
  77. pyxcp/recorder/rekorder.cpp +18 -22
  78. pyxcp/recorder/rekorder.hpp +200 -587
  79. pyxcp/recorder/setup.py +11 -10
  80. pyxcp/recorder/test_reko.py +2 -3
  81. pyxcp/recorder/unfolder.hpp +1332 -0
  82. pyxcp/recorder/wrap.cpp +171 -9
  83. pyxcp/recorder/writer.hpp +302 -0
  84. pyxcp/scripts/pyxcp_probe_can_drivers.py +0 -2
  85. pyxcp/scripts/xcp_examples.py +64 -0
  86. pyxcp/scripts/xcp_fetch_a2l.py +15 -10
  87. pyxcp/scripts/xcp_id_scanner.py +2 -6
  88. pyxcp/scripts/xcp_info.py +101 -63
  89. pyxcp/scripts/xcp_profile.py +27 -0
  90. pyxcp/stim/__init__.py +0 -0
  91. pyxcp/tests/test_asam_types.py +2 -2
  92. pyxcp/tests/test_binpacking.py +186 -0
  93. pyxcp/tests/test_can.py +1132 -38
  94. pyxcp/tests/test_checksum.py +2 -1
  95. pyxcp/tests/test_daq.py +193 -0
  96. pyxcp/tests/test_frame_padding.py +6 -3
  97. pyxcp/tests/test_master.py +42 -31
  98. pyxcp/tests/test_transport.py +12 -12
  99. pyxcp/tests/test_utils.py +2 -5
  100. pyxcp/timing.py +0 -2
  101. pyxcp/transport/__init__.py +9 -9
  102. pyxcp/transport/base.py +149 -127
  103. pyxcp/transport/base_transport.hpp +0 -0
  104. pyxcp/transport/can.py +194 -167
  105. pyxcp/transport/eth.py +80 -82
  106. pyxcp/transport/sxi.py +106 -60
  107. pyxcp/transport/transport_wrapper.cpp +0 -0
  108. pyxcp/transport/usb_transport.py +65 -83
  109. pyxcp/types.py +69 -20
  110. pyxcp/utils.py +47 -16
  111. pyxcp/vector/map.py +1 -3
  112. {pyxcp-0.21.9.dist-info → pyxcp-0.22.23.dist-info}/METADATA +28 -23
  113. pyxcp-0.22.23.dist-info/RECORD +134 -0
  114. {pyxcp-0.21.9.dist-info → pyxcp-0.22.23.dist-info}/WHEEL +1 -1
  115. {pyxcp-0.21.9.dist-info → pyxcp-0.22.23.dist-info}/entry_points.txt +2 -0
  116. pyxcp/config.py +0 -57
  117. pyxcp/cxx/asynchiofactory.hpp +0 -24
  118. pyxcp/cxx/blocking_client.cpp +0 -44
  119. pyxcp/cxx/blocking_socket.cpp +0 -43
  120. pyxcp/cxx/blocking_socket.hpp +0 -558
  121. pyxcp/cxx/concurrent_queue.hpp +0 -60
  122. pyxcp/cxx/eth.hpp +0 -57
  123. pyxcp/cxx/exceptions.hpp +0 -30
  124. pyxcp/cxx/iasyncioservice.hpp +0 -31
  125. pyxcp/cxx/iresource.hpp +0 -17
  126. pyxcp/cxx/isocket.hpp +0 -22
  127. pyxcp/cxx/linux/epoll.cpp +0 -51
  128. pyxcp/cxx/linux/epoll.hpp +0 -87
  129. pyxcp/cxx/linux/lit_tester.cpp +0 -19
  130. pyxcp/cxx/linux/socket.hpp +0 -234
  131. pyxcp/cxx/linux/timeout.hpp +0 -81
  132. pyxcp/cxx/memoryblock.hpp +0 -42
  133. pyxcp/cxx/pool.hpp +0 -81
  134. pyxcp/cxx/poolmgr.cpp +0 -6
  135. pyxcp/cxx/poolmgr.hpp +0 -31
  136. pyxcp/cxx/test_queue.cpp +0 -69
  137. pyxcp/cxx/timestamp.hpp +0 -84
  138. pyxcp/cxx/utils.cpp +0 -38
  139. pyxcp/cxx/utils.hpp +0 -29
  140. pyxcp/cxx/win/iocp.cpp +0 -242
  141. pyxcp/cxx/win/iocp.hpp +0 -42
  142. pyxcp/cxx/win/perhandledata.hpp +0 -24
  143. pyxcp/cxx/win/periodata.hpp +0 -97
  144. pyxcp/cxx/win/socket.hpp +0 -185
  145. pyxcp/cxx/win/timeout.hpp +0 -83
  146. pyxcp/examples/conf_can.json +0 -20
  147. pyxcp/examples/conf_eth.json +0 -8
  148. pyxcp/logger.py +0 -67
  149. pyxcp/tests/test_config.py +0 -62
  150. pyxcp/transport/candriver/__init__.py +0 -2
  151. pyxcp/transport/candriver/pc_canalystii.py +0 -27
  152. pyxcp/transport/candriver/pc_etas.py +0 -25
  153. pyxcp/transport/candriver/pc_gsusb.py +0 -23
  154. pyxcp/transport/candriver/pc_iscan.py +0 -23
  155. pyxcp/transport/candriver/pc_ixxat.py +0 -27
  156. pyxcp/transport/candriver/pc_kvaser.py +0 -39
  157. pyxcp/transport/candriver/pc_neovi.py +0 -31
  158. pyxcp/transport/candriver/pc_nican.py +0 -23
  159. pyxcp/transport/candriver/pc_nixnet.py +0 -23
  160. pyxcp/transport/candriver/pc_pcan.py +0 -25
  161. pyxcp/transport/candriver/pc_seeed.py +0 -28
  162. pyxcp/transport/candriver/pc_serial.py +0 -27
  163. pyxcp/transport/candriver/pc_slcan.py +0 -29
  164. pyxcp/transport/candriver/pc_socketcan.py +0 -23
  165. pyxcp/transport/candriver/pc_systec.py +0 -29
  166. pyxcp/transport/candriver/pc_usb2can.py +0 -30
  167. pyxcp/transport/candriver/pc_vector.py +0 -34
  168. pyxcp/transport/candriver/python_can.py +0 -101
  169. pyxcp/transport/cxx_ext/CMakeLists.txt +0 -51
  170. pyxcp/transport/cxx_ext/setup.py +0 -49
  171. pyxcp/transport/cxx_ext/tests/test_basic_socket.cpp +0 -39
  172. pyxcp/transport/cxx_ext/tests/test_pool.cpp +0 -39
  173. pyxcp/transport/cxx_ext/tests/test_timestamp.cpp +0 -27
  174. pyxcp-0.21.9.dist-info/RECORD +0 -147
  175. rekorder.cp310-win_amd64.pyd +0 -0
  176. {pyxcp-0.21.9.dist-info/licenses → pyxcp-0.22.23.dist-info}/LICENSE +0 -0
pyxcp/recorder/setup.py CHANGED
@@ -1,17 +1,18 @@
1
- import os
2
- import subprocess
3
-
4
- from distutils.core import Extension
1
+ import subprocess # nosec
5
2
  from distutils.core import setup
6
- from pybind11.setup_helpers import build_ext
7
- from pybind11.setup_helpers import naive_recompile
8
- from pybind11.setup_helpers import ParallelCompile
9
- from pybind11.setup_helpers import Pybind11Extension
3
+
4
+ from pybind11.setup_helpers import (
5
+ ParallelCompile,
6
+ Pybind11Extension,
7
+ build_ext,
8
+ naive_recompile,
9
+ )
10
+
10
11
 
11
12
  # ParallelCompile("NPY_NUM_BUILD_JOBS").install()
12
13
  ParallelCompile("NPY_NUM_BUILD_JOBS", needs_recompile=naive_recompile).install()
13
14
 
14
- INCLUDE_DIRS = subprocess.getoutput("pybind11-config --include")
15
+ INCLUDE_DIRS = subprocess.getoutput("pybind11-config --include") # nosec
15
16
 
16
17
  # os.environ ["CFLAGS"] = ''
17
18
 
@@ -23,7 +24,7 @@ ext_modules = [
23
24
  Pybind11Extension(
24
25
  EXT_NAMES[0],
25
26
  include_dirs=[INCLUDE_DIRS],
26
- sources=["lz4.cpp", "wrap.cpp"],
27
+ sources=["lz4.c", "wrap.cpp"],
27
28
  define_macros=[("EXTENSION_NAME", EXT_NAMES[0])],
28
29
  cxx_std=20, # Extension will use C++20 generators/coroutines.
29
30
  ),
@@ -1,8 +1,7 @@
1
1
  from time import perf_counter
2
2
 
3
- from pyxcp.recorder import FrameCategory
4
- from pyxcp.recorder import XcpLogFileReader
5
- from pyxcp.recorder import XcpLogFileWriter
3
+ from pyxcp.recorder import FrameCategory, XcpLogFileReader, XcpLogFileWriter
4
+
6
5
 
7
6
  # Pre-allocate a 100MB file -- Note: due to the nature of memory-mapped files, this is a HARD limit.
8
7
  # Chunk size is 1MB (i.e. compression granularity).