Cross-platform lib for process and system monitoring in Python
This report summarizes scanner evidence for giampaolo/psutil, a Python project with 11,288 GitHub stars. SynthScan examined 70,300 lines of code across 296 source files, recording 933 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 24.8 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 506 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 711 finding(s).
Which changes need focused human review? 933 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 933 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_contracts.py | 45 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_contracts.py | 47 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_contracts.py | 347 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_contracts.py | 349 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 62 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 64 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 164 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_heap.py | 166 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 145 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 147 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 303 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_unicode.py | 305 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 191 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 193 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 339 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 341 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_misc.py | 50 | # =================================================================== | COMMENT |
| MEDIUM | tests/test_misc.py | 52 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_misc.py | 375 | # =================================================================== | STRING |
| MEDIUM⚡ | tests/test_misc.py | 377 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 559 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 561 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 793 | # =================================================================== | STRING |
| MEDIUM | tests/test_misc.py | 795 | # =================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 2722 | # ===================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_linux.py | 2724 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 79 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 81 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 243 | # ===================================================================== | COMMENT |
| MEDIUM | tests/test_linux.py | 245 | # ===================================================================== | COMMENT |
| MEDIUM⚡ | tests/test_linux.py | 709 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 711 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 1890 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/test_linux.py | 1892 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 592 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 594 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1156 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1158 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1416 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1418 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1708 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 1710 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 2147 | # ===================================================================== | STRING |
| MEDIUM | tests/test_linux.py | 2149 | # ===================================================================== | STRING |
| MEDIUM⚡ | tests/__init__.py | 362 | # =================================================================== | COMMENT |
| MEDIUM⚡ | tests/__init__.py | 364 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 112 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 114 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 314 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 316 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 752 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 754 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 894 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 896 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1611 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1613 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1842 | # ===================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1844 | # ===================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 1998 | # =================================================================== | COMMENT |
| MEDIUM | tests/__init__.py | 2000 | # =================================================================== | COMMENT |
| 232 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_misc.py | 264 | except psutil.Error: | CODE |
| HIGH | tests/test_misc.py | 278 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_posix.py | 85 | except ValueError: | CODE |
| HIGH | tests/test_linux.py | 1269 | except RuntimeError: | CODE |
| HIGH | tests/test_linux.py | 1290 | except RuntimeError: | CODE |
| HIGH | tests/test_linux.py | 1376 | except OSError: | CODE |
| HIGH | tests/__init__.py | 929 | except FileNotFoundError: | CODE |
| HIGH | tests/__init__.py | 937 | except FileExistsError: | CODE |
| HIGH | tests/__init__.py | 599 | except ProcessLookupError: | CODE |
| HIGH | tests/__init__.py | 610 | except psutil.NoSuchProcess: | CODE |
| HIGH | tests/__init__.py | 583 | except psutil.NoSuchProcess: | CODE |
| HIGH | tests/__init__.py | 911 | except FileNotFoundError: | CODE |
| HIGH | tests/test_process_all.py | 428 | except FileNotFoundError: | CODE |
| HIGH | tests/test_process.py | 268 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_process.py | 296 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_process.py | 1179 | except psutil.AccessDenied: # windows | CODE |
| HIGH | tests/test_process.py | 782 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_process.py | 841 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_process.py | 1170 | except psutil.Error: | CODE |
| HIGH | tests/test_process.py | 1347 | except psutil.NoSuchProcess: | CODE |
| HIGH | tests/test_process.py | 1437 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_process.py | 1787 | except psutil.TimeoutExpired: | CODE |
| HIGH | tests/test_process.py | 608 | except FileNotFoundError: | CODE |
| HIGH | tests/test_process.py | 681 | except AssertionError: | CODE |
| HIGH | tests/test_process.py | 804 | except psutil.AccessDenied: | CODE |
| HIGH | tests/test_bsd.py | 109 | except RuntimeError: | CODE |
| HIGH | tests/test_osx.py | 217 | except RuntimeError: | CODE |
| HIGH | tests/test_memleaks.py | 258 | except psutil.NoSuchProcess: | CODE |
| HIGH | tests/test_memleaks.py | 481 | except TypeError: | CODE |
| HIGH | tests/test_memleaks.py | 501 | except NotImplementedError: | CODE |
| HIGH | tests/test_memleaks.py | 283 | except ProcessLookupError: | CODE |
| HIGH | tests/test_scripts.py | 216 | except SystemExit: | CODE |
| HIGH | docs/conf.py | 226 | except locale.Error: | CODE |
| HIGH | scripts/top.py | 262 | except (KeyboardInterrupt, SystemExit): | CODE |
| HIGH | scripts/top.py | 97 | except psutil.NoSuchProcess: | CODE |
| HIGH | scripts/iotop.py | 172 | except (KeyboardInterrupt, SystemExit): | CODE |
| HIGH | scripts/pstree.py | 60 | except (psutil.NoSuchProcess, psutil.ZombieProcess): | CODE |
| HIGH | scripts/ps.py | 71 | except psutil.Error: | CODE |
| HIGH | scripts/procsmem.py | 68 | except psutil.NoSuchProcess: | CODE |
| HIGH | scripts/nettop.py | 153 | except (KeyboardInterrupt, SystemExit): | CODE |
| HIGH | scripts/procinfo.py | 201 | except psutil.Error: | CODE |
| HIGH | scripts/procinfo.py | 230 | except psutil.NoSuchProcess: | CODE |
| HIGH | scripts/procinfo.py | 289 | except psutil.AccessDenied: | CODE |
| HIGH | scripts/internal/download_wheels.py | 49 | except FileNotFoundError: | CODE |
| HIGH | psutil/_common.py | 235 | except AttributeError: | CODE |
| HIGH | psutil/_common.py | 589 | except AttributeError: | CODE |
| HIGH | psutil/_common.py | 739 | except RuntimeWarning: | CODE |
| HIGH | psutil/_common.py | 286 | except AttributeError: | CODE |
| HIGH | psutil/__init__.py | 449 | except AccessDenied: | CODE |
| HIGH | psutil/__init__.py | 454 | except ZombieProcess: | CODE |
| HIGH | psutil/__init__.py | 1933 | except (TimeoutExpired, subprocess.TimeoutExpired): | CODE |
| HIGH | psutil/__init__.py | 345 | except (NoSuchProcess, ZombieProcess): | CODE |
| HIGH | psutil/__init__.py | 386 | except KeyError: | CODE |
| HIGH | psutil/__init__.py | 760 | except NoSuchProcess: | CODE |
| HIGH | psutil/__init__.py | 844 | except (AccessDenied, ZombieProcess): | CODE |
| HIGH | psutil/__init__.py | 529 | except AccessDenied: | CODE |
| HIGH | psutil/__init__.py | 899 | except AccessDenied: | CODE |
| HIGH | psutil/__init__.py | 1181 | except (NoSuchProcess, ZombieProcess): | CODE |
| HIGH | psutil/__init__.py | 1209 | except (NoSuchProcess, ZombieProcess): | CODE |
| HIGH | psutil/_psosx.py | 301 | except NoSuchProcess: | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 354 | def print_install_instructions(): | CODE |
| LOW | tests/test_contracts.py | 164 | def test_proc_ioprio_class_linux(self): | CODE |
| LOW | tests/test_contracts.py | 179 | def test_proc_ioprio_value_windows(self): | CODE |
| LOW | tests/test_contracts.py | 192 | def test_proc_priority_windows(self): | CODE |
| LOW | tests/test_contracts.py | 260 | def test_sensors_temperatures(self): | CODE |
| LOW | tests/test_contracts.py | 450 | def test_sensors_temperatures(self): | CODE |
| LOW | tests/test_connections.py | 53 | def this_proc_net_connections(kind): | CODE |
| LOW | tests/test_connections.py | 69 | def compare_procsys_connections(self, pid, proc_cons, kind='all'): | CODE |
| LOW | tests/test_connections.py | 566 | def test_net_connection_constants(self): | STRING |
| LOW | tests/test_unicode.py | 250 | def test_proc_net_connections(self): | CODE |
| LOW⚡ | tests/test_misc.py | 115 | def test_no_such_process__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 125 | def test_no_such_process__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 135 | def test_zombie_process__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 147 | def test_zombie_process__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 157 | def test_access_denied__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 164 | def test_access_denied__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 171 | def test_timeout_expired__repr__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 183 | def test_timeout_expired__str__(self): | CODE |
| LOW⚡ | tests/test_misc.py | 346 | def test_exceptions_survive_reimport(self): | CODE |
| LOW | tests/test_misc.py | 240 | def test_process_as_dict_no_new_names(self): | CODE |
| LOW | tests/test_misc.py | 324 | def test_sanity_version_check(self): | CODE |
| LOW⚡ | tests/test_misc.py | 381 | def test_memoize_when_activated(self): | STRING |
| LOW | tests/test_misc.py | 541 | def test_broadcast_addr_single_host(self): | STRING |
| LOW | tests/test_misc.py | 582 | def test_increase_but_no_wrap(self): | STRING |
| LOW | tests/test_misc.py | 632 | def test_changing_keys_w_wrap(self): | STRING |
| LOW | tests/test_misc.py | 772 | def test_cache_clear_public_apis(self): | STRING |
| LOW | tests/test_misc.py | 837 | def test_instructions_are_silent_if_toolchain_is_ok(self): | STRING |
| LOW | tests/test_misc.py | 846 | def test_instructions_without_compiler(self): | STRING |
| LOW | tests/test_misc.py | 858 | def test_instructions_on_macos(self): | STRING |
| LOW | tests/test_misc.py | 866 | def test_instructions_without_headers(self): | STRING |
| LOW | tests/test_misc.py | 881 | def test_detection_without_compiler(self): | STRING |
| LOW | tests/test_posix.py | 194 | def test_username_no_resolution(self): | CODE |
| LOW | tests/test_posix.py | 250 | def test_name_long_cmdline_ad_exc(self): | CODE |
| LOW | tests/test_posix.py | 263 | def test_name_long_cmdline_nsp_exc(self): | CODE |
| LOW | tests/test_posix.py | 390 | def test_page_faults_minor_increase(self): | CODE |
| LOW | tests/test_posix.py | 533 | def test_pid_exists_let_raise(self): | CODE |
| LOW | tests/test_posix.py | 573 | def test_terminal_pty_opened_later(self): | CODE |
| LOW⚡ | tests/test_linux.py | 2714 | def test_cpu_affinity_eligible_cpus(self): | CODE |
| LOW | tests/test_linux.py | 667 | def test_meminfo_against_sysinfo(self): | CODE |
| LOW | tests/test_linux.py | 683 | def test_emulate_meminfo_has_no_metrics(self): | CODE |
| LOW | tests/test_linux.py | 691 | def test_no_space_after_colon(self): | CODE |
| LOW | tests/test_linux.py | 2530 | def test_status_file_cpus_allowed_list(self): | CODE |
| LOW | tests/test_linux.py | 2536 | def test_net_connections_enametoolong(self): | CODE |
| LOW | tests/test_linux.py | 2549 | def test_create_time_monotonic(self): | CODE |
| LOW | tests/test_linux.py | 2565 | def test_memory_extras_locked(self): | CODE |
| LOW | tests/test_linux.py | 2583 | def test_memory_footprint_shared_self_mappings(self): | CODE |
| LOW | tests/test_linux.py | 2602 | def test_parse_smaps_rollup_mocked(self): | CODE |
| LOW | tests/test_linux.py | 2626 | def test_rlimit_infinity_normalized(self): | CODE |
| LOW⚡ | tests/test_linux.py | 719 | def test_against_sysdev_cpu_online(self): | STRING |
| LOW⚡ | tests/test_linux.py | 1881 | def test_pid_exists_no_proc_status(self): | STRING |
| LOW | tests/test_linux.py | 422 | def test_avail_old_comes_from_kernel(self): | STRING |
| LOW | tests/test_linux.py | 450 | def test_avail_old_missing_fields(self): | STRING |
| LOW | tests/test_linux.py | 475 | def test_avail_old_missing_zoneinfo(self): | STRING |
| LOW | tests/test_linux.py | 504 | def test_virtual_memory_mocked(self): | STRING |
| LOW | tests/test_linux.py | 570 | def test_virtual_memory_no_space_after_colon(self): | STRING |
| LOW | tests/test_linux.py | 730 | def test_against_sysdev_cpu_num(self): | STRING |
| LOW | tests/test_linux.py | 836 | def test_emulate_use_second_file(self): | STRING |
| LOW | tests/test_linux.py | 972 | def test_emulate_shared_policy(self): | STRING |
| LOW | tests/test_linux.py | 1016 | def test_emulate_no_scaling_cur_freq_file(self): | STRING |
| LOW | tests/test_linux.py | 1038 | def test_emulate_offline_cpus(self): | STRING |
| 240 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | psutil/_pswindows.py | 0 | swap system memory as a (total, used, free, sin, sout) tuple. | STRING |
| HIGH | psutil/_psosx.py | 0 | swap system memory as a (total, used, free, sin, sout) tuple. | STRING |
| HIGH | psutil/_psaix.py | 0 | swap system memory as a (total, used, free, sin, sout) tuple. | STRING |
| HIGH | psutil/_pswindows.py | 0 | return system per-cpu times as a list of named tuples. | STRING |
| HIGH | psutil/_psaix.py | 0 | return system per-cpu times as a list of named tuples. | STRING |
| HIGH | psutil/_pssunos.py | 0 | return system per-cpu times as a list of named tuples. | STRING |
| HIGH | psutil/_pswindows.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psosx.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psbsd.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psaix.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_pslinux.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_pssunos.py | 0 | return currently connected users as a list of named tuples. | STRING |
| HIGH | psutil/_psosx.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_psbsd.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_psaix.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_pssunos.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_pslinux.py | 0 | return the system boot time expressed in seconds since the epoch. | STRING |
| HIGH | psutil/_psosx.py | 0 | decorator which translates bare oserror exceptions into nosuchprocess and accessdenied. | STRING |
| HIGH | psutil/_psbsd.py | 0 | decorator which translates bare oserror exceptions into nosuchprocess and accessdenied. | STRING |
| HIGH | psutil/_pslinux.py | 0 | decorator which translates bare oserror exceptions into nosuchprocess and accessdenied. | STRING |
| HIGH | psutil/_psbsd.py | 0 | returns a list of pids currently running on the system. | STRING |
| HIGH | psutil/_psaix.py | 0 | returns a list of pids currently running on the system. | STRING |
| HIGH | psutil/_pslinux.py | 0 | returns a list of pids currently running on the system. | STRING |
| HIGH | psutil/_pssunos.py | 0 | returns a list of pids currently running on the system. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | _bootstrap.py | 28 | CODE | |
| LOW | tests/test_connections.py | 293 | CODE | |
| LOW | tests/test_misc.py | 197 | CODE | |
| LOW | tests/test_posix.py | 498 | CODE | |
| LOW | tests/test_linux.py | 877 | CODE | |
| LOW | tests/test_linux.py | 909 | CODE | |
| LOW | tests/test_linux.py | 972 | CODE | |
| LOW | tests/test_linux.py | 1038 | CODE | |
| LOW | tests/test_linux.py | 1162 | CODE | |
| LOW | tests/test_linux.py | 1283 | CODE | |
| LOW | tests/test_linux.py | 2060 | CODE | |
| LOW | tests/test_linux.py | 2087 | CODE | |
| LOW | tests/test_linux.py | 2213 | CODE | |
| LOW | tests/test_linux.py | 2653 | CODE | |
| LOW | tests/test_linux.py | 878 | CODE | |
| LOW | tests/test_linux.py | 910 | CODE | |
| LOW | tests/test_linux.py | 975 | CODE | |
| LOW | tests/test_linux.py | 1057 | CODE | |
| LOW | tests/test_linux.py | 2061 | CODE | |
| LOW | tests/test_linux.py | 2088 | CODE | |
| LOW | tests/test_linux.py | 2214 | CODE | |
| LOW | tests/__init__.py | 228 | CODE | |
| LOW | tests/__init__.py | 566 | CODE | |
| LOW | tests/__init__.py | 1656 | CODE | |
| LOW | tests/__init__.py | 1752 | CODE | |
| LOW | tests/__init__.py | 1767 | CODE | |
| LOW | tests/__init__.py | 1874 | CODE | |
| LOW | tests/__init__.py | 1959 | CODE | |
| LOW | tests/test_sudo.py | 35 | CODE | |
| LOW | tests/test_process_all.py | 59 | CODE | |
| LOW | tests/test_process_all.py | 227 | CODE | |
| LOW | tests/test_process_all.py | 262 | CODE | |
| LOW | tests/test_process_all.py | 407 | CODE | |
| LOW | tests/test_process_all.py | 442 | CODE | |
| LOW | tests/test_process_all.py | 472 | CODE | |
| LOW | tests/test_process_all.py | 563 | CODE | |
| LOW | tests/test_process_all.py | 564 | CODE | |
| LOW | tests/test_process_all.py | 579 | CODE | |
| LOW | tests/test_process.py | 578 | CODE | |
| LOW | tests/test_process.py | 778 | CODE | |
| LOW | tests/test_process.py | 962 | CODE | |
| LOW | tests/test_process.py | 1299 | CODE | |
| LOW | tests/test_process.py | 1406 | CODE | |
| LOW | tests/test_system.py | 389 | CODE | |
| LOW | tests/test_system.py | 459 | CODE | |
| LOW | tests/test_system.py | 822 | CODE | |
| LOW | tests/test_system.py | 966 | CODE | |
| LOW | tests/test_windows.py | 350 | CODE | |
| LOW | tests/test_scripts.py | 92 | CODE | |
| LOW | tests/test_type_hints.py | 42 | CODE | |
| LOW | tests/test_type_hints.py | 50 | CODE | |
| LOW | docs/test_docs.py | 763 | CODE | |
| LOW | scripts/iotop.py | 64 | CODE | |
| LOW | scripts/procsmem.py | 58 | CODE | |
| LOW | scripts/cpu_distribution.py | 60 | CODE | |
| LOW | scripts/procinfo.py | 139 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 86 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 107 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 144 | CODE | |
| LOW | scripts/internal/find_broken_links.py | 175 | CODE | |
| 51 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/__init__.py | 1041 | return path | COMMENT |
| LOW | tests/__init__.py | 1241 | proc.kill() | COMMENT |
| LOW | tests/test_system.py | 561 | sum(times) | COMMENT |
| LOW | tests/test_system.py | 601 | assert isinstance(cp_time, float) | COMMENT |
| LOW | docs/conf.py | 241 | COMMENT | |
| LOW | docs/conf.py | 281 | "blog/author/", | COMMENT |
| LOW | docs/conf.py | 301 | # references resolvable. | COMMENT |
| LOW | docs/_static/js/search-shortcuts.js | 1 | // Copyright (c) 2009 Giampaolo Rodola. All rights reserved. | COMMENT |
| LOW | docs/_static/js/theme-toggle.js | 1 | // Copyright (c) 2009 Giampaolo Rodola. All rights reserved. | COMMENT |
| LOW | .github/workflows/wheels.yml | 1 | # Generates wheels for all platforms, architectures and free-threaded builds, | COMMENT |
| LOW | .github/workflows/docs.yml | 1 | # Builds and tests the docs, then deploys them to GitHub Pages. | COMMENT |
| LOW | .github/workflows/tests.yml | 1 | # Runs CI tests against a source build on the following platforms: | COMMENT |
| LOW | psutil/_psutil_aix.c | 1 | /* | COMMENT |
| LOW | psutil/_psutil_aix.c | 21 | // versions) | COMMENT |
| LOW | psutil/_pswindows.py | 521 | d.update(self._query_status()) | COMMENT |
| LOW | psutil/_pswindows.py | 541 | # - psutil is typically about "read only" monitoring stuff; | COMMENT |
| LOW | psutil/_psutil_linux.c | 1 | /* | COMMENT |
| LOW | psutil/_psutil_windows.c | 1 | /* | COMMENT |
| LOW | psutil/__init__.py | 661 | # context twice: | COMMENT |
| LOW | psutil/__init__.py | 1281 | # This is the utilization split evenly between all CPUs. | COMMENT |
| LOW | psutil/__init__.py | 2081 | # (waits for IO to complete). On Linux IO wait is *not* accounted | COMMENT |
| LOW | psutil/_pslinux.py | 321 | slab = 0 | COMMENT |
| LOW | psutil/_pslinux.py | 1041 | system as a dict of raw tuples. | COMMENT |
| LOW | psutil/_pslinux.py | 1121 | if not perdisk and not is_storage_device(name): | COMMENT |
| LOW | psutil/_pslinux.py | 1561 | else: | COMMENT |
| LOW | psutil/_pslinux.py | 1881 | if monotonic: | COMMENT |
| LOW | psutil/_psutil_sunos.c | 1 | /* | COMMENT |
| LOW | psutil/_psposix.py | 61 | return num | COMMENT |
| LOW | psutil/arch/posix/init.c | 21 | // allow the synonym _SC_PAGE_SIZE for _SC_PAGESIZE. Whether | COMMENT |
| LOW | psutil/arch/posix/init.c | 101 | PSUTIL_ADD_INT(mod, "RLIMIT_AS", RLIMIT_AS); | COMMENT |
| LOW | psutil/arch/posix/init.c | 121 | #ifdef RLIMIT_NPROC | COMMENT |
| LOW | psutil/arch/posix/init.c | 141 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 1 | /* | COMMENT |
| LOW | psutil/arch/posix/net.c | 21 | COMMENT | |
| LOW | psutil/arch/posix/net.c | 361 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 421 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 541 | #endif | COMMENT |
| LOW | psutil/arch/posix/net.c | 561 | case (IFM_10G_TWINAX): | COMMENT |
| LOW | psutil/arch/posix/init.h | 21 | COMMENT | |
| LOW | psutil/arch/osx/cpu.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/cpu.c | 21 | #include <mach/mach_host.h> | COMMENT |
| LOW | psutil/arch/osx/cpu.c | 161 | if (found) { | COMMENT |
| LOW | psutil/arch/osx/proc_utils.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/net.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/proc.c | 1 | /* | COMMENT |
| LOW | psutil/arch/osx/proc.c | 21 | #include <libproc.h> | COMMENT |
| LOW | psutil/arch/osx/disk.c | 1 | /* | COMMENT |
| LOW | psutil/arch/sunos/net.c | 1 | /* | COMMENT |
| LOW | psutil/arch/sunos/environ.c | 301 | // returned array. In case of error value of variable will not be | COMMENT |
| LOW | psutil/arch/netbsd/cpu.c | 1 | /* | COMMENT |
| LOW | psutil/arch/netbsd/mem.c | 1 | /* | COMMENT |
| LOW | psutil/arch/all/utils.c | 1 | /* | COMMENT |
| LOW | psutil/arch/all/init.h | 1 | /* | COMMENT |
| LOW | psutil/arch/all/init.h | 21 | COMMENT | |
| LOW | psutil/arch/all/init.h | 61 | COMMENT | |
| LOW | psutil/arch/all/init.h | 81 | #define SIZEOF_PID_T PSUTIL_SIZEOF_PID_T // set as a macro in setup.py | COMMENT |
| LOW | psutil/arch/all/init.h | 101 | #define PyLong_FromPid PyLong_FromLong | COMMENT |
| LOW | psutil/arch/bsd/heap.c | 1 | /* | COMMENT |
| LOW | psutil/arch/bsd/proc_utils.c | 1 | /* | COMMENT |
| LOW | psutil/arch/bsd/proc.c | 1 | /* | COMMENT |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/workflows/triage_labels.py | 52 | null, and let the component list say which kind of not-a-bug it is. A | CODE |
| HIGH | .github/workflows/triage_labels.py | 285 | type=null, platform=["aix"], component=["new-api"]. | CODE |
| HIGH | .github/workflows/triage_labels.py | 302 | type=null, component=["performance"]. Slow, not wrong. | CODE |
| HIGH⚡ | .github/workflows/triage_labels.py | 337 | type=null, component=["api-change", "compatibility"]. An existing API | CODE |
| HIGH⚡ | .github/workflows/triage_labels.py | 341 | type=null, component=["dropped-support", "compatibility"]. Installs | CODE |
| HIGH⚡ | .github/workflows/triage_labels.py | 346 | type=null, component=["packaging", "ci", "compatibility"]. | CODE |
| HIGH⚡ | .github/workflows/triage_labels.py | 352 | type=null, component=["doc"]. Prose and nothing else, so doc is what | CODE |
| HIGH | psutil/_pslinux.py | 1444 | ret = bcat(path, fallback=null) | CODE |
| HIGH | psutil/_pslinux.py | 1445 | if ret != null: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/__init__.py | 369 | def wrapper(*args, **kwargs): | CODE |
| LOW⚡ | tests/__init__.py | 372 | except Exception: | CODE |
| LOW | tests/__init__.py | 215 | except Exception: # noqa: BLE001 | CODE |
| LOW | tests/__init__.py | 220 | except Exception: # noqa: BLE001 | CODE |
| LOW | tests/__init__.py | 1636 | except Exception: | CODE |
| LOW | tests/__init__.py | 1650 | except Exception: | CODE |
| LOW | tests/__init__.py | 1692 | except Exception: | CODE |
| LOW | tests/__init__.py | 527 | except Exception: | STRING |
| LOW | tests/test_process_all.py | 138 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | tests/test_process_all.py | 195 | except Exception as exc: | CODE |
| LOW | tests/test_process_all.py | 237 | except Exception: # noqa: BLE001 | CODE |
| LOW | scripts/internal/find_broken_links.py | 193 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/_common.py | 275 | except Exception as err: | CODE |
| LOW | psutil/_common.py | 282 | except Exception as err: | CODE |
| LOW | psutil/_common.py | 591 | except Exception: | CODE |
| LOW | psutil/_common.py | 663 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/__init__.py | 2044 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/__init__.py | 2052 | except Exception: # noqa: BLE001 | CODE |
| LOW | psutil/__init__.py | 2590 | except Exception as err: # noqa: BLE001 | CODE |
| LOW⚡ | psutil/_psosx.py | 251 | except Exception as err: # noqa: BLE001 | CODE |
| LOW | psutil/_psbsd.py | 344 | except Exception as err: # noqa: BLE001 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 12 | CODE | |
| LOW | tests/conftest.py | 13 | CODE | |
| LOW | tests/test_type_hints.py | 7 | CODE | |
| LOW | docs/conf.py | 318 | CODE | |
| LOW | scripts/internal/print/downloads.py | 181 | CODE | |
| LOW | psutil/_pswindows.py | 7 | CODE | |
| LOW | psutil/__init__.py | 21 | CODE | |
| LOW | psutil/__init__.py | 56 | CODE | |
| LOW | psutil/__init__.py | 60 | CODE | |
| LOW | psutil/_ntuples.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/docs/find_adopters.py | 731 | # Step 1: enumerate all popular Python repos. | COMMENT |
| LOW | scripts/internal/docs/find_adopters.py | 750 | # Step 2: fetch data needed for the requested filters. | COMMENT |
| LOW | scripts/internal/docs/find_adopters.py | 764 | # Step 3: apply filters. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/docs/find_adopters.py | 731 | # Step 1: enumerate all popular Python repos. | COMMENT |
| LOW | scripts/internal/docs/find_adopters.py | 750 | # Step 2: fetch data needed for the requested filters. | COMMENT |
| LOW | scripts/internal/docs/find_adopters.py | 764 | # Step 3: apply filters. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/__init__.py | 66 | __all__ = [ | CODE |
| LOW | docs/_ext/availability.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | psutil/_common.py | 38 | __all__ = [ | CODE |
| LOW | psutil/__init__.py | 235 | __all__ = [ | CODE |
| LOW | psutil/_psposix.py | 26 | __all__ = ['pid_exists', 'wait_pid', 'disk_usage', 'get_terminal'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/download_wheels.py | 61 | CODE | |
| LOW | psutil/_pswindows.py | 970 | CODE | |
| LOW | psutil/_pswindows.py | 980 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/internal/install-sysdeps.sh | 43 | # Check if running as root | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | psutil/_pssunos.py | 685 | # If that's the case we just return the | COMMENT |