> 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.
Metadata
Release files for get-min-py 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| get_min_py-1.2.1.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| get_min_py-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.3 kB
Release files / get_min_py-1.2.1.tar.gz
| Download URL | get_min_py-1.2.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33b17c52e6dc9054cbceeb5bdd65bbec83b6f25c13deee67f8589d6166c7cf64
|
|
BLAKE2b-256 checksum How to use checksums |
add76910b8d7b8a43d862356c7b3b91146a79fe33019615ca52139402bbf24cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / get_min_py-1.2.1-py3-none-any.whl
| Download URL | get_min_py-1.2.1-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fdbd0850262d45d11009377ad0c7f38427380c7dc827d1caffd9d99770f9b48
|
|
BLAKE2b-256 checksum How to use checksums |
8fe0026be7b1c4c846cb73208e51501fc4f9edfb8e6d14910631715479e90379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|