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.

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.1.tar.gz (16.8 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.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_min_py-1.1.1.tar.gz
  • Upload date:
  • Size: 16.8 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.1.tar.gz
Algorithm Hash digest
SHA256 e9f10c3cd6df261c2b72762ee7b40a03a2e89da123eca6952658dc51ebfcc26b
MD5 abd3f56871b1e6ce8bb80b377a536a10
BLAKE2b-256 c8e9f905a8e10f82711dbec137265b7145fc849f71e8f20e139d196f7760eab3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: get_min_py-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11cd4cdfa13dd25c1a9b7fc98da6391d389610441c69c45e79acae82d52f15ce
MD5 65eed17a8ef39515a0e06bd8bde13799
BLAKE2b-256 a4b5c4153657b25c78298ee93cae71dd0ec2b271ddb4c05760dd95e02d608a74

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