plotext-plus 1.0.11__py3-none-any.whl → 1.0.13__py3-none-any.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.
plotext_plus/_core.py CHANGED
@@ -999,6 +999,8 @@ add(polygon)
999
999
  add(confusion_matrix)
1000
1000
  add(indicator)
1001
1001
 
1002
+ add(pie)
1003
+ add(heatmap)
1002
1004
  add(matrix_plot)
1003
1005
  add(image_plot)
1004
1006
 
@@ -211,10 +211,11 @@ class DocumentationClass: # a list of MethodClass objects
211
211
  def _set_output(self, doc="", type=""):
212
212
  self._last().set_output(doc, type)
213
213
 
214
- def _get_method(self, name):
214
+ def _get_method(self, name, silent=True):
215
215
  names = [el.name for el in self._methods]
216
216
  if name not in names:
217
- print(warning, "no method", name + "() found")
217
+ if not silent:
218
+ print(warning, "no method", name + "() found")
218
219
  return self._methods[names.index(name)] if name in names else None
219
220
 
220
221
  def _get_parameters(self, parameter, method):
@@ -242,12 +243,13 @@ class DocumentationClass: # a list of MethodClass objects
242
243
  )
243
244
  print(docs)
244
245
 
245
- def _add_function(self, function):
246
+ def _add_function(self, function, silent=True):
246
247
  name = function.__name__
247
- method = self._get_method(name)
248
+ method = self._get_method(name, silent=silent)
248
249
  name += "()"
249
250
  if method is None:
250
- print(warning, name, "doc not present")
251
+ if not silent:
252
+ print(warning, name, "doc not present")
251
253
  return
252
254
  doc = method.get_doc()
253
255
  function.__doc__ = uncolorize(doc)
@@ -255,9 +257,10 @@ class DocumentationClass: # a list of MethodClass objects
255
257
  parameters_actual = get_parameters(function)
256
258
  parameters_found = method.get_parameters()
257
259
  if parameters_actual != parameters_found:
258
- actual = colorize(cm.join(parameters_actual), style="italic")
259
- found = colorize(cm.join(parameters_found), style="italic")
260
- print(warning, "the parameters of", name, "are", actual, "not", found + ".")
260
+ if not silent:
261
+ actual = colorize(cm.join(parameters_actual), style="italic")
262
+ found = colorize(cm.join(parameters_found), style="italic")
263
+ print(warning, "the parameters of", name, "are", actual, "not", found + ".")
261
264
 
262
265
 
263
266
  class ParameterTypes:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotext_plus
3
- Version: 1.0.11
3
+ Version: 1.0.13
4
4
  Summary: Modern terminal plotting library with enhanced visual features, themes, and AI integration
5
5
  Project-URL: Homepage, https://github.com/ccmitchellusa/plotext_plus
6
6
  Project-URL: Repository, https://github.com/ccmitchellusa/plotext_plus.git
@@ -23,7 +23,7 @@ Classifier: Topic :: Scientific/Engineering :: Visualization
23
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
24
  Classifier: Topic :: Terminals
25
25
  Requires-Python: >=3.11
26
- Requires-Dist: chuk-mcp-server>=0.3.5
26
+ Requires-Dist: chuk-mcp-server>=0.16.5
27
27
  Requires-Dist: chuk-term>=0.1.0
28
28
  Requires-Dist: shtab>=1.7.2
29
29
  Provides-Extra: completion
@@ -31,7 +31,7 @@ Requires-Dist: shtab; extra == 'completion'
31
31
  Provides-Extra: image
32
32
  Requires-Dist: pillow>=8.4; extra == 'image'
33
33
  Provides-Extra: mcp
34
- Requires-Dist: chuk-mcp-server>=0.3.5; extra == 'mcp'
34
+ Requires-Dist: chuk-mcp-server>=0.16.5; extra == 'mcp'
35
35
  Provides-Extra: video
36
36
  Requires-Dist: ffpyplayer>=4.3.5; extra == 'video'
37
37
  Requires-Dist: opencv-python>=4.5.5; extra == 'video'
@@ -2,12 +2,12 @@ plotext_plus/__init__.py,sha256=3CmBuKyz8BYO9JIWeYfq9T_eLCPMAGI1sV2zUszlozs,1082
2
2
  plotext_plus/__main__.py,sha256=vmYJDjjpw-FjilHOJlaCKYEng-CBqfEpKOBuWbqa6D0,38
