Skip to main content

System idle time using DBus

Project description

dbus-idle

pypi python version license

Python library to detect user idle time in milliseconds or inactivity on Linux and Windows.

Requirements

  • Python 3.7 or later

Installation

Install using:

sudo apt install meson libdbus-glib-1-dev patchelf
pip install dbus-idle

Usage

You can use this module from the command line

dbus-idle

or access the current idle time from within your python program

from dbus_idle import IdleMonitor

milliseconds = IdleMonitor().get_dbus_idle()

Contribution

This is based on the work by Alexander Frenzel

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

dbus_idle-2024.7.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

dbus_idle-2024.7.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file dbus_idle-2024.7.0.tar.gz.

File metadata

  • Download URL: dbus_idle-2024.7.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for dbus_idle-2024.7.0.tar.gz
Algorithm Hash digest
SHA256 7d65a7f404f71bdfba66ebbaadfa1e6694d2831aaf55dd14fcedcc6f5c73ab55
MD5 55d80cda8da9bfe5dab4b97e8a5ef9eb
BLAKE2b-256 d3b4dfdc628ec29854b15cc7b5956fe5340f69c2d41b2ab885ab118fdf601121

See more details on using hashes here.

File details

Details for the file dbus_idle-2024.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dbus_idle-2024.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b6c8b4d17bc05f13c32b4053d4121f6a04dd33746fe9904e05c378a40b280a3
MD5 28023e302ecbad19cdca64665afd5741
BLAKE2b-256 bd0d5d8766de27805309ad2f54f01746137800d71a046f168ef95cb9d37f4b13

See more details on using hashes here.

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