utmp/wtmp reader
Project description
Pure-Python library to decode/read utmp and wtmp files. Please note that there is an alternative library which uses the underlying C API: pyutmp
This package requires Python 3.4.
Usage
The utmp.read function decodes a binary utmp/wtmp stream and yields record objects:
with open('/var/log/wtmp', 'rb') as fd:
buf = fd.read()
for entry in utmp.read(buf):
print(entry.time, entry.type, entry)
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
utmp-0.2.tar.gz
(3.9 kB
view details)
File details
Details for the file utmp-0.2.tar.gz
.
File metadata
- Download URL: utmp-0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c46c54e2dec7a46dad491d010d8d070c28d9f53aae080a235d1e83b4a9d8d2 |
|
MD5 | 0ea9c505d1f6a3ef57ee297e3806c69d |
|
BLAKE2b-256 | 482ddca3cb22c7d3fccb1b19d3b8da02757aae0d9d796e318ac422a1f9f767d7 |