Skip to main content

Get the latest version of the specified python package name in the pypi.

Project description

get_pypi_latest_version

PyPI SemVer2.0

1. Install package by pypi.

$ pip install get_pypi_latest_version

2. Run by command line.

  • Usage:
    $ get_pypi_latest_version -h
    usage: get_pypi_latest_version [-h] package_name
    
    positional arguments:
    package_name  The specified python package name. e.g. opencv-python.
    
    optional arguments:
    -h, --help    show this help message and exit
    
  • Example:
    $ get_pypi_latest_version opencv-python
    # 4.7.0.72
    

3. Use by python script.

from get_pypi_latest_version import GetPyPiLatestVersion

obtainer = GetPyPiLatestVersion()

package_name = 'opencv-python'
latest_version = obtainer(package_name)
print(latest_version)

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

get_pypi_latest_version-0.0.3-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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