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.1.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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbus_idle-2025.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bf03955c742be81f0f8aa697e21762c9ac9f645449b0214483c06283dfd0edfa
MD5 877bf501a91557998b04afcccc30d59b
BLAKE2b-256 4dd19dbf5526ab0939e40728015d5146b8a3569b82fdbba5f10141198b508dbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbus_idle-2025.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8ebbfd632a6797991672278abb4efd93c873379bd40f900d7995a5bce40affc
MD5 9f1beeade303e8f1fba91b930103abd5
BLAKE2b-256 8fb9d2dc4ae09b658e7d91b0792399f45987f6ee3df5de69a94a3d02e38a0642

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