Repository Details
Shared by
HelloGitHub Rating
0 ratings
一个跨平台库的进程和系统资源监控、管理库
Past 7 days Received 4 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 11,320 | — |
| 周三 | 11,322 | +2 |
| 周四 | 11,322 | 0 |
| 周五 | 11,319 | -3 |
| 周六 | 11,320 | +1 |
| 周日 | 11,322 | +2 |
| 周一 | 11,324 | +2 |
11.3k
Stars
No
Chinese
Python
Language
Yes
Active
262
Contributors
265
Issues
No
Organization
None
Latest
2k
Forks
BSD-3-Clause
License
一个跨平台库的进程和系统资源监控、管理库。用于查看有关正在运行的进程和系统利用率,如 CPU、内存、磁盘、网络等信息。 实现了 UNIX 命令行工具提供的许多功能,例如:ps、top、lsof、netstat、ifconfig 等,支持 Linux、Windows、macOS 等系统。学会了这个库,就可以通过 Python 脚本做更多有趣的事情了。查看内存的代码:
```
>>> psutil.virtual_memory()
svmem(total=10367352832, available=6472179712, percent=37.6, used=8186245120, free=2181107712, active=4748992512, inactive=2758115328, buffers=790724608, cached=3500347392, shared=787554304)
>>> psutil.swap_memory()
sswap(total=2097147904, used=296128512, free=1801019392, percent=14.1, sin=304193536, sout=677842944)
```
Included in:
Vol.39
Comments
Rating:
No comments yet