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 / 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.0.tar.gz (17.0 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.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_min_py-1.2.0.tar.gz
  • Upload date:
  • Size: 17.0 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.0.tar.gz
Algorithm Hash digest
SHA256 d5afef55f57ec5c829a7a8860b2c2dc9a2810ee32bf3c71e2d63e08e056c8654
MD5 f5b4d395bd4d661a53e753534f6d2f93
BLAKE2b-256 6f75c69871a61af836df5486ab07a191990d40e227675709f9df737c1674b7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: get_min_py-1.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 763ea1435b8186663cee22881cd707cbce563a5b7e418dba1d247e1844838924
MD5 6ab2d8266206e4d3c640ad6f936c2572
BLAKE2b-256 48cc04ccaaac63b932091e8f32956bbc2ab7c4f9d07ed544580ee898d6ff8bdb

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