Psutil
Cross-platform lib for process and system monitoring in Python
Install / Use
/learn @giampaolo/PsutilREADME
| |downloads| |stars| |forks| |contributors| |packages| | |version| |license| |stackoverflow| |twitter| |tidelift| | |github-actions-wheels| |github-actions-bsd|
.. |downloads| image:: https://img.shields.io/pypi/dm/psutil.svg :target: https://clickpy.clickhouse.com/dashboard/psutil :alt: Downloads
.. |stars| image:: https://img.shields.io/github/stars/giampaolo/psutil.svg :target: https://github.com/giampaolo/psutil/stargazers :alt: Github stars
.. |forks| image:: https://img.shields.io/github/forks/giampaolo/psutil.svg :target: https://github.com/giampaolo/psutil/network/members :alt: Github forks
.. |contributors| image:: https://img.shields.io/github/contributors/giampaolo/psutil.svg :target: https://github.com/giampaolo/psutil/graphs/contributors :alt: Contributors
.. |stackoverflow| image:: https://img.shields.io/badge/stackoverflow-Ask%20questions-blue.svg :target: https://stackoverflow.com/questions/tagged/psutil :alt: Stackoverflow
.. |github-actions-wheels| image:: https://img.shields.io/github/actions/workflow/status/giampaolo/psutil/.github/workflows/build.yml.svg?label=Linux%2C%20macOS%2C%20Windows :target: https://github.com/giampaolo/psutil/actions?query=workflow%3Abuild :alt: Linux, macOS, Windows
.. |github-actions-bsd| image:: https://img.shields.io/github/actions/workflow/status/giampaolo/psutil/.github/workflows/bsd.yml.svg?label=BSD :target: https://github.com/giampaolo/psutil/actions?query=workflow%3Absd-tests :alt: FreeBSD, NetBSD, OpenBSD
.. |version| image:: https://img.shields.io/pypi/v/psutil.svg?label=pypi :target: https://pypi.org/project/psutil :alt: Latest version
.. |packages| image:: https://repology.org/badge/tiny-repos/python:psutil.svg :target: https://repology.org/metapackage/python:psutil/versions :alt: Binary packages
.. |license| image:: https://img.shields.io/pypi/l/psutil.svg :target: https://github.com/giampaolo/psutil/blob/master/LICENSE :alt: License
.. |twitter| image:: https://img.shields.io/twitter/follow/grodola?style=flat :target: https://twitter.com/grodola :alt: Twitter Follow
.. |tidelift| image:: https://tidelift.com/badges/github/giampaolo/psutil?style=flat :target: https://tidelift.com/subscription/pkg/pypi-psutil?utm_source=pypi-psutil&utm_medium=referral&utm_campaign=readme :alt: Tidelift
.. raw:: html
<div align="center">
<a href="https://github.com/giampaolo/psutil"><img src="https://github.com/giampaolo/psutil/raw/master/docs/_static/psutil-logo.png" /></a>
<br />
<br />
<a href="https://github.com/giampaolo/psutil"><b>Home</b></a>
<a href="https://psutil.readthedocs.io/"><b>Documentation</b></a>
<a href="https://psutil.readthedocs.io/adoption"><b>Who uses psutil</b></a>
<a href="https://pypi.org/project/psutil/#files"><b>Download</b></a>
<a href="https://gmpy.dev/tags/psutil"><b>Blog</b></a>
<a href="#funding"><b>Funding</b></a>
</div>
Summary
psutil (process and system utilities) is a cross-platform library for
retrieving information about running processes and system utilization
(CPU, memory, disks, network, sensors) in Python. It is useful mainly for
system monitoring, profiling, limiting process resources, and
managing running processes. It implements many functionalities offered by
classic UNIX command line tools such as
ps, top, free, iotop, netstat, ifconfig, lsof
and others (see shell equivalents_).
psutil currently supports the following platforms:
- Linux
- Windows
- macOS
- FreeBSD, OpenBSD, NetBSD
- Sun Solaris
- AIX
.. <PYPI-EXCLUDE>
Sponsors
.. raw:: html
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td align="center">
<a href="https://tidelift.com/subscription/pkg/pypi-psutil?utm_source=pypi-psutil&utm_medium=referral&utm_campaign=readme">
<img width="200" src="https://github.com/giampaolo/psutil/raw/master/docs/_static/tidelift-logo.svg">
</a>
</td>
<td align="center">
<a href="https://sansec.io/">
<img src="https://sansec.io/assets/images/logo.svg">
</a>
</td>
<td align="center">
<a href="https://www.apivoid.com/">
<img width="180" src="https://gmpy.dev/images/apivoid-logo.svg">
</a>
</td>
</tr>
</table>
<sup><a href="https://github.com/sponsors/giampaolo">add your logo</a></sup>
.. </PYPI-EXCLUDE>
Funding
While psutil is free software and will always remain so, the project would benefit
immensely from some funding. psutil is among the top 100_ most-downloaded
Python packages, and keeping up with bug reports, user support, and ongoing
maintenance has become increasingly difficult to sustain as a one-person
effort. If you're a company that's making significant use of psutil you can
consider becoming a sponsor via GitHub <https://github.com/sponsors/giampaolo>, Open Collective <https://opencollective.com/psutil> or PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9ZS7PKKRM3S8>.
Sponsors can have their logo displayed here and in the psutil documentation <https://psutil.readthedocs.io>.
Projects using psutil
psutil is one of the top 100_ most-downloaded packages on PyPI, with 280+
million downloads per month, 760,000+ GitHub repositories <https://github.com/giampaolo/psutil/network/dependents>_ using it, and
14,000+ packages depending on it. Some notable projects using psutil:
TensorFlow <https://github.com/tensorflow/tensorflow>,PyTorch <https://github.com/pytorch/pytorch>,Home Assistant <https://github.com/home-assistant/core>,Ansible <https://github.com/ansible/ansible>,Apache Airflow <https://github.com/apache/airflow>,Sentry <https://github.com/getsentry/sentry>Celery <https://github.com/celery/celery>,Dask <https://github.com/dask/dask>Glances <https://github.com/nicolargo/glances>,bpytop <https://github.com/aristocratos/bpytop>,Ajenti <https://github.com/ajenti/ajenti>,GRR <https://github.com/google/grr>psleak_
Full list <https://psutil.readthedocs.io/adoption>_
Ports
- Go:
gopsutil <https://github.com/shirou/gopsutil>_ - C:
cpslib <https://github.com/hamon-in/cpslib>_ - Rust:
rust-psutil <https://github.com/rust-psutil/rust-psutil>_ - Nim:
psutil-nim <https://github.com/johnscillieri/psutil-nim>_
.. <PYPI-EXCLUDE>
Supporters
People who donated money over the years:
.. raw:: html
<div>
<a href="https://github.com/codingjoe"><img height="35" width="35" title="Johannes Maron" src="https://avatars.githubusercontent.com/u/1772890?v=4" /></a>
<a href="https://github.com/eallrich"><img height="35" width="35" title="Evan Allrich" src="https://avatars.githubusercontent.com/u/17393?v=4" /></a>
<a href="https://github.com/ofek"><img height="35" width="35" title="Ofek Lev" src="https://avatars.githubusercontent.com/u/9677399?v=4" /></a>
<a href="https://github.com/roboflow"><img height="35" width="35" title="roboflow.com" src="https://avatars.githubusercontent.com/u/53104118?s=200&v=4" /></a>
<a href="https://github.com/sansecio"><img height="35" width="35" title="sansec.io" src="https://avatars.githubusercontent.com/u/60706188?s=200&v=4" /></a>
<a href="https://github.com/Trash-Nothing"><img height="35" width="35" title="trashnothing.com" src="https://avatars.githubusercontent.com/u/230028908?s=200&v=4" /></a>
<a href="https://github.com/abramov-v"><img height="35" width="35" title="Valeriy Abramov" src="https://avatars.githubusercontent.com/u/76448042?v=4" /></a>
<a href="https://github.com/alexdlaird"><img height="35" width="35" title="Alex Laird" src="https://avatars.githubusercontent.com/u/1660326?v=4" /></a>
<a href="https://github.com/aristocratos"><img height="35" width="35" title="aristocratos" src="https://avatars3.githubusercontent.com/u/59659483?s=96&v=4" /></a>
<a href="https://github.com/ArtyomVancyan"><img height="35" width="35" title="Artyom Vancyan" src="https://avatars.githubusercontent.com/u/44609997?v=4" /></a>
<a href="https://github.com/c0m4r"><img height="35" width="35" title="c0m4r" src="https://avatars.githubusercontent.com/u/6292788?v=4" /></a>
<a href="https://github.com/coskundeniz"><img height="35" width="35" title="Coşkun Deniz" src="https://avatars.githubusercontent.com/u/4516210?v=4" /></a>
<a href="https://github.com/cybersecgeek"><img height="35" width="35" title="cybersecgeek" src="https://avatars.githubusercontent.com/u/12847926?v=4" /></a>
<a href="https://github.com/dbwiddis"><img height="35" width="35" title="Daniel Widdis" src="https://avatars1.githubusercontent.com/u/9291703?s=88&v=4" /></a>
<a href="https://github.com/getsentry"><img height="35" width="35" title="getsentry" src="https://avatars.githubusercontent.com/u/1396951?s=200&v=4" /></a>
<a href="https://github.com/great-work-told-is"><img height="35" width="35" title="great-work-told-is" src="https://avatars.githubusercontent.com/u/113922084?v=4" /></a>
<a href="https://github.com/guilt"><img height="35" width="35" title="Karthik Kumar Viswanathan" src="https://avatars.githubusercontent.com/u/195178?v=4" /></a>
<a href="https://github.com/inarikami"><img height="35" width="35" title="inarikami" src="https://avatars.githubusercontent.com/u/22864465?v=4" /></a>
<a href="https://github.com/indeedeng"><img height="35" width="35" title="indeedeng" src="https://avatars.githubusercontent.com/u/2905043?s=200&v=4" /></a>
<a href="https://github.com/JeremyGrosser"><img h
Related Skills
tmux
334.1kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
claude-opus-4-5-migration
82.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
334.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
blogwatcher
334.1kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
