{ "info": { "author": "Henning Jacobs", "author_email": "henning@jacobs1.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "====\nutmp\n====\n\nPure-Python library to decode/read utmp and wtmp files.\nPlease note that there is an alternative library which uses the underlying C API: pyutmp_\n\nThis package requires Python 2.7.\n\nPython 3.x users: use utmp_. This is a fork of utmp_ which adds nothing but a dependency on enum_, since it's not part of the Python 2.x stdlib.\n\nWhat is utmp/wtmp?\n==================\n**utmp**, **wtmp**, **btmp** and variants such as **utmpx**, **wtmpx** and **btmpx** are files on Unix-like systems that keep track of all logins and logouts to the system.\n\nThe utmp file keeps track of the current login state of each user. The wtmp file records all logins and logouts history. The btmp file records failed login attempts.\n\nOn Linux the ``wtmp`` and ``btmp`` files are usually located in the ``/var/log/`` directory.\n\nUsage\n=====\n\nThe ``utmp.read`` function decodes a binary utmp/wtmp stream and yields record objects:\n\n.. code-block:: python\n\n with open('/var/log/wtmp', 'rb') as fd:\n buf = fd.read()\n for entry in utmp.read(buf):\n print(entry.time, entry.type, entry)\n\n.. _pyutmp: https://pypi.python.org/pypi/pyutmp", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dimkr/python2-utmp", "keywords": "utmp wtmp btmp last utmpx wtmpx btmpx", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "python2-utmp", "package_url": "https://pypi.org/project/python2-utmp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python2-utmp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dimkr/python2-utmp" }, "release_url": "https://pypi.org/project/python2-utmp/0.4.2/", "requires_dist": null, "requires_python": null, "summary": "utmp/wtmp reader", "version": "0.4.2" }, "last_serial": 2226632, "releases": { "0.4.2": [ { "comment_text": "", "digests": { "md5": "8e5955c71894cd6cf2a3bb6ce07b814d", "sha256": "bf134477a27ec85432ab2941e595cbcae971c594635052a10f851f4c8d107635" }, "downloads": -1, "filename": "python2-utmp-0.4.2.tar.gz", "has_sig": false, "md5_digest": "8e5955c71894cd6cf2a3bb6ce07b814d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4325, "upload_time": "2016-07-17T07:33:14", "url": "https://files.pythonhosted.org/packages/21/4a/61c7a6bd4d2023129d976eeff9690b58e913668332743c770a6e39298397/python2-utmp-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e5955c71894cd6cf2a3bb6ce07b814d", "sha256": "bf134477a27ec85432ab2941e595cbcae971c594635052a10f851f4c8d107635" }, "downloads": -1, "filename": "python2-utmp-0.4.2.tar.gz", "has_sig": false, "md5_digest": "8e5955c71894cd6cf2a3bb6ce07b814d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4325, "upload_time": "2016-07-17T07:33:14", "url": "https://files.pythonhosted.org/packages/21/4a/61c7a6bd4d2023129d976eeff9690b58e913668332743c770a6e39298397/python2-utmp-0.4.2.tar.gz" } ] }