summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-02-13 18:45:21 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-02-13 18:45:21 +0100
commitf1005a37a05652a230d6c36f3f22e774ae8c1274 (patch)
treea5cd27213d3483f4c0bafe05c97b154dea8a2b0f /README.rst
parent02d6bdba0463e35d8560560323b61f1d31982645 (diff)
downloadpsutil-f1005a37a05652a230d6c36f3f22e774ae8c1274.tar.gz
#974 sensors_fans(): add example script, return dict and named tuple instead of dict + tuple; give CREDITS
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst17
1 files changed, 11 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index e3d09c57..741fd4f8 100644
--- a/README.rst
+++ b/README.rst
@@ -41,12 +41,14 @@ Summary
psutil (process and system utilities) is a cross-platform library for
retrieving information on **running processes** and **system utilization**
-(CPU, memory, disks, network) in Python. It is useful mainly for **system
-monitoring**, **profiling and limiting process resources** and **management of
-running processes**. It implements many functionalities offered by command line
-tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice,
-ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap. It currently supports
-**Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD** and **NetBSD**,
+(CPU, memory, disks, networkm sensors) in Python.
+It is useful mainly for **system monitoring**, **profiling and limiting process
+resources** and **management of running processes**.
+It implements many functionalities offered by command line tools such as:
+ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
+iotop, uptime, pidof, tty, taskset, pmap.
+It currently supports **Linux**, **Windows**, **OSX**, **Sun Solaris**,
+**FreeBSD**, **OpenBSD** and **NetBSD**,
both **32-bit** and **64-bit** architectures, with Python versions from **2.6
to 3.5** (users of Python 2.4 and 2.5 may use
`2.1.3 <https://pypi.python.org/pypi?name=psutil&version=2.1.3&:action=files>`__ version).
@@ -201,6 +203,9 @@ Sensors
shwtemp(label='Core 2', current=45.0, high=100.0, critical=100.0),
shwtemp(label='Core 3', current=47.0, high=100.0, critical=100.0)]}
>>>
+ >>> psutil.sensors_fans()
+ {'asus': [sfan(label='cpu_fan', current=3200)]}
+ >>>
>>> psutil.sensors_battery()
sbattery(percent=93, secsleft=16628, power_plugged=False)
>>>