Documented dependencies on the PyPI colour module.
This commit is contained in:
parent
31a6d91b25
commit
d14e7ddadc
@ -2,6 +2,11 @@ from colour import Color
|
|||||||
|
|
||||||
|
|
||||||
class ColorRangeModule(object):
|
class ColorRangeModule(object):
|
||||||
|
"""
|
||||||
|
Class to dynamically generate and select colors.
|
||||||
|
|
||||||
|
Requires the PyPI package `colour`
|
||||||
|
"""
|
||||||
|
|
||||||
start_color = "#00FF00"
|
start_color = "#00FF00"
|
||||||
end_color = 'red'
|
end_color = 'red'
|
||||||
|
@ -8,6 +8,8 @@ class CpuUsageGraph(CpuUsage, ColorRangeModule):
|
|||||||
Shows CPU usage as a Unicode graph.
|
Shows CPU usage as a Unicode graph.
|
||||||
The first output will be inacurate.
|
The first output will be inacurate.
|
||||||
|
|
||||||
|
Depends on the PyPI colour module - https://pypi.python.org/pypi/colour/0.0.5
|
||||||
|
|
||||||
Linux only
|
Linux only
|
||||||
|
|
||||||
Available formatters:
|
Available formatters:
|
||||||
|
@ -10,6 +10,8 @@ class NetworkGraph(NetworkTraffic, ColorRangeModule):
|
|||||||
|
|
||||||
Linux only
|
Linux only
|
||||||
|
|
||||||
|
Requires the PyPI packages `psutil` and `colour`.
|
||||||
|
|
||||||
Available formatters:
|
Available formatters:
|
||||||
|
|
||||||
{kbs} Float representing kb\s
|
{kbs} Float representing kb\s
|
||||||
|
Loading…
Reference in New Issue
Block a user