Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

> get-min-py

Get the minimum Python version required for a PyPI package.

Uses python-requires, or classifiers if not found.

⚡ Installation

pip install get-min-py

💻 Command line usage

get-min-py <pkg>[,pkg2,pkg3,...]  # or getminpy

Example:

CLI options:

Option Description
-h, --help Show help screen
-v, --version Show version
--docs Open docs URL

🔌 API usage

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.


MIT License

Copyright © 2026 Adam Lui


Related

📂 find-project-root - Locate project root via custom markers.

More Python utilities / Discuss / Report bug / Report vulnerability / Back to top ↑