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>[,pkg_b,pkg_c] # or check-min-py

Example:

CLI options:

Option Description
-h, --help Show help screen
-v, --version Show version
-V, --debug [targetConfigKey] Show debug logs
--docs Open docs URL

🔌 API usage

import get_min_py

# Single package
result = get_min_py('requests')
print(result) # '3.9'

# Multiple packages
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 © 2023–2026 Adam Lui.

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.0.0.tar.gz (15.6 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.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_min_py-1.0.0.tar.gz
  • Upload date:
  • Size: 15.6 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.0.0.tar.gz
Algorithm Hash digest
SHA256 821a439a648dd0e8288b4ae72e41a8c6cb2c820bd9bbeec75e86639efdcda13d
MD5 6c8ec9db802cc4651e284965ac4e2f8b
BLAKE2b-256 0af40a02b9fd8883ce445c9fa39e9ff986b5e9e51012afe99ce0ac019bc994fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: get_min_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f69d26d1dee7f953719aecfe00439ee949f544525e1ed75cc1277e2f9e85cd8e
MD5 5d9b06c7b6699099d927f79e926b6250
BLAKE2b-256 5245793732ae4132a4ca890a3e6c218285181fdf55edc44a23d51df8afa07bcb

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