Skip to main content

petique

petique adjusts nice, ionice and OOM adjust score of processes based on custom rules defined in a config file.

Configuration

Configuration is a TOML file consisting of independant rules:

[vlc]  # rule name, name is only significant to you
name = "vlc"  # regular expression, matches process name
nice = 10  # when rule is matched, sets nice of process to 10

# nice can go from -20 (most prioritary) to 19 (least prioritary)
# though only root can set negative values
# see `nice(1)` manual page

[borg]
exe = "/usr/bin/borg"  # regular expression, matches binary path
ionice = "idle"  # when rule is matched, sets ionice of process to "idle" mode

# ionice values can be "b1" to "b7" (best-effort, from more prioritary to least prioritary)
# or "idle" (even less prioritary than b7) or "rt" (real-time, high-priority, only for root user)
# see `ionice(1)` manual page

[firefox_tab]
cmdline = ".*firefox -contentproc.*"  # regular expression, matches full command line with args
oom_adj = 1000  # when rule is matched, sets oom adjust of process to 1000

# oom_adj can be from -1000 (immune against OOM-killer) to 1000 (more likely to be killed)
# see `choom(1)` manual page

Rules match processes based on their process name, binary or full command-line, and adjust nice, ionice or oom-adjust score.

Run petique --list to see all processes and their name, exe, cmdline. This is handy for writing rules patterns.

Usage

petique [-n | --dry-run] [-v | --verbose] [--rule NAME] [--config FILE]

Metadata

Release files for petique 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for petique 0.2.0
File Size Uploaded Provenance Actions
petique-0.2.0.tar.gz 3.7 kB Without provenance Details for petique-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for petique 0.2.0
File Interpreter ABI Platform Actions
petique-0.2.0-py3-none-any.whl Python 3 none any Details for petique-0.2.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / petique-0.2.0.tar.gz

Download URL petique-0.2.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f8b16328bc7f5184e6f5f724b563ca7c85ac557557bac535ff3c0b61ecd86e77
BLAKE2b-256 checksum
How to use checksums
93627a757b3829fc523091f507eedbf0eefaeb9abaaf613d1d763d750b978955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / petique-0.2.0-py3-none-any.whl

Download URL petique-0.2.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff3045e8ece4f710afa32f3beb87d9818cc77ae30000c88e3eab26db02cb66f7
BLAKE2b-256 checksum
How to use checksums
9049a73a6d76df9e65bf2564e59448b8348c6cfe651a0afc04a010511a9acc16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.14.4

Security for petique 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page