Get the minimum Python version required for a PyPI package.
Project description
> 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file get_min_py-1.1.3.tar.gz.
File metadata
- Download URL: get_min_py-1.1.3.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e24b46e097133c8f4b68ff774bce5613b07de2e07917f1ce8fb4616bb986a2d5
|
|
| MD5 |
7c6c75d14a851ff0f4c10b3e10bb5846
|
|
| BLAKE2b-256 |
b5a10a221085cef696a8ff0725db36378c8134ef82ec1914cc96837236cf3baa
|
File details
Details for the file get_min_py-1.1.3-py3-none-any.whl.
File metadata
- Download URL: get_min_py-1.1.3-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c721d186202ca15781ac9de505d09f844ba5e2bcfb53469104ad7bb4971f59
|
|
| MD5 |
dc5015a30aae7d0ca60faa4245001f84
|
|
| BLAKE2b-256 |
19d9eb68cd18656ee9c0ae8063f5df72117f71adad1c1f274fdc1a7232118122
|