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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file desktopspy-0.0.1.tar.gz.
File metadata
- Download URL: desktopspy-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-120-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c046bb0fe2b8de22b2ea7befc81b05352faa812b52f8581d82289f0a92798e0d
|
|
| MD5 |
04c13290534492a8161c7ae32b742dd3
|
|
| BLAKE2b-256 |
913bee639af37ffb126a9038c4827b362e0100a6dfba0cab7aac2b5761d75f13
|
File details
Details for the file desktopspy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: desktopspy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-120-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fef49e756f6fa61a1a536b1670a28af1ffae526892d4ec80108a5924f999087
|
|
| MD5 |
72cb8271f10d4c10c46ee40a1fd80070
|
|
| BLAKE2b-256 |
74cace09932c6f685939807de23ba5a638bd6559bfe818622a076f870879120a
|