Skip to main content

pypsutil

PyPI Python Versions Documentation Status GitHub Actions Cirrus CI codecov

A partial reimplementation of psutil in pure Python using ctypes. Currently, only Linux, macOS, and the BSDs are supported, but Windows support is planned.

Documentation

Example usage

pypsutil's API is very similar to psutil's:

>>> import pypsutil
>>> p = pypsutil.Process()
>>> p.pid
477967
>>> p
Process(pid=477967, name='python3', status='running', started='12:00:40')
>>> p.name()
'python3'
>>> p.exe()
'/usr/bin/python3.9'
>>> p.cwd()
'/tmp'
>>> p.cmdline()
['python3']
>>> p.terminal()
'/dev/pts/6'
>>> p.status()
<ProcessStatus.RUNNING: 'running'>
>>> p.ppid()
477771
>>> p.parent()
Process(pid=477771, name='bash', status='sleeping', started='12:00:33')

More information is available in the documentation.

Metadata

Release files for pypsutil 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypsutil 0.2.0
File Size Uploaded Provenance Actions
pypsutil-0.2.0.tar.gz 78.4 kB Without provenance Details for pypsutil-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypsutil 0.2.0
File Interpreter ABI Platform Actions
pypsutil-0.2.0-py3-none-any.whl Python 3 none any Details for pypsutil-0.2.0-py3-none-any.whl

Total release size: 162.3 kB

Release files / pypsutil-0.2.0.tar.gz

Download URL pypsutil-0.2.0.tar.gz
Size 78.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c57cb9baf54c9fd2766ad5eb8af0fda058c03ccfa908d39194c7881e29c79528
BLAKE2b-256 checksum
How to use checksums
a80c49e88153efda31a40d574f2a8e39efe4fa1102dc86636a456da917ffae8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Release files / pypsutil-0.2.0-py3-none-any.whl

Download URL pypsutil-0.2.0-py3-none-any.whl
Size 84.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34e5790c0c99761be60396cc33caa5b0fe15bbc848c38819049a5ecc3cfb02d8
BLAKE2b-256 checksum
How to use checksums
ea5f87ef1118e501fd93f72ef6b952025e1db3df22d27ee583031fde7cee38da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.13

Security for pypsutil 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page