Controls system processes
Project description
Absolute Control
Introduction
A library for assisting with control of computer processes using python.
Install via pip through PyPi
pip install absolute-control
Usage
Get all processes running on the system
from absolute_control import get_all_processes
processes = get_all_processes()
You may also filter by pid, or by name.
from absolute_control import get_process_by_id, get_process_by_name
pid_processes = get_process_by_id(12345)
name_processes = get_process_by_name('chrome')
Kill all processes on the system. Note: This will kill all processes on the system, including the ones you have not started provided you have permission to do so.
from absolute_control import kill_all_processes
kill_all_processes()
You may kill processes by name or pid.
from absolute_control import kill_process_by_id, kill_processes_by_name
kill_process_by_id(12345)
kill_processes_by_name('chrome')
Start a new process.
from absolute_control import open_process_using_command
process = open_process_using_command('chrome')
Testing
To test the library, run the following commands:
cd src
python run_tests.py
License
This project is licensed under the MIT license.
Contribution
This project is open source. You can contribute by making a pull request or by sending an email to Johnny Irvin
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
Built Distribution
File details
Details for the file absolute-control-0.0.6.tar.gz
.
File metadata
- Download URL: absolute-control-0.0.6.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56c6ac920268bb836fe9aa6e2bd05d8979975f85b3ce672b627e58fcf387f97 |
|
MD5 | 25286a6ed8b58aba2a554ace66c04f15 |
|
BLAKE2b-256 | a86ab2df0dc18d44c091033105cc7ef0c1da36939e659073e85857e04d32f571 |
File details
Details for the file absolute_control-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: absolute_control-0.0.6-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbe6ed637730090a9202e39a154141e520638e278455f8997894a68fd7c4ae99 |
|
MD5 | 256940afd70fa86499a787558a16c1da |
|
BLAKE2b-256 | e8e7b57b5a1fa952a28e735d4529062817364710ca9d2ed917361bafbf5ba4c5 |