A Python package for cross-platform process management, providing process data as dicts/JSON and allowing process control (start, stop, kill) on Windows, Mac, and Linux.
Project description
Process Inspector
Overview
A Python package for cross-platform process management, providing process data as dicts/JSON and allowing process/service control (start, stop, kill) on Windows, Mac, and Linux.
Installation
Use uv or pip.
uv add process-inspector
python3 -m pip install process-inspector
Development
To get a list of all commands with descriptions simply run make.
make env
make pip_install_editable
Testing
make pytest
make coverage
make open_coverage
Issues
If you experience any issues, please create an issue on Github.
Example Usage
from process_inspector import NativeApp
from process_inspector import Service
from process_inspector import Teamviewer
from process_inpsector import OperatingSystem
# App control
app = NativeApp('C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe')
app.open()
app.is_running()
app.get_version()
app.to_dict()
app.process_info()
app.close()
# Service control
service = Service("Spooler")
service.start()
service.is_running()
service.stop()
# Teamviewer
tv = Teamviewer()
tv.open()
tv.is_running()
tv.close()
tv.get_teamviewer_info()
# This operation requires sudo priveleges on Linux and Mac so ensure you allow it for the user the application is running under.
OperatingSystem().reboot()
History
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.1.0 (2025-09-11)
- First release
0.1.1 (2025-09-11)
- ADDED - more test coverage
0.1.2 (2025-09-11)
- ADDED - Service control (Windows Services or Linux/ Mac
supervisorctlprocesses) - ADDED - TeamViewer status and basic control (start, stop)
0.1.3 (2025-09-16)
- CHANGED - Improved query times for process running and process info
0.1.4 (2025-09-23)
- CHANGED - Fixed failing Linux tests
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 process_inspector-0.1.4.tar.gz.
File metadata
- Download URL: process_inspector-0.1.4.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42ae9d040535f9155820ad037d326f5ab61be42e4918692da8b1c331c48e3705
|
|
| MD5 |
fe2f36a1d449cc82cf87042bbd248524
|
|
| BLAKE2b-256 |
9dbf1f7d6a39962a64388308edab0e4a893ff004a6028ef52ccdd0530a66281e
|
File details
Details for the file process_inspector-0.1.4-py3-none-any.whl.
File metadata
- Download URL: process_inspector-0.1.4-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
580cb56d6e40e0a08fdafbb51939eb2ef7802c6fc4adcbe662a51297caf9fba8
|
|
| MD5 |
a072cfbc9649552aa4938b12da7d7cdd
|
|
| BLAKE2b-256 |
c404ab055205ecbf64cb82e904669a34549c4a0fbecab2acc10cfbdc4dabd506
|