Skip to main content

Utility functions for desktop activity tracking

Project description

desktopspy

This library contains utility functions for recording desktop activity on windows and linux

I created this for my productivity tool Activity Monitor

Features

  • Cross platform [windows, linux(ubuntu, X window system)]

Functions

Get foreground window name, process, pid

from desktopspy.trackers import getForegroundWindow
>>> getForegroundWindow()
('New Tab`, 2500)

>>> import psutil
>>> psutil.Process(2500).name()
'chrome.exe'

isUserActive

from desktopspy.trackers import isUserActive
>>> isUserActive()
True

Installation

This library is now available on the python package index.

Visit the pypi page.

pip install desktopspy

or with python-poetry

poetry add desktopspy

Please note that this software is in very early stage of development.

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

desktopspy-0.0.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

desktopspy-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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