# desktopspy
This library contains utility functions for recording desktop activity on windows and linux
I created this for my productivity tool [Activity Monitor](https://github.com/elpachongco/activity-monitor)
## Features
- Cross platform [windows, linux(ubuntu, X window system)]
## Functions
### Get foreground window name, process, pid
```python3
from desktopspy.trackers import getForegroundWindow
>>> getForegroundWindow()
('New Tab`, 2500)
>>> import psutil
>>> psutil.Process(2500).name()
'chrome.exe'
```
### isUserActive
```python3
from desktopspy.trackers import isUserActive
>>> isUserActive()
True
```
## Installation
This library is now available on the python package index.
Visit the [pypi page](https://pypi.org/project/desktopspy).
```bash
pip install desktopspy
```
or with python-poetry
```bash
poetry add desktopspy
```
Please note that this software is in very early stage of development.
Raw data
{
"_id": null,
"home_page": "https://github.com/elpachongco/desktopspy",
"name": "desktopspy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "desktop",
"author": "elpachongco",
"author_email": "earlsiachongco@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/91/3b/ee639af37ffb126a9038c4827b362e0100a6dfba0cab7aac2b5761d75f13/desktopspy-0.0.1.tar.gz",
"platform": null,
"description": "# desktopspy\n\nThis library contains utility functions for recording desktop activity on windows and linux\n\nI created this for my productivity tool [Activity Monitor](https://github.com/elpachongco/activity-monitor)\n\n## Features \n- Cross platform [windows, linux(ubuntu, X window system)]\n\n## Functions \n\n### Get foreground window name, process, pid\n\n```python3\nfrom desktopspy.trackers import getForegroundWindow\n>>> getForegroundWindow()\n('New Tab`, 2500)\n\n>>> import psutil\n>>> psutil.Process(2500).name()\n'chrome.exe'\n```\n\n### isUserActive\n\n```python3\nfrom desktopspy.trackers import isUserActive\n>>> isUserActive()\nTrue\n```\n\n## Installation\n\nThis library is now available on the python package index.\n\nVisit the [pypi page](https://pypi.org/project/desktopspy).\n\n```bash\npip install desktopspy\n```\n\nor with python-poetry\n\n```bash\npoetry add desktopspy\n```\n\nPlease note that this software is in very early stage of development. \n",
"bugtrack_url": null,
"license": "BSD-3-Clause ",
"summary": "Utility functions for desktop activity tracking",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/elpachongco/desktopspy",
"Repository": "https://github.com/elpachongco/desktopspy"
},
"split_keywords": [
"desktop"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "74cace09932c6f685939807de23ba5a638bd6559bfe818622a076f870879120a",
"md5": "72cb8271f10d4c10c46ee40a1fd80070",
"sha256": "4fef49e756f6fa61a1a536b1670a28af1ffae526892d4ec80108a5924f999087"
},
"downloads": -1,
"filename": "desktopspy-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "72cb8271f10d4c10c46ee40a1fd80070",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 4415,
"upload_time": "2023-07-30T08:33:53",
"upload_time_iso_8601": "2023-07-30T08:33:53.104957Z",
"url": "https://files.pythonhosted.org/packages/74/ca/ce09932c6f685939807de23ba5a638bd6559bfe818622a076f870879120a/desktopspy-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "913bee639af37ffb126a9038c4827b362e0100a6dfba0cab7aac2b5761d75f13",
"md5": "04c13290534492a8161c7ae32b742dd3",
"sha256": "c046bb0fe2b8de22b2ea7befc81b05352faa812b52f8581d82289f0a92798e0d"
},
"downloads": -1,
"filename": "desktopspy-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "04c13290534492a8161c7ae32b742dd3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 4206,
"upload_time": "2023-07-30T08:33:54",
"upload_time_iso_8601": "2023-07-30T08:33:54.339636Z",
"url": "https://files.pythonhosted.org/packages/91/3b/ee639af37ffb126a9038c4827b362e0100a6dfba0cab7aac2b5761d75f13/desktopspy-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-30 08:33:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "elpachongco",
"github_project": "desktopspy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "desktopspy"
}