RGBMatrixEmulator 0.18.2__tar.gz → 0.19.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.
Files changed (55) hide show
  1. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/PKG-INFO +14 -2
  2. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/README.md +10 -0
  3. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/__init__.py +6 -0
  4. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/emulation/options.py +15 -15
  5. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/version.py +1 -1
  6. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/pyproject.toml +3 -0
  7. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/.gitignore +0 -0
  8. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/LICENSE +0 -0
  9. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/__init__.py +0 -0
  10. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/base.py +0 -0
  11. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/README.md +0 -0
  12. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/__init__.py +0 -0
  13. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/adapter.py +0 -0
  14. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/fps.py +0 -0
  15. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/request_handlers/__init__.py +0 -0
  16. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/request_handlers/base.py +0 -0
  17. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/request_handlers/image.py +0 -0
  18. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/request_handlers/image_web_socket.py +0 -0
  19. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/request_handlers/main.py +0 -0
  20. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/request_handlers/single_file.py +0 -0
  21. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/server.py +0 -0
  22. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/static/assets/client.js +0 -0
  23. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/static/assets/icon.ico +0 -0
  24. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/static/assets/styles.css +0 -0
  25. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/browser_adapter/static/index.html +0 -0
  26. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/pygame_adapter.py +0 -0
  27. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/raw_adapter/README.md +0 -0
  28. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/raw_adapter/__init__.py +0 -0
  29. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/sixel_adapter.py +0 -0
  30. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/terminal_adapter.py +0 -0
  31. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/tkinter_adapter.py +0 -0
  32. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/adapters/turtle_adapter.py +0 -0
  33. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/cli/__init__.py +0 -0
  34. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/cli/command.py +0 -0
  35. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/cli/config.py +0 -0
  36. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/emulation/__init__.py +0 -0
  37. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/emulation/canvas.py +0 -0
  38. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/emulation/matrix.py +0 -0
  39. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/graphics/__init__.py +0 -0
  40. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/graphics/color.py +0 -0
  41. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/graphics/font.py +0 -0
  42. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/icon.png +0 -0
  43. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/internal/adapter_loader.py +0 -0
  44. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/internal/emulator_config.py +0 -0
  45. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/internal/pixel_style.py +0 -0
  46. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/internal/screen.py +0 -0
  47. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/logger.py +0 -0
  48. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/__init__.py +0 -0
  49. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/identity.py +0 -0
  50. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/mirror.py +0 -0
  51. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/rotate.py +0 -0
  52. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/stack_to_row.py +0 -0
  53. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/umapper.py +0 -0
  54. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/pixel_mappers/vmapper.py +0 -0
  55. {rgbmatrixemulator-0.18.2 → rgbmatrixemulator-0.19.0}/RGBMatrixEmulator/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RGBMatrixEmulator
3
- Version: 0.18.2
3
+ Version: 0.19.0
4
4
  Summary: A PC emulator for Raspberry Pi LED matrices driven by rpi-rgb-led-matrix
5
5
  Project-URL: Homepage, https://github.com/ty-porter/RGBMatrixEmulator
6
6
  Author-email: Tyler Porter <tyler.b.porter@gmail.com>
@@ -22,7 +22,9 @@ Requires-Dist: numpy>=1.2.0
22
22
  Requires-Dist: pillow>=10.0.1
23
23
  Requires-Dist: tornado>=6.5.7
24
24
  Provides-Extra: pygame
25
- Requires-Dist: pygame<3,>=2.0.1; extra == 'pygame'
25
+ Requires-Dist: pygame-ce>=2.5.7; extra == 'pygame'
26
+ Provides-Extra: pygame-legacy
27
+ Requires-Dist: pygame<3,>=2.0.1; extra == 'pygame-legacy'
26
28
  Provides-Extra: sixel
27
29
  Requires-Dist: libsixel-python>=0.5.0; extra == 'sixel'
28
30
  Description-Content-Type: text/markdown
@@ -74,6 +76,16 @@ pip install RGBMatrixEmulator[pygame]
74
76
  pip install RGBMatrixEmulator[sixel,pygame]
