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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbus_idle-2025.3.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbus_idle-2025.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for dbus_idle-2025.3.0.tar.gz
Algorithm Hash digest
SHA256 7bb2c79f4ff67742869df020ff81e19207caf55c0c796cfcd9223b79f5adba8e
MD5 495c884d0f4ba4d03053b6d1adf25bae
BLAKE2b-256 b3a7242a992387419a324287c978953336fd893065e18dd721501040b0d9814d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbus_idle-2025.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for dbus_idle-2025.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 505668bb6cff34c2d45b0a37f079b1d4bb0cb9f60f642beac4bd16d57638ce45
MD5 b23bb1b967e2ac8d2c1ac222460ddf69
BLAKE2b-256 c24cc8eb895c54dc01013141779669404edfd8debfb37fe2451cf38285875704

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