robotpy-cscore 2027.0.0a2__cp312-cp312-win_amd64.whl → 2027.0.0a3__cp312-cp312-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 robotpy-cscore might be problematic. Click here for more details.

cscore/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from . import _init__cscore
2
2
 
3
- # autogenerated by 'robotpy-build create-imports cscore cscore._cscore'
3
+ # autogenerated by 'semiwrap create-imports cscore cscore._cscore'
4
4
  from ._cscore import (
5
5
  AxisCamera,
6
6
  CameraServer,
cscore/__main__.py CHANGED
@@ -82,13 +82,6 @@ def main():
82
82
  nt_server_group.add_argument(
83
83
  "--team", help="Team number to specify robot", type=int
84
84
  )
85
- parser.add_argument(
86
- "--nt-protocol",
87
- choices=[3, 4],
88
- type=int,
89
- help="NetworkTables protocol",
90
- default=4,
91
- )
92
85
  parser.add_argument(
93
86
  "--nt-identity", default="cscore", help="NetworkTables identity"
94
87
  )
@@ -118,10 +111,7 @@ def main():
118
111
  else:
119
112
  ntinst.setServer(args.robot)
120
113
 
121
- if args.nt_protocol == 3:
122
- ntinst.startClient3(args.nt_identity)
123
- else:
124
- ntinst.startClient4(args.nt_identity)
114
+ ntinst.startClient(args.nt_identity)
125
115
 
126
116
  # If stdin is a pipe, then die when the pipe goes away
127
117
  # -> this allows us to detect if a parent process exits
@@ -159,12 +149,4 @@ def main():
159
149
 
160
150
 
161
151
  if __name__ == "__main__":
162
- # Setup wpi::now on roborio when executed as __main__
163
- try:
164
- from ._cscore import _setupWpiNow # type: ignore
165
-
166
- _setupWpiNow()
167
- except ImportError:
168
- pass
169
-
170
152
  main()
Binary file
Binary file
cscore/_cscore.pyi CHANGED
@@ -1,9 +1,10 @@
1
1
  from __future__ import annotations
2
+ import collections.abc
2
3
  import numpy
3
4
  import typing
4
5
  import wpiutil
5
6
  import wpiutil._wpiutil
6
- __all__ = ['AxisCamera', 'CameraServer', 'CvSink', 'CvSource', 'HttpCamera', 'ImageSink', 'ImageSource', 'MjpegServer', 'RawEvent', 'UsbCamera', 'UsbCameraInfo', 'VideoCamera', 'VideoEvent', 'VideoListener', 'VideoMode', 'VideoProperty', 'VideoSink', 'VideoSource', 'runMainRunLoop', 'runMainRunLoopTimeout', 'stopMainRunLoop']
7
+ __all__: list[str] = ['AxisCamera', 'CameraServer', 'CvSink', 'CvSource', 'HttpCamera', 'ImageSink', 'ImageSource', 'MjpegServer', 'RawEvent', 'UsbCamera', 'UsbCameraInfo', 'VideoCamera', 'VideoEvent', 'VideoListener', 'VideoMode', 'VideoProperty', 'VideoSink', 'VideoSource', 'runMainRunLoop', 'runMainRunLoopTimeout', 'stopMainRunLoop']
7
8
  class AxisCamera(HttpCamera):
8
9
  """
9
10
  A source that represents an Axis IP camera.
@@ -732,7 +733,7 @@ class UsbCameraInfo:
732
733
  Other path aliases to device (e.g. '/dev/v4l/by-id/...' etc on Linux)
733
734
  """
734
735
  @otherPaths.setter
735
- def otherPaths(self, arg0: list[str]) -> None:
736
+ def otherPaths(self, arg0: collections.abc.Sequence[str]) -> None:
736
737
  ...
737
738
  @property
738
739
  def path(self) -> str:
@@ -877,7 +878,7 @@ class VideoListener:
877
878
  def __init__(self) -> None:
878
879
  ...
879
880
  @typing.overload
880
- def __init__(self, callback: typing.Callable[[VideoEvent], None], eventMask: typing.SupportsInt, immediateNotify: bool) -> None:
881
+ def __init__(self, callback: collections.abc.Callable[[VideoEvent], None], eventMask: typing.SupportsInt, immediateNotify: bool) -> None:
881
882
  """
882
883
  Create an event listener.
883
884
 
@@ -1599,7 +1600,7 @@ class VideoSource:
1599
1600
 
1600
1601
  :returns: True if set successfully
1601
1602
  """
1602
- def _setLogger(func: typing.Callable[[typing.SupportsInt, str, typing.SupportsInt, str], None], min_level: typing.SupportsInt) -> None:
1603
+ def _setLogger(func: collections.abc.Callable[[typing.SupportsInt, str, typing.SupportsInt, str], None], min_level: typing.SupportsInt) -> None:
1603
1604
  ...
1604
1605
  def runMainRunLoop() -> None:
1605
1606
  ...
cscore/imagewriter.py CHANGED
@@ -104,7 +104,7 @@ class ImageWriter:
104
104
  if self._location is None:
105
105
  # This assures that we only log when a USB memory stick is plugged in
106
106
  if not os.path.exists(self.location_root):
107
- raise IOError(
107
+ raise OSError(
108
108
  "Logging disabled, %s does not exist" % self.location_root
109
109
  )
110
110
 
@@ -139,7 +139,7 @@ class ImageWriter:
139
139
 
140
140
  last = now
141
141
 
142
- except IOError as e:
142
+ except OSError as e:
143
143
  logger.error("Error logging images: %s", e)
144
144
 
145
145
  logger.warn("Storage thread exited")
cscore/py.typed ADDED
File without changes
cscore/src/main.cpp CHANGED
@@ -3,12 +3,6 @@
3
3
 
4
4
  #include "cscore_cpp.h"
5
5
 
6
- #ifdef __FRC_SYSTEMCORE__
7
- extern "C" {
8
- void WPI_Impl_SetupNowUseDefaultOnRio(void);
9
- }
10
- #endif
11
-
12
6
  SEMIWRAP_PYBIND11_MODULE(m) {
13
7
  initWrapper(m);
14
8
 
@@ -22,8 +16,4 @@ SEMIWRAP_PYBIND11_MODULE(m) {
22
16
  CS_Shutdown();
23
17
  });
24
18
  m.add_object("_cleanup", cleanup);
25
-
26
- #ifdef __FRC_SYSTEMCORE__
27
- m.def("_setupWpiNow", WPI_Impl_SetupNowUseDefaultOnRio);
28
- #endif
29
- }
19
+ }
cscore/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  # This file is automatically generated, DO NOT EDIT
2
2
 
