chrismiles / psi (http://pypi.python.org/pypi/PSI)
PSI is a Python package providing real-time access to processes and other miscellaneous system information such as architecture, boottime and filesystems. It has a pythonic API which is consistent accross all supported platforms but also exposes platform-specific details where desirable.
PSI - Python System Information
PSI is a Python package providing real-time access to processes and other miscellaneous system information such as architecture, boottime and filesystems. It has a pythonic API which is consistent accross all supported platforms but also exposes platform-specific details where desirable.
Under the hood it is mostly implemented as a number of extension modules written in C. This offers the most flexible way to retrieve system-depended information on all platforms leveraging native system calls and core library APIs while avoiding any other external dependencies.
Currently the supported platforms include Linux, Darwin, SunOS and AIX and all versions of Python starting from 2.2 are supported, including the 3.x series. In the future platform support for at least Windows and BSD are planned, as well as more modules providing access to other areas of the system such as memory, CPU, network interfaces etc.
All of PSI is available under the MIT license.
News
21 November 2009 - PSI 0.3b2 released
Version 0.3b2 has been released and is available for download from PyPI. It has many improvements:
- Improved handling of time.
- Improved handling of process names and arguments which simplifies usage by promising availability for some attributes.
- New experimental methods on
Processobjects:.children()and.kill(). - The ability to get the process list from a 64-bit process while running in a 32-bit python on Solaris.
- New experimental
mountmodule.
And many more small fixes and improvements!
12 August 2009 - PSI Lightning Talks
Floris and Chris recently gave lightning talks about PSI at EuroPython 2009 and MelbournePUG respectively. See Presentations for the slides.
TOC
Related Projects
psutil
psutil is a project with similar goals but more centered around just processes and the API follows a different style.
psutil is a module providing an interface for retrieving information
on running processes and system utilization (CPU, memory) in a
portable way by using Python, implementing many functionalities
offered by tools like ps, top and Windows task manager.
It currently supports Linux, OS X, FreeBSD and Windows
pyutmp
pyutmp is module providing a Python binding for UNIX utmp(x) files.
The pyutmp module provides a Python-oriented interface to the utmp
file on Unix-like operating systems. To paraphrase the Linux
Programmer's Manual page utmp(5), the utmp file allows one to discover
information about who is currently using (i.e., is logged into) the
system. The utmp file is a series of entries whose structure is
typically defined by the "utmp.h" C header file.
This module provides an read-only interface to the underlying
operating system's C utmp API.
This revision is from 2009-12-08 12:25
