Skip to main content

utmp, wtmp and btmp reader module for Python 3.x

Project description

utmp/wtmp/btmp reader module for Python 3.x
===========================================

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.

.. _Single Unix Specification:: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/utmpx.h.html
.. _distutils:: https://docs.python.org/3/distutils/introduction.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyutmpx-0.2.tar.gz (6.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page