Skip to main content

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

absolute-control-0.0.6.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

absolute_control-0.0.6-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page