pyutmp - Python binding for Unix utmp file
|
Download
To obtain my PGP/GnuPG key, see these instructions. Documentation
Back to software page. |
IntroductionThe 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. Interface and UsageThe pyutmp module supplies two classes: UtmpFile and Utmp. A UtmpFile object represents the open utmp file; when you iterate over a UtmpFile object, it yields successive Utmp objects. For example:
Please see the API documentation for more details.
NotesThis module has been tested on the following operating systems:
This package uses Cython to generate the C source files that serve as the Python utmp extensions. InstallationThe usual:
easy_install pyutmp Source Code RepositoryThe source code for pyutmp is maintained on github. To clone the repository, run this command: git clone git://github.com/bmc/pyutmp.git AuthorBrian M. Clapper, <bmc @ clapper . org> Copyright© 2008 Brian M. Clapper LicenseBSD-style license. See accompanying LICENSE file. |