Uses python-requires, or classifiers if not found.
pip install get-min-pyget-min-py <pkg>[,pkg2,pkg3,...] # or getminpyExample:
CLI options:
| Option | Description |
|---|---|
-h, --help |
Show help screen |
-v, --version |
Show version |
--docs |
Open docs URL |
import get_min_py
result = get_min_py('requests')
print(result) # => 3.9
results = get_min_py(['numpy', 'pandas', 'flask'])
print(results) # => ['3.11', '3.11', '3.9']Note: Most type checkers will falsely warn get_min_py is not a callable module because they are incapable of analyzing runtime behavior (where the module is replaced w/ a function for cleaner, direct access). You can safely suppress such warnings using # type: ignore.
Copyright © 2026 Adam Lui
📂 find-project-root - Locate project root via custom markers.



