Skip to main content

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


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.1.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file pyutmpx-0.2.1.tar.gz.

File metadata

  • Download URL: pyutmpx-0.2.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for pyutmpx-0.2.1.tar.gz
Algorithm Hash digest
SHA256 aea851bcd6816a526699723a2d4ebc44bc6055858b36dbc3791fad6f58d5138c
MD5 036504e1ca63a5410d803c967731420d
BLAKE2b-256 af2a708173f02e1d7c7e5309c695f723a5d377de777f1d8ef18edabfe49ac158

See more details on using hashes here.

Supported by

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