scirodev 0.2.1__tar.gz → 0.3.0__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: scirodev
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: PeakHub / sciro extensions to Pybricks: typed API stubs (sciro.*) and hub tooling on top of pybricksdev
5
5
  Author: Thomas Schank
6
6
  License: MIT
@@ -41,7 +41,7 @@ Then your IDE/type checker knows these, which the upstream `pybricks` stubs don'
41
41
  ```python
42
42
  from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
43
43
  from sciro.iodevices import PUMPDevice # generic PUMP device access
44
- from sciro.floorpro import FloorPro # LP-FloorPro convenience class
44
+ from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
45
45
  from sciro.hubs import PeakHub # hub class incl. display.device()
46
46
 
47
47
  hub = PeakHub()
@@ -21,7 +21,7 @@ Then your IDE/type checker knows these, which the upstream `pybricks` stubs don'
21
21
  ```python
22
22
  from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
23
23
  from sciro.iodevices import PUMPDevice # generic PUMP device access
24
- from sciro.floorpro import FloorPro # LP-FloorPro convenience class
24
+ from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
25
25
  from sciro.hubs import PeakHub # hub class incl. display.device()
26
26
 
27
27
  hub = PeakHub()
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scirodev"
7
- version = "0.2.1"
7
+ version = "0.3.0"
8
8
  description = "PeakHub / sciro extensions to Pybricks: typed API stubs (sciro.*) and hub tooling on top of pybricksdev"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -2,5 +2,5 @@
2
2
 
3
3
  These are typing stubs (like the `pybricks` package): the real modules are frozen
4
4
  into the PeakHub firmware. Import from `sciro.parameters`, `sciro.iodevices` and
5
- `sciro.floorpro`.
5
+ `sciro.pump`.
6
6
  """
@@ -0,0 +1,13 @@
1
+ """sciro.floorpro -- deprecated alias of :mod:`sciro.pump` (where the FloorPro
2
+ class lives now). Kept so older programs keep type-checking.
3
+ """
4
+
5
+ from .pump import ( # noqa: F401 (re-exports)
6
+ IMU as IMU,
7
+ ColorSensor as ColorSensor,
8
+ FloorPro as FloorPro,
9
+ IRCalib as IRCalib,
10
+ IRRaw as IRRaw,
11
+ Line as Line,
12
+ Pixels as Pixels,
13
+ )
@@ -38,7 +38,7 @@ class LightMatrix(_common.LightMatrix):
38
38
  the program ends.
39
39
 
40
40
  Arguments:
41
- device (FloorPro): The device to mirror.
41
+ device (FloorPro): The device to mirror (any ``sciro.pump`` device with a display stream).
42
42
  brightness (Number, %): Brightness of the mirrored pixels, 0 .. 1000.
43
43
  Above 100 the picture is amplified (clipping at full), since
44
44
  the matrix is far dimmer than a sensor's own LED strip.
@@ -21,7 +21,7 @@ class PUMPDevice:
21
21
  """Generic access to a PUMP device (Power UART Multiplex Protocol) on a
22
22
  PeakHub port. Streams are addressed by id (1..N); state and data are raw
23
23
  ``bytes`` decoded by the user or a convenience class such as
24
- :class:`sciro.floorpro.FloorPro`. Spec: ``PUMP-Protocol.md``.
24
+ :class:`sciro.pump.FloorPro`. Spec: ``PUMP-Protocol.md``.
25
25
  """
26
26
 
27
27
  OFF: int = 0
@@ -1,4 +1,6 @@
1
- """sciro.floorpro -- the LP-FloorPro line sensor over PUMP (PeakHub).
1
+ """sciro.pump -- PUMP devices on the PeakHub, the PUMP counterpart of
2
+ ``pybricks.pupdevices``: the generic :class:`PUMPDevice` plus one class per
3
+ device (currently the LP-FloorPro line sensor).
2
4
 
3
5
  Stub for the frozen module of the same name. Every reading method returns the
4
6
  value directly, or an awaitable under multitasking.
@@ -20,7 +22,8 @@ if TYPE_CHECKING:
20
22
  MaybeAwaitableRGBC,
21
23
  )
22
24
 
23
- from .iodevices import PUMPDevice, StreamInfo
25
+ from .iodevices import PUMPDevice as PUMPDevice # noqa: F401 (re-export)
26
+ from .iodevices import StreamInfo
24
27
  from .parameters import Port as _Port
25
28
 
26
29
 
@@ -80,7 +83,7 @@ class Pixels(_Stream):
80
83
  """The sensor's own LED strip picture, rendered on the device at full scale:
81
84
  18 ``(r, g, b)`` triplets = IR channels 0..14, EXT1, EXT2, battery. Off by
82
85
  default. A PeakHub mirrors it on its 5x5 matrix with
83
- :meth:`sciro.hubs.PeakHub.display.device`.
86
+ :meth:`sciro.hubs.LightMatrix.device`.
84
87
  """
85
88
 
86
89
  def read(self) -> MaybeAwaitablePixels:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scirodev
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: PeakHub / sciro extensions to Pybricks: typed API stubs (sciro.*) and hub tooling on top of pybricksdev
5
5
  Author: Thomas Schank
6
6
  License: MIT
@@ -41,7 +41,7 @@ Then your IDE/type checker knows these, which the upstream `pybricks` stubs don'
41
41
  ```python
42
42
  from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
43
43
  from sciro.iodevices import PUMPDevice # generic PUMP device access
44
- from sciro.floorpro import FloorPro # LP-FloorPro convenience class
44
+ from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
45
45
  from sciro.hubs import PeakHub # hub class incl. display.device()
46
46
 
47
47
  hub = PeakHub()
@@ -7,6 +7,7 @@ sciro/floorpro.py
7
7
  sciro/hubs.py
8
8
  sciro/iodevices.py
9
9
  sciro/parameters.py
10
+ sciro/pump.py
10
11
  sciro/py.typed
11
12
  scirodev/__init__.py
12
13
  scirodev/cli.py
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes