Package python3-schedutils

Linux scheduler python bindings

https://rt.wiki.kernel.org/index.php/Tuna

Python interface for the Linux scheduler sched_{get,set}{affinity,scheduler}
functions and friends.

General Commands
Command Description
pchrt manipulate the real-time attributes of a process
ptaskset set or get the affinity of a process