pkginfo 1.13.3
- Artifact scanned
pkginfo-1.13.3-py3-none-any.whl- Compared with
pkginfo-1.13.2-py3-none-any.whl(0 signals introduced since)- Files
- 34 scanned, 4 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 2 info
- Scan time
- 2.8 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 2 of 2 warn and critical signals; 2 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-25 15:42
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= Nonelikely benign Dynamic __import__ of a package name inside a try/except ImportError, used to test whether a package is installed.Reasoning
The __import__ call is on a variable name, which is flagged as non-literal, but the surrounding code is a try/except ImportError that checks whether a package is importable and sets package to None on failure. That is a common, legitimate pattern for probing optional or installed modules. No decoding, network, or process spawning appears in the snippet. The critical severity overstates the risk for an AST dynamic-import signal in a packaging metadata library.
-
passlikely benign Dynamic __import__ of a module or path argument within a try/except ImportError that silently ignores failures.Reasoning
The snippet calls __import__ on path_or_module, a parameter name suggesting the function accepts either a module name or a path, inside a try/except ImportError that passes on failure. This is a typical helper for loading modules dynamically by name in a metadata library. Nothing in the snippet decodes data, spawns processes, or reaches the network. The argument's origin is not shown, but the name and context point to legitimate use.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|