semvec/pypi-packages huggingface dataset:
dbus-idle 2025.5.1
System idle time using DBus
Requires Python: >=3.7.0
Keywords: dbus_idle, dbus-idle

# dbus-idle

[![pypi](https://img.shields.io/pypi/v/dbus-idle.svg)](https://pypi.python.org/pypi/dbus-idle)
![python version](https://img.shields.io/pypi/pyversions/dbus-idle.svg)
![license](https://img.shields.io/pypi/l/dbus-idle.svg)

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
```bash
dbus-idle
```
or access the current idle time from within your python program
```python
from dbus_idle import IdleMonitor

milliseconds = IdleMonitor().get_dbus_idle()
```

## Contribution
This is based on the work by [Alexander Frenzel](https://github.com/escaped/dbus_idle)
theory-of-computation 1.0.1
A package for DFA and Turing Machine implementations.
Requires Python: >=3.6

# Theory of Computation Practical


### The package is designed to solve two main tasks:

- **DFA for Substring '101'**: A Deterministic Finite Automaton (DFA) designed to check if a binary string contains the substring "101".
---

- **Turing Machine for Divisibility by 3**: A Turing Machine that determines if a binary number is divisible by 3.