Skip to content

get-min-py v1.0.0

Choose a tag to compare

@adamlui adamlui released this 13 Mar 14:30
· 672 commits to main since this release
Immutable release. Only release title and notes can be modified.
85a84c7

🚀 Initial Release

Get the minimum Python version required for a PyPI package (uses python-requires, or classifiers if not found).

To install:

pip install get-min-py

CLI usage:

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

Example:

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']

README for this release: https://github.com/adamlui/python-utils/tree/get-min-py-1.0.0/get-min-py/#readme