75
77
  ```
76
78
 
79
+ ### `pygame` Adapter
80
+
81
+ The upstream [pygame](https://github.com/pygame/pygame) package does not support Python 3.14 or greater. The adapter has been swapped to use the [pygame-ce](https://github.com/pygame-community/pygame-ce) package instead. This should be a backwards compatible change with no noticeable issues.
82
+
83
+ If you need to use the legacy `pygame` package for any reason, you can install it:
84
+
85
+ ```sh
86
+ pip install RGBMatrixEmulator[pygame-legacy]
87
+ ```
88
+
77
89
  ## Usage
78
90
 
79
91
  Projects that are able to be emulated will rely on importing classes from `rpi-rgb-led-matrix`. These will need to be replaced by equivalent `RGBMatrixEmulator` classes.
@@ -45,6 +45,16 @@ pip install RGBMatrixEmulator[pygame]
45
45
  pip install RGBMatrixEmulator[sixel,pygame]
46
46
  ```
47
47
 
48
+ ### `pygame` Adapter
49
+
50
+ The upstream [pygame](https://github.com/pygame/pygame) package does not support Python 3.14 or greater. The adapter has been swapped to use the [pygame-ce](https://github.com/pygame-community/pygame-ce) package instead. This should be a backwards compatible change with no noticeable issues.
51
+
52
+ If you need to use the legacy `pygame` package for any reason, you can install it:
53
+
54
+ ```sh
55
+ pip install RGBMatrixEmulator[pygame-legacy]
56
+ ```
57
+
48
58
  ## Usage
49
59
 
50
60
  Projects that are able to be emulated will rely on importing classes from `rpi-rgb-led-matrix`. These will need to be replaced by equivalent `RGBMatrixEmulator` classes.
@@ -3,3 +3,9 @@ from RGBMatrixEmulator.emulation.matrix import RGBMatrix
3
3
  from RGBMatrixEmulator.emulation.options import RGBMatrixOptions
4
4
 
5
5
  from RGBMatrixEmulator.version import __version__
6
+
7
+ __all__ = [
8
+ "RGBMatrix",
9
+ "RGBMatrixOptions",
10
+ "__version__",
11
+ ]
@@ -4,21 +4,21 @@ from RGBMatrixEmulator.internal.screen import Screen
4
4
 
5
5
  class RGBMatrixOptions:
6
6
  def __init__(self) -> None:
7
- self.hardware_mapping = "EMULATED"
8
- self.rows = 32
9
- self.cols = 32
10
- self.chain_length = 1
11
- self.parallel = 1
12
- self.row_address_type = 0
13
- self.multiplexing = 0
14
- self.pwm_bits = 0
15
- self.brightness = 100
16
- self.pwm_lsb_nanoseconds = 130
17
- self.led_rgb_sequence = "RGB-EMULATED"
18
- self.pixel_mapper_config = ""
19
- self.show_refresh_rate = 0
20
- self.gpio_slowdown = None
21
- self.disable_hardware_pulsing = False
7
+ self.hardware_mapping: str = "EMULATED"
8
+ self.rows: int = 32
9
+ self.cols: int = 32
10
+ self.chain_length: int = 1
11
+ self.parallel: int = 1
12
+ self.row_address_type: int = 0
13
+ self.multiplexing: int = 0
14
+ self.pwm_bits: int = 0
15
+ self.brightness: int = 100
16
+ self.pwm_lsb_nanoseconds: int = 130
17
+ self.led_rgb_sequence: str = "RGB-EMULATED"
18
+ self.pixel_mapper_config: str = ""
19
+ self.show_refresh_rate: int = 0
20
+ self.gpio_slowdown: int | None = None
21
+ self.disable_hardware_pulsing: bool = False
22
22
 
23
23
  emulator_config = RGBMatrixEmulatorConfig()
24
24
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env python
2
2
 
3
3
  # package version
4
- __version__ = "0.18.2"
4
+ __version__ = "0.19.0"
5
5
  """Installed version of RGBMatrixEmulator."""
@@ -43,6 +43,9 @@ rgbme = "RGBMatrixEmulator.cli:run_cli"
43
43
 
44
44
  [project.optional-dependencies]
45
45
  pygame = [
46
+ "pygame-ce>=2.5.7",
47
+ ]
48
+ pygame-legacy = [
46
49
  "pygame>=2.0.1,<3",
47
50
  ]
48
51
  sixel = [