3
- version = __version__ = "2027.0.0a2"
3
+ version = __version__ = "2027.0.0a3"
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotpy-cscore
3
- Version: 2027.0.0a2
3
+ Version: 2027.0.0a3
4
4
  Summary: RobotPy bindings for cscore image processing library
5
5
  Project-URL: Source code, https://github.com/robotpy/mostrobotpy
6
6
  Author-email: RobotPy Development Team <robotpy@googlegroups.com>
7
7
  License-Expression: BSD-3-Clause
8
8
  License-File: LICENSE
9
- Requires-Dist: pyntcore==2027.0.0a2
10
- Requires-Dist: robotpy-wpinet==2027.0.0a2
11
- Requires-Dist: robotpy-wpiutil==2027.0.0a2
9
+ Requires-Dist: pyntcore==2027.0.0a3
10
+ Requires-Dist: robotpy-wpinet==2027.0.0a3
11
+ Requires-Dist: robotpy-wpiutil==2027.0.0a3
@@ -1,18 +1,19 @@
1
- cscore/__init__.py,sha256=YG3QuvOLeMKGG0IoXUPwMuZsIRFF7Uojcq3ES35KP4Y,1120
2
- cscore/__main__.py,sha256=No4nfyEHnbuyavQ9yInscvbiEGFPxxse9klZ-DSVMhc,4588
1
+ cscore/__init__.py,sha256=2KPIpDfsggg3MteQbYPSO_mU5j6HI1MsCUTaBuCRqus,1115
2
+ cscore/__main__.py,sha256=77vxHVW5oOZ_b7N29bCeg1rxbEAG214GDL0OzqkXceI,4136
3
3
  cscore/_logging.py,sha256=uv1Shlu49aPgQpRn5yD2ybT4N8ewJS3qUFOn8YTffwg,333
4
4
  cscore/grip.py,sha256=qC6MbWvVllpnnsm10f31gqq4_PMWI_G9GKt3PfOaUpo,1042
5
- cscore/imagewriter.py,sha256=RAWRRhL3DLNampZJjdd7Ye_8P1AmiYAZsWhnwov5id0,4537
6
- cscore/version.py,sha256=m5JIPP5xLGWsNzeDUjmwb5-JU2GJQyit1d9COO9ZZps,93
5
+ cscore/imagewriter.py,sha256=qJcokzyD_Dd2IT7IuNdrT-vLwRg5IVyR_pj7m94sKt8,4537
6
+ cscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ cscore/version.py,sha256=WkUEqhrEcOfbZzc0XgtzdGbqHNUvbdcCzyKcatdd9uw,93
7
8
  cscore/cvnp/README.md,sha256=197MQ-gG-pZf9YAUZqcHXLKk8au8WtxXrfFf7lnwHAo,1175
8
9
  cscore/cvnp/cvnp.cpp,sha256=dE3cBEbVVXaEdULdxbzglt9elRCxhkcXjF69W_Ak6so,9216
9
10
  cscore/cvnp/cvnp.h,sha256=021_w8fhAlnew4Nc88ypPAdT9sBPwPzXwGPRiGIY1_Q,14937
10
11
  cscore/cvnp/cvnp_synonyms.cpp,sha256=ZpLZzmK5ZcrIgLfi_j7eJ_NXLNtcb8ymDWehYuVVHvo,2419
11
12
  cscore/cvnp/cvnp_synonyms.h,sha256=MgU4yOOXMhGGLrKb06dX4nsQLtqkq_1gDE6ToR3mjFo,589
12
- cscore/src/main.cpp,sha256=fCZIJjUf7Evy7Dib58Mtm-nGmcknwTHqush1VGBP8cA,757
13
- cscore/_cscore.cp312-win_amd64.lib,sha256=m6LiOPdVrjTk-8P1EX-LxzFQau5IPb-jo23DCSH1htA,2012
14
- cscore/_cscore.cp312-win_amd64.pyd,sha256=kt4jcmRwbo2k9mPW6KZ3YtMaAgzN3zkOiVIg28vU_K8,3701760
15
- cscore/_cscore.pyi,sha256=07nK9TE6j31n0hInXbzb7hjWmugeWF-qkYMrP2X0LIw,57303
13
+ cscore/src/main.cpp,sha256=QKR7KwsRnJ0XHCsVryAizRB1tOIlqAeAWlVfsqovyN4,548
14
+ cscore/_cscore.cp312-win_amd64.lib,sha256=-_-VR9_4PfeIhb5xrJWhHKLQ-xIOhMPV6k2IKT9IUbU,2012
15
+ cscore/_cscore.cp312-win_amd64.pyd,sha256=_vL3i6YADLCqoyBvjdQPz1Y6rK6K0H8KBAy0pbpJ3sY,3722240
16
+ cscore/_cscore.pyi,sha256=M3I59SSAMW9QrzcR_DqG5nWa0OtQADY_VgdacDldbXM,57376
16
17
  cscore/_init__cscore.py,sha256=-yKGqNCAEqvHZ2kbrDeNapB2BcNMF76wBh4S1nKAU-4,156
17
18
  cscore/cscore-casters.pc,sha256=_Mf7zY4dTBwzS0oX4z9YIIg-RCzCVh3AIs_tPVAjBo0,200
18
19
  cscore/cscore-casters.pybind11.json,sha256=OhrB1ZkzUlHqaL5_tPr0hvifkq13qZZ2pbXVSprxLho,89
@@ -35,8 +36,8 @@ cscore/trampolines/cs__VideoProperty.hpp,sha256=AvE0I2LcbUvrXuPa28afi2bCSsjzj8bx
35
36
  cscore/trampolines/cs__VideoSink.hpp,sha256=wdIqcz7YcJU4mMfgVuLyZg7Tedl2iaBxAPzv6siIUSI,181
36
37
  cscore/trampolines/cs__VideoSource.hpp,sha256=tuOysl9BxSX0CSjRvFOqnhtPEH78wHGNVOK_dMkOjU8,183
37
38
  cscore/trampolines/frc__CameraServer.hpp,sha256=HrifiweHkUgzh3snsOD0y0YIE8rE_ovyg2WFnKh2Xbk,248
38
- robotpy_cscore-2027.0.0a2.dist-info/METADATA,sha256=ImEMm-M3PihIxTTQrIOHzPkjZeFLto-WmQ0Z7pSDjiA,432
39
- robotpy_cscore-2027.0.0a2.dist-info/WHEEL,sha256=q-CHs1Z6HMI6XPClGVH4H2qlNYhyGLYJ0JHEDfXLBZo,97
40
- robotpy_cscore-2027.0.0a2.dist-info/entry_points.txt,sha256=MTVv-2rIw51vWKhX4bVj581sChRKQvZp9WTUlp3mGiY,53
41
- robotpy_cscore-2027.0.0a2.dist-info/licenses/LICENSE,sha256=eday0nHMlO9Rc7a6n0ONgNEe6N20r5xNWivVL5n-fN4,3138
42
- robotpy_cscore-2027.0.0a2.dist-info/RECORD,,
39
+ robotpy_cscore-2027.0.0a3.dist-info/METADATA,sha256=R2tXv1rniJjWfY7wL8KhxFVNirlYu8ptrgkC4xMHMLw,432
40
+ robotpy_cscore-2027.0.0a3.dist-info/WHEEL,sha256=q-CHs1Z6HMI6XPClGVH4H2qlNYhyGLYJ0JHEDfXLBZo,97
41
+ robotpy_cscore-2027.0.0a3.dist-info/entry_points.txt,sha256=MTVv-2rIw51vWKhX4bVj581sChRKQvZp9WTUlp3mGiY,53
42
+ robotpy_cscore-2027.0.0a3.dist-info/licenses/LICENSE,sha256=eday0nHMlO9Rc7a6n0ONgNEe6N20r5xNWivVL5n-fN4,3138
43
+ robotpy_cscore-2027.0.0a3.dist-info/RECORD,,