better-rtplot 0.4.0__tar.gz → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-rtplot
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary:
5
5
  License: GPL V3.0
6
6
  Author: jmontp
@@ -16,6 +16,7 @@ Provides-Extra: browser
16
16
  Provides-Extra: server
17
17
  Requires-Dist: aiohttp (>=3.9.0) ; extra == "browser"
18
18
  Requires-Dist: numpy (>=1.23.5)
19
+ Requires-Dist: psutil (>=5.9.0) ; extra == "browser"
19
20
  Requires-Dist: pyqtgraph (>=0.13.0) ; extra == "server"
20
21
  Requires-Dist: pyside6 (>6.4.0) ; extra == "server"
21
22
  Requires-Dist: pyzmq (>=25.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "better-rtplot"
3
- version = "0.4.0"
3
+ version = "0.4.2"
4
4
  description = ""
5
5
  authors = ["jmontp <jmontp@umich.edu>"]
6
6
  license = "GPL V3.0"
@@ -16,10 +16,11 @@ pyzmq = ">= 25.0.0"
16
16
  pyqtgraph = {version = ">= 0.13.0", optional = true}
17
17
  pyside6 = {version = "> 6.4.0", optional = true}
18
18
  aiohttp = {version = ">= 3.9.0", optional = true}
19
+ psutil = {version = ">= 5.9.0", optional = true}
19
20
 
20
21
  [tool.poetry.extras]
21
22
  server = ["pyqtgraph", "pyside6"]
22
- browser = ["aiohttp"]
23
+ browser = ["aiohttp", "psutil"]
23
24
 
24
25
 
25
26
  [build-system]
@@ -158,12 +158,13 @@ class Plot:
158
158
  class Button:
159
159
  id: str
160
160
  label: str
161
+ color: Optional[str] = None
161
162
  height: Optional[float] = None
162
163
 
163
164
  def to_dict(self):
164
165
  return _drop_none({
165
166
  "type": "button", "id": self.id, "label": self.label,
166
- "height": self.height,
167
+ "color": self.color, "height": self.height,
167
168
  })
168
169
 
169
170
 
@@ -176,13 +177,15 @@ class Slider:
176
177
  value: float = 0.0
177
178
  step: Optional[float] = None
178
179
  format: Optional[str] = None
180
+ color: Optional[str] = None
179
181
  height: Optional[float] = None
180
182
 
181
183
  def to_dict(self):
182
184
  return _drop_none({
183
185
  "type": "slider", "id": self.id, "label": self.label,
184
186
  "min": self.min, "max": self.max, "value": self.value,
185
- "step": self.step, "format": self.format, "height": self.height,
187
+ "step": self.step, "format": self.format,
188
+ "color": self.color, "height": self.height,
186
189
  })
187
190
 
188
191
 
@@ -196,6 +199,7 @@ class Dial:
196
199
  step: Optional[float] = None
197
200
  sensitivity: Optional[float] = None
198
201
  format: Optional[str] = None
202
+ color: Optional[str] = None
199
203
  height: Optional[float] = None
200
204
 
201
205
  def to_dict(self):
@@ -203,7 +207,8 @@ class Dial:
203
207
  "type": "dial", "id": self.id, "label": self.label,
204
208
  "min": self.min, "max": self.max, "value": self.value,
205
209
  "step": self.step, "sensitivity": self.sensitivity,
206
- "format": self.format, "height": self.height,
210
+ "format": self.format, "color": self.color,
211
+ "height": self.height,
207
212
  })
208
213
 
209
214