utmp, wtmp and btmp reader module for Python 3.x
Project description
This project is a binary Python 3.x module using POSIX-compliant and/or system-specific headers for reading utmp/wtmp/btmp entries. It aims at being compatible with multiple UNIX-like systems.
The format of these files have been standardized as utmpx, wtmpx and btmpx in the Single Unix Specification, although their location depends on the system. The systems/paths correspondances are not hardcoded in order to be able to interface with this module by reproducing one of the known behaviours without having to fork and add an entry to the code.
Prerequisites
You need the Python 3.x development files and a POSIX-compliant system.
Building and installing
distutils makes most of the job, but you know, I couldn’t not make a Makefile above it for people like me who regret those days you could just make and sudo make install on any project. So here, this is possible.
What is left to do
Implement other interfaces, standard and non-standard, as explained in the “Compatibility” section in utmp.c.
Add the wtmp and btmp objects.
Add utmp filename getting and setting for these objects.
Add a list-like interface, with length and index.
Add methods to add an event, such as login or logout events.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.