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.1.2.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.1.2-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_min_py-1.1.2.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.1.2.tar.gz
Algorithm Hash digest
SHA256 4e8c80a8367d75f035ee1e91cae6185f1e3ee94b8d6e39fe42f7cb72f4d63092
MD5 cd773596dadf5032de3376613567ee4d
BLAKE2b-256 14bcc04acdbfc2efaaacfe490d45dae5846ccfd56df0aafb07839403f3a8e47b

See more details on using hashes here.

File details

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

File metadata

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

Hashes for get_min_py-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e84a8f8461a36dbde638db433e0463b7be218fdae20c798a799118cd4fe05028
MD5 ee8848df8da53e637857e19b3fdabd1b
BLAKE2b-256 67fdead547384b0d721db626a6664c21753da06dc6556c59183d556aacdc10db

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