Skip to main content

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.

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

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

get_min_py-1.2.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_min_py-1.2.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file get_min_py-1.2.1.tar.gz.

File metadata

  • Download URL: get_min_py-1.2.1.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

Hashes for get_min_py-1.2.1.tar.gz
Algorithm Hash digest
SHA256 33b17c52e6dc9054cbceeb5bdd65bbec83b6f25c13deee67f8589d6166c7cf64
MD5 004bd7329ac18f51a29ad16c4fb63705
BLAKE2b-256 add76910b8d7b8a43d862356c7b3b91146a79fe33019615ca52139402bbf24cd

See more details on using hashes here.

File details

Details for the file get_min_py-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: get_min_py-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for get_min_py-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fdbd0850262d45d11009377ad0c7f38427380c7dc827d1caffd9d99770f9b48
MD5 bb6e292e3d1e38a0cd1a307b8d186235
BLAKE2b-256 8fe0026be7b1c4c846cb73208e51501fc4f9edfb8e6d14910631715479e90379

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page