3
3
  plotext_plus/_api.py,sha256=dNBT3Je2Xh1ymW1vhMV3fuSqXeor2ejwyyjWxZJRTtg,36283
4
4
  plotext_plus/_build.py,sha256=vGsfYfsuI5-9ZQJjyF2a9H0dHEoLcgpvfa2FRNh4ZjQ,30413
5
- plotext_plus/_core.py,sha256=dDmqlk7-YUXL5D-xuAB6wN0LovSJC2yHAIvDNy9qa5E,23535
5
+ plotext_plus/_core.py,sha256=yUe4fZc2uclSCqrgRDoeCwW-INZ-JHY_lm2aXfA5jOM,23557
6
6
  plotext_plus/_date.py,sha256=20bJuv_FOec5_-_PjFxPQGLTNuxQSVAPW8GhEu5Tydg,3025
7
7
  plotext_plus/_default.py,sha256=aodojft_t8VLbSAHCBYgzE4EtZr0E_H-v9KXvHEUirk,3366
8
8
  plotext_plus/_dict.py,sha256=Wzr8h11a1ASKb7RAi4_VwjSz2KMerAd7y0jXlNK60fQ,27199
9
9
  plotext_plus/_doc.py,sha256=DFCgDQfRAFDnn8A6aJNUhprf_PloCV4jEBF1gvEPlc4,39243
10
- plotext_plus/_doc_utils.py,sha256=HFCE_6l8e-Y_2DfcW5DB033d2EKxnX5IKJmDBEK6kSY,10979
10
+ plotext_plus/_doc_utils.py,sha256=gZIhmWKONykhFmbjktYtq34EWhAMEuVojevX5i2-5MA,11121
11
11
  plotext_plus/_figure.py,sha256=gMGIaoHb8GOFkwEMYUycd8ma4sO9KTO6mHeXESPy1k0,45688
12
12
  plotext_plus/_global.py,sha256=wjZSoT6EPMrjcATwmc4oBF5A4kmif5XWVhve-vAl0UE,15855
13
13
  plotext_plus/_matrix.py,sha256=c7N-uOFfmhfWdZyBFD-rPUzOFT9tfL52jrfQnO1kWFI,10239
@@ -26,8 +26,8 @@ plotext_plus/plotting.py,sha256=9nvfepoS_PcnnENPoowHd6qGr6bKBSGuBvy7XrzsHkQ,2627
26
26
  plotext_plus/themes.py,sha256=Pl6gD3vFPdsYrb4CCLjbN-rIQsf8cgNXeYTyB9Qd7I0,744
27
27
  plotext_plus/utilities.py,sha256=3B3cQ-9zqISI0eRNrcOc18_DFlUNv88oxqdl39tx-HQ,1338
28
28
  plotext_plus/utils.py,sha256=jlCF4TuxDqVeT5KoWt4dyvqqk-_p1znUHn4d2HXLiec,15942
29
- plotext_plus-1.0.11.dist-info/METADATA,sha256=1mbfRlsXBy8IGXDGnNY6KOLMiEgOZMJ0rB5M1TlyYi8,13879
30
- plotext_plus-1.0.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
31
- plotext_plus-1.0.11.dist-info/entry_points.txt,sha256=XocAh2z8hTGtuQL1zEcGTulrgfZ2g5UMyHSV-JOSNN8,103
32
- plotext_plus-1.0.11.dist-info/licenses/LICENSE,sha256=MkgUiRFwIvXwUVDEPy11uIULq7pGDHpIulD4KulsjnM,1150
33
- plotext_plus-1.0.11.dist-info/RECORD,,
29
+ plotext_plus-1.0.13.dist-info/METADATA,sha256=24y7yvYHxE0iX_bAfMs20jLasufPIrIVXFR-N0QB7dY,13881
30
+ plotext_plus-1.0.13.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
31
+ plotext_plus-1.0.13.dist-info/entry_points.txt,sha256=XocAh2z8hTGtuQL1zEcGTulrgfZ2g5UMyHSV-JOSNN8,103
32
+ plotext_plus-1.0.13.dist-info/licenses/LICENSE,sha256=MkgUiRFwIvXwUVDEPy11uIULq7pGDHpIulD4KulsjnM,1150
33
+ plotext_plus-1.0.13.dist-info/RECORD,,