Manages processes
Project description
PMFlow
This is a simple process managing tool
This tools keeps the information of the processes it manages in a json file created at it's installation location
Installation
pip install pmflow
Commands
<^> Main commands
create: Creates a new process
Required arguments:
- command: str (default: None)
Optional arguments:
- --name or -n : str (default: None)
- --group or -g : str (default: process_id)
- --relation or -r : "parent" | "child" (default: "parent")
- --verbose or -v: (default: false)
Note: A child process must have a group name and the group must have a parent process.
Example:
pm create "<command>"
or
pm create "<command>" -n "<process name>" -g "<group name>" -r "child"
ls: List all managed processes
Optional arguments:
- --json or -j (default: false)
- --group or -g (default: None)
Example:
pm ls
pm ls -j
pm ls -g <group_name>
pm ls -j -g <group_name>
kill: Kill process, kills the process and also removes it from the json file.
Optional arguments:
- pid (no flag needed): int (default: 0) kills one process if it's a child process. Otherwise, kills the terminates
- --group or -g: (default: None) kills one group if exist
- --all or -a : bool (default: false) kills all the process
Note: Only one option can be used at a time.
Example:
pm kill <PID>
pm -g <group_name>
pm -a
<^> Additional commands
Recreate all process managed by the tool:
pm recreate
Pause a process
pm pause <PID>
respawn all paused process
pm respawn
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 pmflow-1.2.1.tar.gz.
File metadata
- Download URL: pmflow-1.2.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1aa9055af770a322a2a1848bfd39acbc663770a7fe7b73620b7f4df1e007995e
|
|
| MD5 |
221587040643273707bb6e162f5a1da5
|
|
| BLAKE2b-256 |
b36ae00761d20c16e5844862fa09b5800fb8d3707d344e8536b9e72c2f98ef55
|
File details
Details for the file pmflow-1.2.1-py3-none-any.whl.
File metadata
- Download URL: pmflow-1.2.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f9d24a9417820f1e5b8be029644c8f9c7db1d63962d3b825519709c03c5b1d3
|
|
| MD5 |
a8ce772a72bb234b20ceb182383257a7
|
|
| BLAKE2b-256 |
4cfcef52d820dd3f4486035a30204b7babf66db842548187d7942b2af4c43030
|