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-2026.8.0.tar.gz (5.5 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-2026.8.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbus_idle-2026.8.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dbus_idle-2026.8.0.tar.gz
Algorithm Hash digest
SHA256 6733d52588339a1a00ebe826efe651c3d24aebfd9eb4bc25539b8f2b38366dbc
MD5 8ceb92c10b3d6da25b70d2345de3704c
BLAKE2b-256 f5b8e48dd235f76a16ce28dabbe682206c315c2a653f0e6188b61477fc4d8afc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbus_idle-2026.8.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dbus_idle-2026.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79b87d6ca6ea98bd8a85e844c33c545d2c0453fc10d337396c4a18507e3a252e
MD5 cf141348264e0f81e4cbbd7182ba99a7
BLAKE2b-256 e7663f53ed9e1cf6321b066b8286b2a37303b2e6e260ce852d513e7355b71f63

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