foreground_app_info
Ever wanted to get some details about the foreground app, such as which is it, which URL is currently opened, etc? This project is for you.
Demo via sleep 3; ./demo.py.
Examples:
$ ./demo.py
{'appName': 'Terminal',
'idleTime': 0.274327906,
'url': 'file:///Users/az/Programmierung/foreground_app_info',
'windowTitle': './demo.py /Users/az/Programmierung/foreground_app_info \xe2\x80\x94 osascript \xe2\x80\x94 80\xc3\x9724'}
$ sleep 3; ./demo.py
{'appName': 'Chrome',
'idleTime': 1.440957492,
'url': 'https://news.ycombinator.com/',
'windowTitle': 'Hacker News'}
$ sleep 3; ./demo.py
{'appName': 'Finder',
'idleTime': 2.213467371,
'url': 'file:///Users/az/Documents/',
'windowTitle': 'Documents'}
$ sleep 3; ./demo.py
{'appName': 'TextEdit',
'idleTime': 1.435908488,
'url': 'file:///Users/az/Documents/todo-musicplayer.txt',
'windowTitle': 'todo-musicplayer.txt'}
This project is registered on Pypi. You can install it via:
$ pip install foreground_app_info
Simple demo code:
from foreground_app_info import get_app_info
from pprint import pprint
pprint(get_app_info())
This is currently used by TimeCapture.
Metadata
Release files for foreground_app_info 1.20150502.140946
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foreground_app_info-1.20150502.140946.tar.gz | 5.6 kB | Without provenance | Details for foreground_app_info-1.20150502.140946.tar.gz |
Release files / foreground_app_info-1.20150502.140946.tar.gz
| Download URL | foreground_app_info-1.20150502.140946.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a1315b968b0fe1bf124f1fc8221b08494bfb16324a56f2f5217470e52e90b0d
|
|
BLAKE2b-256 checksum How to use checksums |
aeba70564a0c4c30915c420e7305454cab21c6568e5835bafdbfc7bf1cd1e159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for foreground_app_info 1.20150502.140946
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.